org.alfresco.repo.cmis.ws
Class DMRepositoryServicePort

java.lang.Object
  extended by org.alfresco.repo.cmis.ws.DMAbstractServicePort
      extended by org.alfresco.repo.cmis.ws.DMRepositoryServicePort
All Implemented Interfaces:
org.alfresco.repo.cmis.ws.RepositoryServicePort

public class DMRepositoryServicePort
extends DMAbstractServicePort
implements org.alfresco.repo.cmis.ws.RepositoryServicePort

Port for repository service.


Field Summary
 
Fields inherited from class org.alfresco.repo.cmis.ws.DMAbstractServicePort
authorityService, cmisAclService, cmisChangeLogService, cmisObjectFactory, cmisQueryService, cmisRenditionService, cmisService, descriptorService, fileFolderService, INCLUDE_RELATIONSHIPS_ENUM_MAPPING, nodeService, permissionService, propertiesUtil, searchService
 
Constructor Summary
DMRepositoryServicePort()
           
 
Method Summary
 java.util.List getRepositories(org.alfresco.repo.cmis.ws.CmisExtensionType extension)
          Gets a list of available repositories for this CMIS service endpoint.
 org.alfresco.repo.cmis.ws.CmisRepositoryInfoType getRepositoryInfo(java.lang.String repositoryId, org.alfresco.repo.cmis.ws.CmisExtensionType extension)
          Gets information about the CMIS repository and the capabilities it supports.
 org.alfresco.repo.cmis.ws.CmisTypeDefinitionListType getTypeChildren(java.lang.String repositoryId, java.lang.String typeId, java.lang.Boolean includePropertyDefinitions, java.math.BigInteger maxItems, java.math.BigInteger skipCount, org.alfresco.repo.cmis.ws.CmisExtensionType extension)
          Returns the list of Object-Types defined for the Repository under the specified Type.
 org.alfresco.repo.cmis.ws.CmisTypeDefinitionType getTypeDefinition(java.lang.String repositoryId, java.lang.String typeId, org.alfresco.repo.cmis.ws.CmisExtensionType extension)
          Gets the definition for specified object type
 java.util.List getTypeDescendants(java.lang.String repositoryId, java.lang.String typeId, java.math.BigInteger depth, java.lang.Boolean includePropertyDefinitions, org.alfresco.repo.cmis.ws.CmisExtensionType extension)
          Returns the set of descendant Object-Types defined for the Repository under the specified Type.
 
Methods inherited from class org.alfresco.repo.cmis.ws.DMAbstractServicePort
appendWithAce, appendWithRelationships, applyAclCarefully, applyPolicies, checkRepositoryId, convertAclReportToCmisAclType, createCmisObject, createCmisObject, createCmisObjectList, createCursor, createPropertyFilter, createPropertyFilter, determineObjectAllowableActions, getRenditions, isObjectInFolder, setAuthorityService, setCmisAclService, setCmisChangeLogService, setCmisQueryService, setCmisRenditionService, setCmisService, setDescriptorService, setFileFolderService, setNodeService, setPermissionService, setPropertiesUtil, setSearchService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DMRepositoryServicePort

public DMRepositoryServicePort()
Method Detail

getRepositories

public java.util.List getRepositories(org.alfresco.repo.cmis.ws.CmisExtensionType extension)
                               throws org.alfresco.repo.cmis.ws.CmisException
Gets a list of available repositories for this CMIS service endpoint.

Specified by:
getRepositories in interface org.alfresco.repo.cmis.ws.RepositoryServicePort
Returns:
collection of CmisRepositoryEntryType (repositoryId - repository Id, repositoryName: repository name, repositoryURI: Repository URI)
Throws:
CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)

getRepositoryInfo

public org.alfresco.repo.cmis.ws.CmisRepositoryInfoType getRepositoryInfo(java.lang.String repositoryId,
                                                                          org.alfresco.repo.cmis.ws.CmisExtensionType extension)
                                                                   throws org.alfresco.repo.cmis.ws.CmisException
Gets information about the CMIS repository and the capabilities it supports.

Specified by:
getRepositoryInfo in interface org.alfresco.repo.cmis.ws.RepositoryServicePort
Parameters:
parameters - repositoryId: repository Id
Returns:
CMIS repository Info
Throws:
CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)

getTypeChildren

public org.alfresco.repo.cmis.ws.CmisTypeDefinitionListType getTypeChildren(java.lang.String repositoryId,
                                                                            java.lang.String typeId,
                                                                            java.lang.Boolean includePropertyDefinitions,
                                                                            java.math.BigInteger maxItems,
                                                                            java.math.BigInteger skipCount,
                                                                            org.alfresco.repo.cmis.ws.CmisExtensionType extension)
                                                                     throws org.alfresco.repo.cmis.ws.CmisException
Returns the list of Object-Types defined for the Repository under the specified Type.

Specified by:
getTypeChildren in interface org.alfresco.repo.cmis.ws.RepositoryServicePort
Parameters:
parameters - repositoryId: repository Id; typeId: type Id; returnPropertyDefinitions: false (default); maxItems: 0 = Repository-default number of items(Default); skipCount: 0 = start;
Throws:
CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)

getTypeDefinition

public org.alfresco.repo.cmis.ws.CmisTypeDefinitionType getTypeDefinition(java.lang.String repositoryId,
                                                                          java.lang.String typeId,
                                                                          org.alfresco.repo.cmis.ws.CmisExtensionType extension)
                                                                   throws org.alfresco.repo.cmis.ws.CmisException
Gets the definition for specified object type

Specified by:
getTypeDefinition in interface org.alfresco.repo.cmis.ws.RepositoryServicePort
Parameters:
parameters - repositoryId: repository Id; typeId: type Id;
Returns:
CMIS type definition
Throws:
CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)

getTypeDescendants

public java.util.List getTypeDescendants(java.lang.String repositoryId,
                                         java.lang.String typeId,
                                         java.math.BigInteger depth,
                                         java.lang.Boolean includePropertyDefinitions,
                                         org.alfresco.repo.cmis.ws.CmisExtensionType extension)
                                  throws org.alfresco.repo.cmis.ws.CmisException
Returns the set of descendant Object-Types defined for the Repository under the specified Type.

Specified by:
getTypeDescendants in interface org.alfresco.repo.cmis.ws.RepositoryServicePort
Parameters:
parameters - srepositoryId: repository Id; typeId: type Id; includePropertyDefinitions: false (default); depth: The number of levels of depth in the type hierarchy from which to return results;
Throws:
CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME)


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.