public class StoreManagerImpl extends Object implements StoreManager
| Constructor and Description |
|---|
StoreManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearTypeSystem(String repositoryId) |
static TypeDefinitionContainer |
cloneTypeList(int depth,
boolean includePropertyDefinitions,
TypeDefinitionContainer tdc,
TypeDefinitionContainer parent)
traverse tree and replace each need node with a clone.
|
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 depthParam)
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.
|
TypeManager |
getTypeManager(String repositoryId)
Retrieve the type manager for a given repository.
|
void |
initRepository(String repositoryId)
Initialize the store for the given repository.
|
static 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.
|
boolean |
supportsMultiFilings(String repositoryId)
Get information if a repository supports multi filing.
|
boolean |
supportsSingleFiling(String repositoryId)
Get information if a repository supports single filing.
|
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 StoreManagerrepositoryId - repository id of objectpublic 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 depthParam)
StoreManagergetTypeById in interface StoreManagerrepositoryId - id of repositorytypeId - id of type definitionincludePropertyDefinitions - indicates whether to include property definitions in returned
typedepthParam - 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 repositoryincludePropertyDefinitions - true to include property definitions, false otherwisepublic RepositoryInfo getRepositoryInfo(String repositoryId)
StoreManagergetRepositoryInfo in interface StoreManagerrepositoryId - id of repositorypublic void clearTypeSystem(String repositoryId)
public static List<TypeDefinition> initTypeSystem(String typeCreatorClassName)
public static TypeDefinitionContainer cloneTypeList(int depth, boolean includePropertyDefinitions, TypeDefinitionContainer tdc, TypeDefinitionContainer parent)
depth - levels of children to copyincludePropertyDefinitions - indicates with or without property definitionstdc - type definition to cloneparent - parent container where to add clone as childpublic TypeManager getTypeManager(String repositoryId)
StoreManagergetTypeManager in interface StoreManagerrepositoryId - id of repositorypublic boolean supportsSingleFiling(String repositoryId)
StoreManagersupportsSingleFiling in interface StoreManagerrepositoryId - repository id of to get information frompublic boolean supportsMultiFilings(String repositoryId)
StoreManagersupportsMultiFilings in interface StoreManagerrepositoryId - repository id of to get information frompublic ObjectList query(String user, String repositoryId, String statement, Boolean searchAllVersions, Boolean includeAllowableActions, IncludeRelationships includeRelationships, String renditionFilter, BigInteger maxItems, BigInteger skipCount)
StoreManagerquery in interface StoreManageruser - user execuing the queryrepositoryId - id of repositorystatement - query statementsearchAllVersions - search in all versions of objectsincludeAllowableActions - include allowable actionsincludeRelationships - include relationshipsrenditionFilter - include renditionsmaxItems - max number of items to returnskipCount - items to skipCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.