Search in sources :

Example 6 with IRepository

use of com.pogeyan.cmis.api.repo.IRepository in project copper-cms by PogeyanOSS.

the class MongoDBRepositoryStore method getRepository.

@Override
public IRepository getRepository(String repositoryId) {
    MRepositoryDAO repositoryMorphiaDAO = new MRepositoryDAOImpl(MRepository.class, getMasterDBInstance());
    IRepository repository = repositoryMorphiaDAO.getByRepositoryId(repositoryId);
    return repository;
}
Also used : IRepository(com.pogeyan.cmis.api.repo.IRepository)

Aggregations

IRepository (com.pogeyan.cmis.api.repo.IRepository)6 BasicDBObject (com.mongodb.BasicDBObject)2 MBaseObject (com.pogeyan.cmis.data.mongo.MBaseObject)2 MDocumentObject (com.pogeyan.cmis.data.mongo.MDocumentObject)2 MTypeDocumentObject (com.pogeyan.cmis.data.mongo.MTypeDocumentObject)2 MTypeObject (com.pogeyan.cmis.data.mongo.MTypeObject)2 HashMap (java.util.HashMap)2 RepositoryInfo (org.apache.chemistry.opencmis.commons.data.RepositoryInfo)2 JSONObject (org.apache.chemistry.opencmis.commons.impl.json.JSONObject)2 Document (org.bson.Document)2 JSONObject (org.json.simple.JSONObject)2 Datastore (org.mongodb.morphia.Datastore)2 MongoClient (com.mongodb.MongoClient)1 ArrayList (java.util.ArrayList)1 CmisRuntimeException (org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException)1