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()
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
repositoryId
- repository id of objectpublic 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 depthParam)
StoreManager
getTypeById
in interface StoreManager
repositoryId
- 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)
StoreManager
getTypeDefinitionList
in interface StoreManager
repositoryId
- id of repositoryincludePropertyDefinitions
- indicates whether to include property definitions in returned
typepublic List<TypeDefinitionContainer> getRootTypes(String repositoryId, boolean includePropertyDefinitions)
StoreManager
getRootTypes
in interface StoreManager
repositoryId
- id of repositoryincludePropertyDefinitions
- true to include property definitions, false otherwisepublic RepositoryInfo getRepositoryInfo(String repositoryId)
StoreManager
getRepositoryInfo
in interface StoreManager
repositoryId
- 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)
StoreManager
getTypeManager
in interface StoreManager
repositoryId
- id of repositorypublic boolean supportsSingleFiling(String repositoryId)
StoreManager
supportsSingleFiling
in interface StoreManager
repositoryId
- repository id of to get information frompublic boolean supportsMultiFilings(String repositoryId)
StoreManager
supportsMultiFilings
in interface StoreManager
repositoryId
- 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)
StoreManager
query
in interface StoreManager
user
- 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.