public class DMPolicyServicePort extends DMAbstractServicePort implements org.alfresco.repo.cmis.ws.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(java.lang.String repositoryId,
java.lang.String policyId,
java.lang.String objectId,
javax.xml.ws.Holder extension)
Applies a policy object to a target object.
|
java.util.List |
getAppliedPolicies(java.lang.String repositoryId,
java.lang.String objectId,
java.lang.String filter,
org.alfresco.repo.cmis.ws.CmisExtensionType extension)
Gets the list of policy objects currently applied to a target object.
|
void |
removePolicy(java.lang.String repositoryId,
java.lang.String policyId,
java.lang.String objectId,
javax.xml.ws.Holder 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, setSearchService
public void applyPolicy(java.lang.String repositoryId, java.lang.String policyId, java.lang.String objectId, javax.xml.ws.Holder extension) throws org.alfresco.repo.cmis.ws.CmisException
applyPolicy
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
repositoryId
- repository IdpolicyId
- policy IdobjectId
- target object IdCmisException
- (with following EnumServiceException
: INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)public java.util.List getAppliedPolicies(java.lang.String repositoryId, java.lang.String objectId, java.lang.String filter, org.alfresco.repo.cmis.ws.CmisExtensionType extension) throws org.alfresco.repo.cmis.ws.CmisException
getAppliedPolicies
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
parameters
- 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(java.lang.String repositoryId, java.lang.String policyId, java.lang.String objectId, javax.xml.ws.Holder extension) throws org.alfresco.repo.cmis.ws.CmisException
removePolicy
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
repositoryId
- repository IdpolicyId
- policy IdobjectId
- target object Id.CmisException
- (with following EnumServiceException
: INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.