Class PolicyIgnoreUtil

java.lang.Object
org.alfresco.util.PolicyIgnoreUtil

public class PolicyIgnoreUtil extends Object
Utility class which checks whether a node is in a store on which policies should not be applied(e.g. archive://SpacesStore)
Author:
cpopa
  • Constructor Details

    • PolicyIgnoreUtil

      public PolicyIgnoreUtil()
  • Method Details

    • setStoresToIgnorePolicies

      public void setStoresToIgnorePolicies(Set<String> storesToIgnorePolicies)
    • setTenantService

      public void setTenantService(TenantService tenantService)
    • ignorePolicy

      public boolean ignorePolicy(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)