Class PolicyIgnoreUtil


  • public class PolicyIgnoreUtil
    extends java.lang.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean ignorePolicy​(org.alfresco.service.cmr.repository.NodeRef nodeRef)
      Checks whether the node is in a store on which policies should not be applied.
      void setStoresToIgnorePolicies​(java.util.Set<java.lang.String> storesToIgnorePolicies)  
      void setTenantService​(org.alfresco.repo.tenant.TenantService tenantService)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PolicyIgnoreUtil

        public PolicyIgnoreUtil()
    • 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)