public class RepositoryServiceImpl extends Object implements RepositoryService, 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.
|
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)
RepositoryService
getRepositoryInfo
in interface RepositoryService
repositoryId
- the identifier for the repositorypublic List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension)
RepositoryService
getRepositoryInfos
in interface RepositoryService
public TypeDefinitionList getTypeChildren(String repositoryId, String typeId, Boolean includePropertyDefinitions, BigInteger maxItems, BigInteger skipCount, ExtensionsData extension)
RepositoryService
getTypeChildren
in interface RepositoryService
repositoryId
- 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)
RepositoryService
getTypeDefinition
in interface RepositoryService
repositoryId
- the identifier for the repositorytypeId
- typeId of an object type specified in the repositorypublic List<TypeDefinitionContainer> getTypeDescendants(String repositoryId, String typeId, BigInteger depth, Boolean includePropertyDefinitions, ExtensionsData extension)
RepositoryService
getTypeDescendants
in interface RepositoryService
repositoryId
- 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)
RepositoryService
createType
in interface RepositoryService
repositoryId
- the identifier for the repositorytype
- the type definitionpublic TypeDefinition updateType(String repositoryId, TypeDefinition type, ExtensionsData extension)
RepositoryService
updateType
in interface RepositoryService
repositoryId
- the identifier for the repositorytype
- the type definitionpublic void deleteType(String repositoryId, String typeId, ExtensionsData extension)
RepositoryService
deleteType
in interface RepositoryService
repositoryId
- the identifier for the repositorytypeId
- typeId of an object type specified in the repositoryCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.