public class DMAbstractServicePort extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuthorityService |
authorityService |
protected CMISAccessControlService |
cmisAclService |
protected CMISChangeLogService |
cmisChangeLogService |
protected ObjectFactory |
cmisObjectFactory |
protected CMISQueryService |
cmisQueryService |
protected CMISRenditionService |
cmisRenditionService |
protected CMISServices |
cmisService |
protected DescriptorService |
descriptorService |
protected FileFolderService |
fileFolderService |
protected static Map<EnumIncludeRelationships,CMISRelationshipDirectionEnum> |
INCLUDE_RELATIONSHIPS_ENUM_MAPPING |
protected NodeService |
nodeService |
protected PermissionService |
permissionService |
protected PropertyUtil |
propertiesUtil |
protected SearchService |
searchService |
| Constructor and Description |
|---|
DMAbstractServicePort() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendWithAce(NodeRef identifierInstance,
CmisObjectType object) |
protected void |
appendWithRelationships(NodeRef object,
PropertyFilter filter,
CMISRelationshipDirectionEnum includeRelationships,
boolean includeAllowableActions,
String renditionFilter,
CmisObjectType result) |
protected CmisACLType |
applyAclCarefully(NodeRef object,
CmisAccessControlListType addACEs,
CmisAccessControlListType removeACEs,
EnumACLPropagation aclPropagation,
List<String> policies) |
protected void |
applyPolicies(String objectId,
List<String> policies) |
protected void |
checkRepositoryId(String repositoryId)
Checks specified in CMIS request parameters repository Id.
|
protected CmisACLType |
convertAclReportToCmisAclType(CMISAccessControlReport aclReport) |
protected CmisObjectType |
createCmisObject(Object object,
PropertyFilter filter,
CMISRelationshipDirectionEnum includeRelationships,
boolean includeAllowableActions,
String renditionFilter)
This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).
|
protected CmisObjectType |
createCmisObject(Object object,
PropertyFilter filter,
EnumIncludeRelationships includeRelationships,
Boolean includeAllowableActions,
String renditionFilter)
This method creates and configures CMIS object against appropriate Alfresco object (NodeRef or AssociationRef).
|
protected void |
createCmisObjectList(PropertyFilter filter,
CMISRelationshipDirectionEnum includeRelationships,
boolean includeAllowableActions,
String renditionFilter,
List<NodeRef> sourceList,
List<CmisObjectType> resultList)
This method converts Alfresco's NodeRef's to CMIS objects those will be stored in resultList-parameter.
|
protected Cursor |
createCursor(int totalRows,
BigInteger skipCount,
BigInteger maxItems) |
protected PropertyFilter |
createPropertyFilter(JAXBElement<String> element) |
protected PropertyFilter |
createPropertyFilter(String filter) |
protected CmisAllowableActionsType |
determineObjectAllowableActions(Object objectIdentifier) |
protected List<CmisRenditionType> |
getRenditions(Object object,
String renditionFilter) |
protected boolean |
isObjectInFolder(NodeRef object,
NodeRef folder)
Returns true if folder contains object
|
void |
setAuthorityService(AuthorityService authorityService) |
void |
setCmisAclService(CMISAccessControlService cmisAclService) |
void |
setCmisChangeLogService(CMISChangeLogService cmisChangeLogService) |
void |
setCmisQueryService(CMISQueryService cmisQueryService) |
void |
setCmisRenditionService(CMISRenditionService cmisRenditionService) |
void |
setCmisService(CMISServices cmisService) |
void |
setDescriptorService(DescriptorService descriptorService) |
void |
setFileFolderService(FileFolderService fileFolderService) |
void |
setNodeService(NodeService nodeService) |
void |
setPermissionService(PermissionService permissionService) |
void |
setPropertiesUtil(PropertyUtil propertiesUtil) |
void |
setSearchService(SearchService searchService) |
protected static final Map<EnumIncludeRelationships,CMISRelationshipDirectionEnum> INCLUDE_RELATIONSHIPS_ENUM_MAPPING
protected ObjectFactory cmisObjectFactory
protected CMISQueryService cmisQueryService
protected CMISServices cmisService
protected CMISChangeLogService cmisChangeLogService
protected CMISRenditionService cmisRenditionService
protected CMISAccessControlService cmisAclService
protected DescriptorService descriptorService
protected NodeService nodeService
protected FileFolderService fileFolderService
protected SearchService searchService
protected PropertyUtil propertiesUtil
protected PermissionService permissionService
protected AuthorityService authorityService
public void setCmisService(CMISServices cmisService)
public void setCmisQueryService(CMISQueryService cmisQueryService)
public void setCmisChangeLogService(CMISChangeLogService cmisChangeLogService)
public void setCmisAclService(CMISAccessControlService cmisAclService)
public void setCmisRenditionService(CMISRenditionService cmisRenditionService)
public void setDescriptorService(DescriptorService descriptorService)
public void setNodeService(NodeService nodeService)
public void setFileFolderService(FileFolderService fileFolderService)
public void setPropertiesUtil(PropertyUtil propertiesUtil)
public void setSearchService(SearchService searchService)
public void setPermissionService(PermissionService permissionService)
public void setAuthorityService(AuthorityService authorityService)
protected PropertyFilter createPropertyFilter(String filter) throws CmisException
CmisExceptionprotected PropertyFilter createPropertyFilter(JAXBElement<String> element) throws CmisException
CmisExceptionprotected Cursor createCursor(int totalRows, BigInteger skipCount, BigInteger maxItems)
protected boolean isObjectInFolder(NodeRef object, NodeRef folder)
object - object NodeReffolder - folder NodeRefprotected void createCmisObjectList(PropertyFilter filter, CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, String renditionFilter, List<NodeRef> sourceList, List<CmisObjectType> resultList) throws CmisException
filter - properties filter value for filtering objects returning propertiesincludeRelationships - what relationships to includesourceList - the list that contains all returning Node ReferencesresultList - the list of CmisObjectType values for end response result collectingCmisExceptionprotected CmisObjectType createCmisObject(Object object, PropertyFilter filter, EnumIncludeRelationships includeRelationships, Boolean includeAllowableActions, String renditionFilter) throws CmisException
object - the Alfresco objectfilter - accepted properties filterincludeRelationships - what relationships to includeincludeAllowableActions - should we include allowable actions?renditionFilter - the rendition filterCmisException - on errorprotected CmisObjectType createCmisObject(Object object, PropertyFilter filter, CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, String renditionFilter) throws CmisException
object - the Alfresco objectfilter - accepted properties filterincludeRelationships - what relationships to includeincludeAllowableActions - should we include allowable actions?renditionFilter - the rendition filterCmisException - on errorprotected void appendWithRelationships(NodeRef object, PropertyFilter filter, CMISRelationshipDirectionEnum includeRelationships, boolean includeAllowableActions, String renditionFilter, CmisObjectType result) throws CmisException
CmisExceptionprotected void checkRepositoryId(String repositoryId) throws CmisException
repositoryId - repository idCmisException - repository diesn't existprotected List<CmisRenditionType> getRenditions(Object object, String renditionFilter) throws CmisException
CmisExceptionprotected void appendWithAce(NodeRef identifierInstance, CmisObjectType object)
protected void applyPolicies(String objectId, List<String> policies) throws CmisException
CmisExceptionprotected CmisACLType applyAclCarefully(NodeRef object, CmisAccessControlListType addACEs, CmisAccessControlListType removeACEs, EnumACLPropagation aclPropagation, List<String> policies) throws CmisException
CmisExceptionprotected CmisACLType convertAclReportToCmisAclType(CMISAccessControlReport aclReport)
protected CmisAllowableActionsType determineObjectAllowableActions(Object objectIdentifier) throws CmisException
CmisExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.