org.alfresco.repo.cmis.ws
Class DMAbstractServicePort

java.lang.Object
  extended by org.alfresco.repo.cmis.ws.DMAbstractServicePort
Direct Known Subclasses:
DMAclServicePort, DMDiscoveryServicePort, DMMultiFilingServicePort, DMNavigationServicePort, DMObjectServicePort, DMPolicyServicePort, DMRelationshipServicePort, DMRepositoryServicePort, DMVersioningServicePort

public class DMAbstractServicePort
extends java.lang.Object

Base class for all CMIS web services


Field Summary
protected  org.alfresco.service.cmr.security.AuthorityService authorityService
           
protected  org.alfresco.cmis.CMISAccessControlService cmisAclService
           
protected  org.alfresco.cmis.CMISChangeLogService cmisChangeLogService
           
protected  org.alfresco.repo.cmis.ws.ObjectFactory cmisObjectFactory
           
protected  org.alfresco.cmis.CMISQueryService cmisQueryService
           
protected  org.alfresco.cmis.CMISRenditionService cmisRenditionService
           
protected  org.alfresco.cmis.CMISServices cmisService
           
protected  org.alfresco.service.descriptor.DescriptorService descriptorService
           
protected  org.alfresco.service.cmr.model.FileFolderService fileFolderService
           
protected static java.util.Map INCLUDE_RELATIONSHIPS_ENUM_MAPPING
           
protected  org.alfresco.service.cmr.repository.NodeService nodeService
           
protected  org.alfresco.service.cmr.security.PermissionService permissionService
           
protected  PropertyUtil propertiesUtil
           
protected  org.alfresco.service.cmr.search.SearchService searchService
           
 
Constructor Summary
DMAbstractServicePort()
           
 
Method Summary
protected  void appendWithAce(org.alfresco.service.cmr.repository.NodeRef identifierInstance, org.alfresco.repo.cmis.ws.CmisObjectType object)
           
protected  void appendWithRelationships(org.alfresco.service.cmr.repository.NodeRef object, org.alfresco.cmis.PropertyFilter filter, org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, java.lang.String renditionFilter, org.alfresco.repo.cmis.ws.CmisObjectType result)
           
protected  org.alfresco.repo.cmis.ws.CmisACLType applyAclCarefully(org.alfresco.service.cmr.repository.NodeRef object, org.alfresco.repo.cmis.ws.CmisAccessControlListType addACEs, org.alfresco.repo.cmis.ws.CmisAccessControlListType removeACEs, org.alfresco.repo.cmis.ws.EnumACLPropagation aclPropagation, java.util.List policies)
           
protected  void applyPolicies(java.lang.String objectId, java.util.List policies)
           
protected  void checkRepositoryId(java.lang.String repositoryId)
          Checks specified in CMIS request parameters repository Id.
protected  org.alfresco.repo.cmis.ws.CmisACLType convertAclReportToCmisAclType(org.alfresco.cmis.CMISAccessControlReport aclReport)
           
protected  org.alfresco.repo.cmis.ws.CmisObjectType createCmisObject(java.lang.Object object, org.alfresco.cmis.PropertyFilter filter, org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, java.lang.String renditionFilter)
          This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).
protected  org.alfresco.repo.cmis.ws.CmisObjectType createCmisObject(java.lang.Object object, org.alfresco.cmis.PropertyFilter filter, org.alfresco.repo.cmis.ws.EnumIncludeRelationships includeRelationships, java.lang.Boolean includeAllowableActions, java.lang.String renditionFilter)
          This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).
protected  void createCmisObjectList(org.alfresco.cmis.PropertyFilter filter, org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, java.lang.String renditionFilter, java.util.List sourceList, java.util.List resultList)
          This method converts Alfresco's NodeRef's to CMIS objects those will be stored in resultList-parameter.
protected  Cursor createCursor(int totalRows, java.math.BigInteger skipCount, java.math.BigInteger maxItems)
           
protected  org.alfresco.cmis.PropertyFilter createPropertyFilter(javax.xml.bind.JAXBElement element)
           
protected  org.alfresco.cmis.PropertyFilter createPropertyFilter(java.lang.String filter)
           
protected  org.alfresco.repo.cmis.ws.CmisAllowableActionsType determineObjectAllowableActions(java.lang.Object objectIdentifier)
           
