Class ItemFilterImpl

java.lang.Object
com.day.cq.wcm.msm.commons.ItemFilterImpl

public class ItemFilterImpl extends Object
Provides item filter capabilities through a set of patters that allow excluding of nodes, properties and node types based on a set of patterns.
  • Method Details

    • excludes

      public boolean excludes(Property property) throws RepositoryException
      Checks if a given property is excluded.
      Parameters:
      property - the Property to be checked
      Returns:
      True in the following cases: - property is protected or automatically created - property pattern is empty and the default filter's excludes returns true - property's parent node is excluded OR the property name is a MSM reserved property (as indicated by the RolloutManager) OR one of the property patterns matches the property's name
      Throws:
      RepositoryException - Throws RepositoryException
    • excludes

      public boolean excludes(Node node) throws RepositoryException
      Checks if a given node is excluded
      Parameters:
      node - the Node to be checked
      Returns:
      True in the following cases: - node is protected - node name is a MSM reserved property - node type or mixin type is excluded - name matches one of the patterns in the node pattern set of this filter or the default filter if this filter is empty
      Throws:
      RepositoryException - Throws RepositoryException
    • excludesNodeType

      public boolean excludesNodeType(String nodeTypeName)
      Checks if a given node type name is excluded
      Parameters:
      nodeTypeName - a String containing the node type
      Returns:
      True if: - default filter excludeNodeType returns true, when this node type pattern set is empty - node type name matches one of patterns in the node type pattern set
    • getNodeTypePattern

      public Set<Pattern> getNodeTypePattern()
    • getNodeNamePattern

      public Set<Pattern> getNodeNamePattern()
    • getPropertyNamePattern

      public Set<Pattern> getPropertyNamePattern()