|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.inmemory.storedobj.impl.StoreManagerImpl
public class StoreManagerImpl
factory to create objects that are stored in the InMemory store
Field Summary | |
---|---|
protected BindingsObjectFactory |
fObjectFactory
|
protected RepositoryInfo |
fRepositoryInfo
|
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 |
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. |
RepositoryInfo |
getRepositoryInfo(java.lang.String repositoryId)
Retrieve the repository information for a repository |
java.util.List<TypeDefinitionContainer> |
getRootTypes(java.lang.String repositoryId)
Retrieve a list of root types in the repositories. |
CmisServiceValidator |
getServiceValidator()
get a permission and parameter validating instance |
ObjectStoreImpl |
getStore(java.lang.String repositoryId)
|
TypeDefinitionContainer |
getTypeById(java.lang.String repositoryId,
java.lang.String typeId)
Retrieve a type definition for a give repository and type id |
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<TypeDefinitionContainer> |
getTypeDefinitionList(java.lang.String repositoryId,
boolean includePropertyDefinitions)
retrieve a list with all type definitions. |
java.util.Map<java.lang.String,TypeDefinitionContainer> |
getTypeDefinitionMap(java.lang.String repositoryId)
|
TypeManager |
getTypeManager(java.lang.String repositoryId)
retrieve the type manager for a given repository |
void |
initRepository(java.lang.String repositoryId)
Initialize the store for the given repository. |
void |
initRepositoryInfo(java.lang.String repositoryId,
java.lang.String repoInfoCreatorClassName)
|
java.util.List<TypeDefinition> |
initTypeSystem(java.lang.String typeCreatorClassName)
|
ObjectList |
query(java.lang.String user,
java.lang.String repositoryId,
java.lang.String statement,
java.lang.Boolean searchAllVersions,
java.lang.Boolean includeAllowableActions,
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final BindingsObjectFactory fObjectFactory
protected RepositoryInfo fRepositoryInfo
protected CmisServiceValidator validator
Constructor Detail |
---|
public StoreManagerImpl()
Method Detail |
---|
public ObjectStoreImpl getStore(java.lang.String repositoryId)
public java.util.List<java.lang.String> getAllRepositoryIds()
StoreManager
getAllRepositoryIds
in interface StoreManager
public void initRepository(java.lang.String repositoryId)
StoreManager
initRepository
in interface StoreManager
repositoryId
- id of repository to initializepublic 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 ObjectStore getObjectStore(java.lang.String repositoryId)
StoreManager
getObjectStore
in interface StoreManager
public CmisServiceValidator getServiceValidator()
StoreManager
getServiceValidator
in interface StoreManager
public BindingsObjectFactory getObjectFactory()
StoreManager
getObjectFactory
in interface StoreManager
public TypeDefinitionContainer getTypeById(java.lang.String repositoryId, java.lang.String typeId)
StoreManager
getTypeById
in interface StoreManager
repositoryId
- id of repositorytypeId
- id of type definition
public 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<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.Map<java.lang.String,TypeDefinitionContainer> getTypeDefinitionMap(java.lang.String repositoryId)
public java.util.List<TypeDefinitionContainer> getRootTypes(java.lang.String repositoryId)
StoreManager
getRootTypes
in interface StoreManager
repositoryId
- id of repository
public RepositoryInfo getRepositoryInfo(java.lang.String repositoryId)
StoreManager
getRepositoryInfo
in interface StoreManager
repositoryId
- id of repository
public void clearTypeSystem(java.lang.String repositoryId)
public void initRepositoryInfo(java.lang.String repositoryId, java.lang.String repoInfoCreatorClassName)
public java.util.List<TypeDefinition> initTypeSystem(java.lang.String typeCreatorClassName)
public TypeManager getTypeManager(java.lang.String repositoryId)
StoreManager
getTypeManager
in interface StoreManager
repositoryId
- id of repository
public ObjectList query(java.lang.String user, java.lang.String repositoryId, java.lang.String statement, java.lang.Boolean searchAllVersions, java.lang.Boolean includeAllowableActions, 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 |