protected  java.util.List getRenditions(java.lang.Object object, java.lang.String renditionFilter)
           
protected  boolean isObjectInFolder(org.alfresco.service.cmr.repository.NodeRef object, org.alfresco.service.cmr.repository.NodeRef folder)
          Returns true if folder contains object
 void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)
           
 void setCmisAclService(org.alfresco.cmis.CMISAccessControlService cmisAclService)
           
 void setCmisChangeLogService(org.alfresco.cmis.CMISChangeLogService cmisChangeLogService)
           
 void setCmisQueryService(org.alfresco.cmis.CMISQueryService cmisQueryService)
           
 void setCmisRenditionService(org.alfresco.cmis.CMISRenditionService cmisRenditionService)
           
 void setCmisService(org.alfresco.cmis.CMISServices cmisService)
           
 void setDescriptorService(org.alfresco.service.descriptor.DescriptorService descriptorService)
           
 void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)
           
 void setPropertiesUtil(PropertyUtil propertiesUtil)
           
 void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_RELATIONSHIPS_ENUM_MAPPING

protected static final java.util.Map INCLUDE_RELATIONSHIPS_ENUM_MAPPING

cmisObjectFactory

protected org.alfresco.repo.cmis.ws.ObjectFactory cmisObjectFactory

cmisQueryService

protected org.alfresco.cmis.CMISQueryService cmisQueryService

cmisService

protected org.alfresco.cmis.CMISServices cmisService

cmisChangeLogService

protected org.alfresco.cmis.CMISChangeLogService cmisChangeLogService

cmisRenditionService

protected org.alfresco.cmis.CMISRenditionService cmisRenditionService

cmisAclService

protected org.alfresco.cmis.CMISAccessControlService cmisAclService

descriptorService

protected org.alfresco.service.descriptor.DescriptorService descriptorService

nodeService

protected org.alfresco.service.cmr.repository.NodeService nodeService

fileFolderService

protected org.alfresco.service.cmr.model.FileFolderService fileFolderService

searchService

protected org.alfresco.service.cmr.search.SearchService searchService

propertiesUtil

protected PropertyUtil propertiesUtil

permissionService

protected org.alfresco.service.cmr.security.PermissionService permissionService

authorityService

protected org.alfresco.service.cmr.security.AuthorityService authorityService
Constructor Detail

DMAbstractServicePort

public DMAbstractServicePort()
Method Detail

setCmisService

public void setCmisService(org.alfresco.cmis.CMISServices cmisService)

setCmisQueryService

public void setCmisQueryService(org.alfresco.cmis.CMISQueryService cmisQueryService)

setCmisChangeLogService

public void setCmisChangeLogService(org.alfresco.cmis.CMISChangeLogService cmisChangeLogService)

setCmisAclService

public void setCmisAclService(org.alfresco.cmis.CMISAccessControlService cmisAclService)

setCmisRenditionService

public void setCmisRenditionService(org.alfresco.cmis.CMISRenditionService cmisRenditionService)

setDescriptorService

public void setDescriptorService(org.alfresco.service.descriptor.DescriptorService descriptorService)

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)

setFileFolderService

public void setFileFolderService(org.alfresco.service.cmr.model.FileFolderService fileFolderService)

setPropertiesUtil

public void setPropertiesUtil(PropertyUtil propertiesUtil)

setSearchService

public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)

setPermissionService

public void setPermissionService(org.alfresco.service.cmr.security.PermissionService permissionService)

setAuthorityService

public void setAuthorityService(org.alfresco.service.cmr.security.AuthorityService authorityService)

createPropertyFilter

protected org.alfresco.cmis.PropertyFilter createPropertyFilter(java.lang.String filter)
                                                         throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

createPropertyFilter

protected org.alfresco.cmis.PropertyFilter createPropertyFilter(javax.xml.bind.JAXBElement element)
                                                         throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

createCursor

protected Cursor createCursor(int totalRows,
                              java.math.BigInteger skipCount,
                              java.math.BigInteger maxItems)

isObjectInFolder

protected boolean isObjectInFolder(org.alfresco.service.cmr.repository.NodeRef object,
                                   org.alfresco.service.cmr.repository.NodeRef folder)
Returns true if folder contains object

Parameters:
object - object NodeRef
folder - folder NodeRef
Returns:
returns true if folder contains object

