|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.sistematica.isharedoc.opencmis.indatabase.storedobj.impl.StoreManagerImpl
public class StoreManagerImpl
factory to create objects that are stored in the InMemory store
Field Summary | |
---|---|
protected DocumentManager |
documentManager
|
protected it.neverworks.data.EntityManager |
entities
|
protected org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory |
fObjectFactory
|
protected org.apache.chemistry.opencmis.commons.data.RepositoryInfo |
fRepositoryInfo
|
static java.lang.String |
OPENCMIS_VENDOR
|
protected SearchService |
searchService
|
protected it.neverworks.application.service.UserInfo |
userInfo
|
protected CmisServiceValidator |
validator
|
Constructor Summary | |
---|---|
StoreManagerImpl()
|
Method Summary | |
---|---|
void |
clearTypeSystem(java.lang.String repositoryId)
|
void |
createAndInitRepository(java.lang.String repositoryId,
java.lang.String typeCreatorClassName)
create a new repository with the given id. |
java.util.List<java.lang.String> |
getAllRepositoryIds()
return a list of all available repositories |
it.neverworks.data.EntityManager |
getEntities()
|
org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory |
getObjectFactory()
Retrieve a factory to create CMIS data structures used as containers |
ObjectStore |
getObjectStore(java.lang.String repositoryId)
get the object store for the given repository id. |
org.apache.chemistry.opencmis.commons.data.RepositoryInfo |
getRepositoryInfo(java.lang.String repositoryId)
Retrieve the repository information for a repository |
java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> |
getRootTypes(java.lang.String repositoryId,
boolean includePropertyDefinitions)
Retrieve a list of root types in the repositories. |
SearchService |
getSearchService()
|
CmisServiceValidator |
getServiceValidator()
get a permission and parameter validating instance |
ObjectStoreImpl |
getStore(java.lang.String repositoryId)
|
org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer |
getTypeById(java.lang.String repositoryId,
java.lang.String typeId)
Retrieve a type definition for a give repository and type id |
org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer |
getTypeById(java.lang.String repositoryId,
java.lang.String typeId,
boolean includePropertyDefinitions,
int depth)
Retrieve a type definition for a give repository and type id with or without property definitions and limited to depth in hierarchy |
java.util.Collection<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> |
getTypeDefinitionList(java.lang.String repositoryId,
boolean includePropertyDefinitions)
retrieve a list with all type definitions. |
TypeManagerImpl |
getTypeManager(java.lang.String repositoryId)
retrieve the type manager for a given repository |
it.neverworks.application.service.UserInfo |
getUserInfo()
|
void |
initRepository(java.lang.String repositoryId,
java.lang.String typeCreatorClassName)
Initialize the store for the given repository. |
java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> |
initTypeSystem(java.lang.String typeCreatorClassName)
|
org.apache.chemistry.opencmis.commons.data.ObjectList |
query(java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships,
java.lang.String renditionFilter,
java.math.BigInteger maxItems,
java.math.BigInteger skipCount)
Execute a query against the repository (same parameter as the discovery service query method |
void |
setDocumentManager(DocumentManager documentManager)
Set the document manager. |
void |
setEntities(it.neverworks.data.EntityManager entities)
Set the entity manager. |
void |
setSearchService(SearchService searchService)
Set the searchService. |
void |
startManager()
return a list of all available repositories |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory fObjectFactory
protected org.apache.chemistry.opencmis.commons.data.RepositoryInfo fRepositoryInfo
protected CmisServiceValidator validator
protected it.neverworks.data.EntityManager entities
protected DocumentManager documentManager
protected it.neverworks.application.service.UserInfo userInfo
protected SearchService searchService
public static final java.lang.String OPENCMIS_VENDOR
Constructor Detail |
---|
public StoreManagerImpl()
Method Detail |
---|
public it.neverworks.application.service.UserInfo getUserInfo()
getUserInfo
in interface StoreManager
public it.neverworks.data.EntityManager getEntities()
getEntities
in interface StoreManager
public void setEntities(it.neverworks.data.EntityManager entities)
StoreManager
setEntities
in interface StoreManager
entities
- reference to entity managerpublic SearchService getSearchService()
getSearchService
in interface StoreManager
public void setSearchService(SearchService searchService)
StoreManager
setSearchService
in interface StoreManager
searchService
- reference to searchServicepublic void setDocumentManager(DocumentManager documentManager)
StoreManager
setDocumentManager
in interface StoreManager
documentManager
- reference to document managerpublic void startManager()
StoreManager
startManager
in interface StoreManager
public ObjectStoreImpl getStore(java.lang.String repositoryId)
public void initRepository(java.lang.String repositoryId, java.lang.String typeCreatorClassName)
StoreManager
initRepository
in interface StoreManager
repositoryId
- id of repositorytypeCreatorClassName
- class implementing the type creation, the class must implement
the interface TypeCreatorpublic void createAndInitRepository(java.lang.String repositoryId, java.lang.String typeCreatorClassName)
StoreManager
createAndInitRepository
in interface StoreManager
repositoryId
- id of repositorytypeCreatorClassName
- class implementing the type creation, the class must implement
the interface TypeCreatorpublic java.util.List<java.lang.String> getAllRepositoryIds()
StoreManager
getAllRepositoryIds
in interface StoreManager
public ObjectStore getObjectStore(java.lang.String repositoryId)
StoreManager
getObjectStore
in interface StoreManager
public CmisServiceValidator getServiceValidator()
StoreManager
getServiceValidator
in interface StoreManager
public org.apache.chemistry.opencmis.commons.spi.BindingsObjectFactory getObjectFactory()
StoreManager
getObjectFactory
in interface StoreManager
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer getTypeById(java.lang.String repositoryId, java.lang.String typeId)
StoreManager
getTypeById
in interface StoreManager
repositoryId
- id of repositorytypeId
- id of type definition
public org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer getTypeById(java.lang.String repositoryId, java.lang.String typeId, boolean includePropertyDefinitions, int depth)
StoreManager
getTypeById
in interface StoreManager
repositoryId
- id of repositorytypeId
- id of type definitionincludePropertyDefinitions
- indicates whether to include property definitions in returned
typedepth
- limit depth of type hierarchy in return (-1 means unlimited)
public java.util.Collection<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getTypeDefinitionList(java.lang.String repositoryId, boolean includePropertyDefinitions)
StoreManager
getTypeDefinitionList
in interface StoreManager
repositoryId
- id of repositoryincludePropertyDefinitions
- indicates whether to include property definitions in returned
type
public java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinitionContainer> getRootTypes(java.lang.String repositoryId, boolean includePropertyDefinitions)
StoreManager
getRootTypes
in interface StoreManager
repositoryId
- id of repository
public org.apache.chemistry.opencmis.commons.data.RepositoryInfo getRepositoryInfo(java.lang.String repositoryId)
StoreManager
getRepositoryInfo
in interface StoreManager
repositoryId
- id of repository
public void clearTypeSystem(java.lang.String repositoryId)
public java.util.List<org.apache.chemistry.opencmis.commons.definitions.TypeDefinition> initTypeSystem(java.lang.String typeCreatorClassName)
public TypeManagerImpl getTypeManager(java.lang.String repositoryId)
StoreManager
getTypeManager
in interface StoreManager
repositoryId
- id of repository
public org.apache.chemistry.opencmis.commons.data.ObjectList query(java.lang.String user, java.lang.String repositoryId, java.lang.String statement, java.lang.Boolean searchAllVersions, java.lang.Boolean includeAllowableActions, org.apache.chemistry.opencmis.commons.enums.IncludeRelationships includeRelationships, java.lang.String renditionFilter, java.math.BigInteger maxItems, java.math.BigInteger skipCount)
StoreManager
query
in interface StoreManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |