public class StoreManagerImpl extends Object implements StoreManager
| Modifier and Type | Field and Description |
|---|---|
protected BindingsObjectFactory |
fObjectFactory |
protected RepositoryInfo |
fRepositoryInfo |
protected CmisServiceValidator |
validator |
| Constructor and Description |
|---|
StoreManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearTypeSystem(String repositoryId) |
void |
createAndInitRepository(String repositoryId,
String typeCreatorClassName)
create a new repository with the given id.
|
List<String> |
getAllRepositoryIds()
return a list of all available repositories
|
BindingsObjectFactory |
getObjectFactory()
Retrieve a factory to create CMIS data structures used as containers
|
ObjectStore |
getObjectStore(String repositoryId)
get the object store for the given repository id.
|
RepositoryInfo |
getRepositoryInfo(String repositoryId)
Retrieve the repository information for a repository
|
List<TypeDefinitionContainer> |
getRootTypes(String repositoryId,
boolean includePropertyDefinitions)
Retrieve a list of root types in the repositories.
|
CmisServiceValidator |
getServiceValidator()
get a permission and parameter validating instance
|
ObjectStoreImpl |
getStore(String repositoryId) |
TypeDefinitionContainer |
getTypeById(String repositoryId,
String typeId)
Retrieve a type definition for a give repository and type id
|
TypeDefinitionContainer |
getTypeById(String repositoryId,
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
|
Collection<TypeDefinitionContainer> |
getTypeDefinitionList(String repositoryId,
boolean includePropertyDefinitions)
retrieve a list with all type definitions.
|
TypeManagerCreatable |
getTypeManager(String repositoryId)
retrieve the type manager for a given repository
|
void |
initRepository(String repositoryId)
Initialize the store for the given repository.
|
void |
initRepositoryInfo(String repositoryId,
String repoInfoCreatorClassName) |
List<TypeDefinition> |
initTypeSystem(String typeCreatorClassName) |
ObjectList |
query(String user,
String repositoryId,
String statement,
Boolean searchAllVersions,
Boolean includeAllowableActions,
IncludeRelationships includeRelationships,
String renditionFilter,
BigInteger maxItems,
BigInteger skipCount)
Execute a query against the repository (same parameter as the discovery service
query method
|
protected final BindingsObjectFactory fObjectFactory
protected RepositoryInfo fRepositoryInfo
protected CmisServiceValidator validator
public ObjectStoreImpl getStore(String repositoryId)
public List<String> getAllRepositoryIds()
StoreManagergetAllRepositoryIds in interface StoreManagerpublic void initRepository(String repositoryId)
StoreManagerinitRepository in interface StoreManagerrepositoryId - id of repository to initializepublic void createAndInitRepository(String repositoryId, String typeCreatorClassName)
StoreManagercreateAndInitRepository in interface StoreManagerrepositoryId - id of repositorytypeCreatorClassName - class implementing the type creation, the class must implement
the interface TypeCreatorpublic ObjectStore getObjectStore(String repositoryId)
StoreManagergetObjectStore in interface StoreManagerpublic CmisServiceValidator getServiceValidator()
StoreManagergetServiceValidator in interface StoreManagerpublic BindingsObjectFactory getObjectFactory()
StoreManagergetObjectFactory in interface StoreManagerpublic TypeDefinitionContainer getTypeById(String repositoryId, String typeId)
StoreManagergetTypeById in interface StoreManagerrepositoryId - id of repositorytypeId - id of type definitionpublic TypeDefinitionContainer getTypeById(String repositoryId, String typeId, boolean includePropertyDefinitions, int depth)
StoreManagergetTypeById in interface StoreManagerrepositoryId - 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 Collection<TypeDefinitionContainer> getTypeDefinitionList(String repositoryId, boolean includePropertyDefinitions)
StoreManagergetTypeDefinitionList in interface StoreManagerrepositoryId - id of repositoryincludePropertyDefinitions - indicates whether to include property definitions in returned
typepublic List<TypeDefinitionContainer> getRootTypes(String repositoryId, boolean includePropertyDefinitions)
StoreManagergetRootTypes in interface StoreManagerrepositoryId - id of repositorypublic RepositoryInfo getRepositoryInfo(String repositoryId)
StoreManagergetRepositoryInfo in interface StoreManagerrepositoryId - id of repositorypublic void clearTypeSystem(String repositoryId)
public void initRepositoryInfo(String repositoryId, String repoInfoCreatorClassName)
public List<TypeDefinition> initTypeSystem(String typeCreatorClassName)
public TypeManagerCreatable getTypeManager(String repositoryId)
StoreManagergetTypeManager in interface StoreManagerrepositoryId - id of repositorypublic ObjectList query(String user, String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount)
StoreManagerquery in interface StoreManagerCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.