Package org.alfresco.util
Class PolicyIgnoreUtil
- java.lang.Object
-
- org.alfresco.util.PolicyIgnoreUtil
-
public class PolicyIgnoreUtil extends java.lang.ObjectUtility class which checks whether a node is in a store on which policies should not be applied(e.g. archive://SpacesStore)- Author:
- cpopa
-
-
Constructor Summary
Constructors Constructor Description PolicyIgnoreUtil()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanignorePolicy(org.alfresco.service.cmr.repository.NodeRef nodeRef)Checks whether the node is in a store on which policies should not be applied.voidsetStoresToIgnorePolicies(java.util.Set<java.lang.String> storesToIgnorePolicies)voidsetTenantService(org.alfresco.repo.tenant.TenantService tenantService)
-
-
-
Method Detail
-
setStoresToIgnorePolicies
public void setStoresToIgnorePolicies(java.util.Set<java.lang.String> storesToIgnorePolicies)
-
setTenantService
public void setTenantService(org.alfresco.repo.tenant.TenantService tenantService)
-
ignorePolicy
public boolean ignorePolicy(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Checks whether the node is in a store on which policies should not be applied.- Parameters:
nodeRef- node to check if the policy can be run or not- Returns:
- true if the nodeRef is part of a store which should be ignored when invoking policies(e.g. archive://SpacesStore)
-
-