createCmisObjectList

protected void createCmisObjectList(org.alfresco.cmis.PropertyFilter filter,
                                    org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships,
                                    boolean includeAllowableActions,
                                    java.lang.String renditionFilter,
                                    java.util.List sourceList,
                                    java.util.List resultList)
                             throws org.alfresco.repo.cmis.ws.CmisException
This method converts Alfresco's NodeRef's to CMIS objects those will be stored in resultList-parameter. Properties for returning filtering also performs

Parameters:
filter - properties filter value for filtering objects returning properties
includeRelationships - what relationships to include
sourceList - the list that contains all returning Node References
resultList - the list of CmisObjectType values for end response result collecting
Throws:
CmisException

createCmisObject

protected org.alfresco.repo.cmis.ws.CmisObjectType createCmisObject(java.lang.Object object,
                                                                    org.alfresco.cmis.PropertyFilter filter,
                                                                    org.alfresco.repo.cmis.ws.EnumIncludeRelationships includeRelationships,
                                                                    java.lang.Boolean includeAllowableActions,
                                                                    java.lang.String renditionFilter)
                                                             throws org.alfresco.repo.cmis.ws.CmisException
This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).

Parameters:
object - the Alfresco object
filter - accepted properties filter
includeRelationships - what relationships to include
includeAllowableActions - should we include allowable actions?
renditionFilter - the rendition filter
Returns:
the converted CMIS object
Throws:
CmisException - on error

createCmisObject

protected org.alfresco.repo.cmis.ws.CmisObjectType createCmisObject(java.lang.Object object,
                                                                    org.alfresco.cmis.PropertyFilter filter,
                                                                    org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships,
                                                                    boolean includeAllowableActions,
                                                                    java.lang.String renditionFilter)
                                                             throws org.alfresco.repo.cmis.ws.CmisException
This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).

Parameters:
object - the Alfresco object
filter - accepted properties filter
includeRelationships - what relationships to include
includeAllowableActions - should we include allowable actions?
renditionFilter - the rendition filter
Returns:
the converted CMIS object
Throws:
CmisException - on error

appendWithRelationships

protected void appendWithRelationships(org.alfresco.service.cmr.repository.NodeRef object,
                                       org.alfresco.cmis.PropertyFilter filter,
                                       org.alfresco.cmis.CMISRelationshipDirectionEnum includeRelationships,
                                       boolean includeAllowableActions,
                                       java.lang.String renditionFilter,
                                       org.alfresco.repo.cmis.ws.CmisObjectType result)
                                throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

checkRepositoryId

protected void checkRepositoryId(java.lang.String repositoryId)
                          throws org.alfresco.repo.cmis.ws.CmisException
Checks specified in CMIS request parameters repository Id.

Parameters:
repositoryId - repository id
Throws:
CmisException - repository diesn't exist

getRenditions

protected java.util.List getRenditions(java.lang.Object object,
                                       java.lang.String renditionFilter)
                                throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

appendWithAce

protected void appendWithAce(org.alfresco.service.cmr.repository.NodeRef identifierInstance,
                             org.alfresco.repo.cmis.ws.CmisObjectType object)

applyPolicies

protected void applyPolicies(java.lang.String objectId,
                             java.util.List policies)
                      throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

applyAclCarefully

protected org.alfresco.repo.cmis.ws.CmisACLType applyAclCarefully(org.alfresco.service.cmr.repository.NodeRef object,
                                                                  org.alfresco.repo.cmis.ws.CmisAccessControlListType addACEs,
                                                                  org.alfresco.repo.cmis.ws.CmisAccessControlListType removeACEs,
                                                                  org.alfresco.repo.cmis.ws.EnumACLPropagation aclPropagation,
                                                                  java.util.List policies)
                                                           throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException

convertAclReportToCmisAclType

protected org.alfresco.repo.cmis.ws.CmisACLType convertAclReportToCmisAclType(org.alfresco.cmis.CMISAccessControlReport aclReport)

determineObjectAllowableActions

protected org.alfresco.repo.cmis.ws.CmisAllowableActionsType determineObjectAllowableActions(java.lang.Object objectIdentifier)
                                                                                      throws org.alfresco.repo.cmis.ws.CmisException
Throws:
org.alfresco.repo.cmis.ws.CmisException


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