Package com.day.cq.wcm.msm.commons
Class ItemFilterImpl
java.lang.Object
com.day.cq.wcm.msm.commons.ItemFilterImpl
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 Summary
Modifier and TypeMethodDescriptionbooleanChecks if a given node is excludedbooleanChecks if a given property is excluded.booleanexcludesNodeType(String nodeTypeName) Checks if a given node type name is excluded
-
Method Details
-
excludes
Checks if a given property is excluded.- Parameters:
property- thePropertyto 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
Checks if a given node is excluded- Parameters:
node- theNodeto 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
Checks if a given node type name is excluded- Parameters:
nodeTypeName- aStringcontaining 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
-
getNodeNamePattern
-
getPropertyNamePattern
-