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) |
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 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) |
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) |
boolean |
supportsSingleFiling(String repositoryId) |
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 List<TypeDefinitionContainer> getRootTypes(String repositoryId, boolean includePropertyDefinitions)
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 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 TypeManagerCreatable getTypeManager(String repositoryId)
StoreManager
getTypeManager
in interface StoreManager
repositoryId
- id of repositorypublic boolean supportsSingleFiling(String repositoryId)
supportsSingleFiling
in interface StoreManager
public boolean supportsMultiFilings(String repositoryId)
supportsMultiFilings
in interface StoreManager
public 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-2013 The Apache Software Foundation. All Rights Reserved.