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)
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.
|
Map<String,TypeDefinitionContainer> |
getTypeDefinitionMap(String repositoryId) |
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()
StoreManager
getAllRepositoryIds
in interface StoreManager
public void initRepository(String repositoryId)
StoreManager
initRepository
in interface StoreManager
repositoryId
- id of repository to initializepublic void createAndInitRepository(String repositoryId, 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(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(String repositoryId, String typeId)
StoreManager
getTypeById
in interface StoreManager
repositoryId
- id of repositorytypeId
- id of type definitionpublic TypeDefinitionContainer getTypeById(String repositoryId, 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 Collection<TypeDefinitionContainer> getTypeDefinitionList(String repositoryId, boolean includePropertyDefinitions)
StoreManager
getTypeDefinitionList
in interface StoreManager
repositoryId
- id of repositoryincludePropertyDefinitions
- indicates whether to include property definitions in returned
typepublic Map<String,TypeDefinitionContainer> getTypeDefinitionMap(String repositoryId)
public List<TypeDefinitionContainer> getRootTypes(String repositoryId)
StoreManager
getRootTypes
in interface StoreManager
repositoryId
- id of repositorypublic RepositoryInfo getRepositoryInfo(String repositoryId)
StoreManager
getRepositoryInfo
in interface StoreManager
repositoryId
- 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)
StoreManager
getTypeManager
in interface StoreManager
repositoryId
- id of repositorypublic ObjectList query(String user, String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount)
StoreManager
query
in interface StoreManager
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.