org.alfresco.repo.cmis.ws
Class DMPolicyServicePort
java.lang.Object
org.alfresco.repo.cmis.ws.DMAbstractServicePort
org.alfresco.repo.cmis.ws.DMPolicyServicePort
- All Implemented Interfaces:
- org.alfresco.repo.cmis.ws.PolicyServicePort
public class DMPolicyServicePort
- extends DMAbstractServicePort
- implements org.alfresco.repo.cmis.ws.PolicyServicePort
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 |
Method Summary |
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. |
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 |
DMPolicyServicePort
public DMPolicyServicePort()
applyPolicy
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
- Applies a policy object to a target object.
- Specified by:
applyPolicy
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
- Parameters:
repositoryId
- repository IdpolicyId
- policy IdobjectId
- target object Id
- Throws:
CmisException
- (with following EnumServiceException
: INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)
getAppliedPolicies
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
- Gets the list of policy objects currently applied to a target object.
- Specified by:
getAppliedPolicies
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
- Parameters:
parameters
- repositoryId: repository Id; objectId: target object Id; filter: filter specifying which properties to return
- Throws:
CmisException
- (with following EnumServiceException
: INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, FILTER_NOT_VALID)
removePolicy
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
- Removes a previously applied policy from a target object. The policy object is not deleted, and may still be applied to other objects.
- Specified by:
removePolicy
in interface org.alfresco.repo.cmis.ws.PolicyServicePort
- Parameters:
repositoryId
- repository IdpolicyId
- policy IdobjectId
- target object Id.
- Throws:
CmisException
- (with following EnumServiceException
: INVALID_ARGUMENT, OBJECT_NOT_FOUND, NOT_SUPPORTED, PERMISSION_DENIED, RUNTIME, CONSTRAINT)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.