org.apache.chemistry.opencmis.client.bindings.spi.local
Class RepositoryServiceImpl

java.lang.Object
  extended by org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
      extended by org.apache.chemistry.opencmis.client.bindings.spi.local.RepositoryServiceImpl
All Implemented Interfaces:
RepositoryService

public class RepositoryServiceImpl
extends AbstractLocalService
implements RepositoryService

Repository Service local client.


Constructor Summary
RepositoryServiceImpl(BindingSession session, CmisServiceFactory factory)
          Constructor.
 
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.
 
Methods inherited from class org.apache.chemistry.opencmis.client.bindings.spi.local.AbstractLocalService
createCallContext, getService, getServiceFactory, getSession, setServiceFactory, setSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryServiceImpl

public RepositoryServiceImpl(BindingSession session,
                             CmisServiceFactory factory)
Constructor.

Method Detail

getRepositoryInfo

public RepositoryInfo getRepositoryInfo(String repositoryId,
                                        ExtensionsData extension)
Description copied from interface: RepositoryService
Returns information about the CMIS repository, the optional capabilities it supports and its access control information if applicable.

Specified by:
getRepositoryInfo in interface RepositoryService
Parameters:
repositoryId - the identifier for the repository

getRepositoryInfos

public List<RepositoryInfo> getRepositoryInfos(ExtensionsData extension)
Description copied from interface: RepositoryService
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.

Specified by:
getRepositoryInfos in interface RepositoryService

getTypeDefinition

public TypeDefinition getTypeDefinition(String repositoryId,
                                        String typeId,
                                        ExtensionsData extension)
Description copied from interface: RepositoryService
Gets the definition of the specified object type.

Specified by:
getTypeDefinition in interface RepositoryService
Parameters:
repositoryId - the identifier for the repository
typeId - typeId of an object type specified in the repository

getTypeChildren

public TypeDefinitionList getTypeChildren(String repositoryId,
                                          String typeId,
                                          Boolean includePropertyDefinitions,
                                          BigInteger maxItems,
                                          BigInteger skipCount,
                                          ExtensionsData extension)
Description copied from interface: RepositoryService
Returns the list of object types defined for the repository that are children of the specified type.

Specified by:
getTypeChildren in interface RepositoryService
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

public List<TypeDefinitionContainer> getTypeDescendants(String repositoryId,
                                                        String typeId,
                                                        BigInteger depth,
                                                        Boolean includePropertyDefinitions,
                                                        ExtensionsData extension)
Description copied from interface: RepositoryService
Returns the set of descendant object type defined for the repository under the specified type.

Specified by:
getTypeDescendants in interface RepositoryService
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)


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