public class RepositoryServiceImpl extends Object implements RepositoryService, ExtendedRepositoryService, Serializable
| Constructor and Description |
|---|
RepositoryServiceImpl(BindingSession session)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeDefinition |
createType(String repositoryId,
TypeDefinition type,
ExtensionsData extension)
Creates a new type.
|
void |
deleteType(String repositoryId,
String typeId,
ExtensionsData extension)
Deletes a type.
|
RepositoryInfo |
getRepositoryInfo(String repositoryId,
ExtensionsData extension)
Returns information about the CMIS repository, the optional capabilities
it supports and its access control information if applicable.
|
List<RepositoryInfo> |
getRepositoryInfos(ExtensionsData extension)
Returns a list of CMIS repository information available from this CMIS
service endpoint.
|
TypeDefinitionList |
getTypeChildren(String repositoryId,
String typeId,
Boolean includePropertyDefinitions,
BigInteger maxItems,
BigInteger skipCount,
ExtensionsData extension)
Returns the list of object types defined for the repository that are
children of the specified type.
|
TypeDefinition |
getTypeDefinition(String repositoryId,
String typeId,
ExtensionsData extension)
Gets the definition of the specified object type.
|
TypeDefinition |
getTypeDefinition(String repositoryId,
String typeId,
ExtensionsData extension,
boolean useCache)
Gets the definition of the specified object type.
|
List<TypeDefinitionContainer> |
getTypeDescendants(String repositoryId,
String typeId,
BigInteger depth,
Boolean includePropertyDefinitions,
ExtensionsData extension)
Returns the set of descendant object type defined for the repository
under the specified type.
|
TypeDefinition |
updateType(String repositoryId,
TypeDefinition type,
ExtensionsData extension)
Updates a type.
|
public RepositoryServiceImpl(BindingSession session)
public RepositoryInfo getRepositoryInfo(String repositoryId, ExtensionsData extension)
RepositoryServicegetRepositoryInfo in interface RepositoryServicerepositoryId - the identifier for the repositorypublic List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension)
RepositoryServicegetRepositoryInfos in interface RepositoryServicepublic TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
RepositoryServicegetTypeChildren in interface RepositoryServicerepositoryId - the identifier for the repositorytypeId - (optional) the typeId of an object type specified in
the repository (if not specified the repository MUST return
all base object types)includePropertyDefinitions - (optional) if true the repository MUST
return the property definitions for each object type returned
(default is false)maxItems - (optional) the maximum number of items to return in a
response (default is repository specific)skipCount - (optional) number of potential results that the
repository MUST skip/page over before returning any results
(default is 0)public TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension)
RepositoryServicegetTypeDefinition in interface RepositoryServicerepositoryId - the identifier for the repositorytypeId - typeId of an object type specified in the repositorypublic TypeDefinition getTypeDefinition(String repositoryId, String typeId, ExtensionsData extension, boolean useCache)
ExtendedRepositoryServicegetTypeDefinition in interface ExtendedRepositoryServicerepositoryId - the identifier for the repositorytypeId - typeId of an object type specified in the repositoryuseCache - specifies whether the type definition should be looked up in
the type definition cache first or notpublic List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth, Boolean includePropertyDefinitions, ExtensionsData extension)
RepositoryServicegetTypeDescendants in interface RepositoryServicerepositoryId - the identifier for the repositorytypeId - (optional) the typeId of an object type specified in
the repository (if not specified the repository MUST return
all types and MUST ignore the value of the depth parameter)depth - (optional) the number of levels of depth in the type
hierarchy from which to return results (default is repository
specific)includePropertyDefinitions - (optional) if true the repository MUST
return the property definitions for each object type returned
(default is false)public TypeDefinition createType(String repositoryId, TypeDefinition type, ExtensionsData extension)
RepositoryServicecreateType in interface RepositoryServicerepositoryId - the identifier for the repositorytype - the type definitionpublic TypeDefinition updateType(String repositoryId, TypeDefinition type, ExtensionsData extension)
RepositoryServiceupdateType in interface RepositoryServicerepositoryId - the identifier for the repositorytype - the type definitionpublic void deleteType(String repositoryId, String typeId, ExtensionsData extension)
RepositoryServicedeleteType in interface RepositoryServicerepositoryId - the identifier for the repositorytypeId - typeId of an object type specified in the repositoryCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.