public class DMPolicyServicePort extends DMAbstractServicePort implements PolicyServicePort
authorityService, cmisAclService, cmisChangeLogService, cmisObjectFactory, cmisQueryService, cmisRenditionService, cmisService, descriptorService, fileFolderService, INCLUDE_RELATIONSHIPS_ENUM_MAPPING, nodeService, permissionService, propertiesUtil, searchService| Constructor and Description |
|---|
DMPolicyServicePort() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyPolicy(String repositoryId,
String policyId,
String objectId,
Holder<CmisExtensionType> extension)
Applies a policy object to a target object.
|
List<CmisObjectType> |
getAppliedPolicies(String repositoryId,
String objectId,
String filter,
CmisExtensionType extension)
Gets the list of policy objects currently applied to a target object.
|
void |
removePolicy(String repositoryId,
String policyId,
String objectId,
Holder<CmisExtensionType> extension)
Removes a previously applied policy from a target object.
|
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, setSearchServicepublic void applyPolicy(String repositoryId, String policyId, String objectId, Holder<CmisExtensionType> extension) throws CmisException
applyPolicy in interface PolicyServicePortrepositoryId - repository IdpolicyId - policy IdobjectId - target object IdCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)public List<CmisObjectType> getAppliedPolicies(String repositoryId, String objectId, String filter, CmisExtensionType extension) throws CmisException
getAppliedPolicies in interface PolicyServicePortparameters - repositoryId: repository Id; objectId: target object Id; filter: filter specifying which properties to returnCmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID)public void removePolicy(String repositoryId, String policyId, String objectId, Holder<CmisExtensionType> extension) throws CmisException
removePolicy in interface PolicyServicePortrepositoryId - repository IdpolicyId - policy IdobjectId - target object Id.CmisException - (with following EnumServiceException : INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)Copyright © 2005–2014 Alfresco Software. All rights reserved.