Package com.day.cq.wcm.msm.commons
Class ItemFilterUtil
java.lang.Object
com.day.cq.wcm.msm.commons.ItemFilterUtil
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final String[]static final String[]static final String[]static final StringExcluded node types parameter name to use for your Service Configuration.static final StringExcluded paragraph items parameter name to use for your Service Configuration.static final StringExcluded properties parameter name to use for your Service Configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ItemFilterImplcreateComponentFilter(Dictionary properties, RolloutManager rolloutManager) Creates an ItemFilterImpl from the given Properties with the namePARAMETER_EXCLUDED_NODE_TYPESandPARAMETER_EXCLUDED_PARAGRAPH_ITEMS
Properties default to empty.static ItemFilterImplcreateComponentFilter(ValueMap config, RolloutManager rolloutManager) Helper method to create a component filter using aValueMapstatic ItemFilterImplcreateFilter(String[] nodeTypes, String[] nodeNames, String[] propertyNames, RolloutManager rolloutManager) Creates an ItemFilterImpl based on a set of patterns that will be used to match NodeTypes, Node names and Property names.static ItemFilterImplcreatePageFilter(Dictionary properties, RolloutManager rolloutManager) Creates an ItemFilterImpl from the given Properties with the namePARAMETER_EXCLUDED_NODE_TYPESandPARAMETER_EXCLUDED_PROPERTIES
Properties default to empty.static ItemFilterImplcreatePageFilter(ValueMap config, RolloutManager rolloutManager) Helper method to create a page filter using aValueMap
-
Field Details
-
EMPTY_PROPERTIES
-
PARAMETER_EXCLUDED_PROPERTIES
Excluded properties parameter name to use for your Service Configuration.- See Also:
-
EXCLUDED_PROPERTIES_DEFAULT
-
PARAMETER_EXCLUDED_PARAGRAPH_ITEMS
Excluded paragraph items parameter name to use for your Service Configuration.- See Also:
-
EXCLUDED_PARAGRAPH_ITEMS_DEFAULT
-
PARAMETER_EXCLUDED_NODE_TYPES
Excluded node types parameter name to use for your Service Configuration.- See Also:
-
EXCLUDED_NODE_TYPES_DEFAULT
-
-
Constructor Details
-
ItemFilterUtil
public ItemFilterUtil()
-
-
Method Details
-
createPageFilter
Creates an ItemFilterImpl from the given Properties with the namePARAMETER_EXCLUDED_NODE_TYPESandPARAMETER_EXCLUDED_PROPERTIES
Properties default to empty.- Parameters:
properties- used for configurationrolloutManager- to access the roll-out reserved settings.- Returns:
- ItemFilterImpl.
-
createComponentFilter
public static ItemFilterImpl createComponentFilter(Dictionary properties, RolloutManager rolloutManager) Creates an ItemFilterImpl from the given Properties with the namePARAMETER_EXCLUDED_NODE_TYPESandPARAMETER_EXCLUDED_PARAGRAPH_ITEMS
Properties default to empty.- Parameters:
properties- used for configurationrolloutManager- to access the roll-out reserved settings.- Returns:
- ItemFilterImpl.
-
createPageFilter
Helper method to create a page filter using aValueMap- Parameters:
config-ValueMapof configurationrolloutManager-RolloutManagerrolloutManager- Returns:
ItemFilterImpl- See Also:
-
createComponentFilter
Helper method to create a component filter using aValueMap- Parameters:
config-ValueMapof configurationrolloutManager-RolloutManagerrolloutManager- Returns:
ItemFilterImpl- See Also:
-
createFilter
public static ItemFilterImpl createFilter(String[] nodeTypes, String[] nodeNames, String[] propertyNames, RolloutManager rolloutManager) Creates an ItemFilterImpl based on a set of patterns that will be used to match NodeTypes, Node names and Property names.- Parameters:
nodeTypes- RegExp pattern of NodeType names to filternodeNames- RegExp pattern of Node names to filterpropertyNames- RegExp pattern of Property Names to filterrolloutManager- aRolloutManagerto serve as the default filter if the above pattern sets are empty- Returns:
- an
ItemFilterImplinstance
-