org.apache.chemistry.opencmis.commons.spi
Interface RepositoryService

All Known Subinterfaces:
CmisService
All Known Implementing Classes:
org.apache.chemistry.opencmis.commons.impl.server.AbstractCmisService, CmisServiceWrapper, JcrService

public interface RepositoryService

Repository Service interface.

See CMIS 1.0 specification for details on the operations, parameters, exceptions and the domain model.


Method Summary
 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.
 

Method Detail

getRepositoryInfos

List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension)
Returns a list of CMIS repository information available from this CMIS service endpoint. In contrast to the CMIS specification this method returns repository infos not only repository ids.


getRepositoryInfo

RepositoryInfo getRepositoryInfo(String repositoryId,
                                 ExtensionsData extension)
Returns information about the CMIS repository, the optional capabilities it supports and its access control information if applicable.

Parameters:
repositoryId - the identifier for the repository

getTypeChildren

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.

Parameters:
repositoryId - the identifier for the repository
typeId - (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)

getTypeDescendants

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.

Parameters:
repositoryId - the identifier for the repository
typeId - (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)

getTypeDefinition

TypeDefinition getTypeDefinition(String repositoryId,
                                 String typeId,
                                 ExtensionsData extension)
Gets the definition of the specified object type.

Parameters:
repositoryId - the identifier for the repository
typeId - typeId of an object type specified in the repository


Copyright © 2009-2011 The Apache Software Foundation. All Rights Reserved.