public class ItemFilterUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_PROPERTIES |
static String[] |
EXCLUDED_NODE_TYPES_DEFAULT |
static String[] |
EXCLUDED_PARAGRAPH_ITEMS_DEFAULT |
static String[] |
EXCLUDED_PROPERTIES_DEFAULT |
static String |
PARAMETER_EXCLUDED_NODE_TYPES
Excluded node types parameter name to use for your Service Configuration.
|
static String |
PARAMETER_EXCLUDED_PARAGRAPH_ITEMS
Excluded paragraph items parameter name to use for your Service Configuration.
|
static String |
PARAMETER_EXCLUDED_PROPERTIES
Excluded properties parameter name to use for your Service Configuration.
|
| Constructor and Description |
|---|
ItemFilterUtil() |
| Modifier and Type | Method and Description |
|---|---|
static ItemFilterImpl |
createComponentFilter(Dictionary properties,
RolloutManager rolloutManager)
Creates an ItemFilterImpl from the given Properties with the name
PARAMETER_EXCLUDED_NODE_TYPES and
PARAMETER_EXCLUDED_PARAGRAPH_ITEMS Properties default to empty. |
static ItemFilterImpl |
createComponentFilter(ValueMap config,
RolloutManager rolloutManager)
Helper method to create a component filter using a
ValueMap |
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.
|
static ItemFilterImpl |
createPageFilter(Dictionary properties,
RolloutManager rolloutManager)
Creates an ItemFilterImpl from the given Properties with the name
PARAMETER_EXCLUDED_NODE_TYPES and
PARAMETER_EXCLUDED_PROPERTIES Properties default to empty. |
static ItemFilterImpl |
createPageFilter(ValueMap config,
RolloutManager rolloutManager)
Helper method to create a page filter using a
ValueMap |
public static final String[] EMPTY_PROPERTIES
public static final String PARAMETER_EXCLUDED_PROPERTIES
public static final String[] EXCLUDED_PROPERTIES_DEFAULT
public static final String PARAMETER_EXCLUDED_PARAGRAPH_ITEMS
public static final String[] EXCLUDED_PARAGRAPH_ITEMS_DEFAULT
public static final String PARAMETER_EXCLUDED_NODE_TYPES
public static final String[] EXCLUDED_NODE_TYPES_DEFAULT
public static ItemFilterImpl createPageFilter(Dictionary properties, RolloutManager rolloutManager)
PARAMETER_EXCLUDED_NODE_TYPES and
PARAMETER_EXCLUDED_PROPERTIES properties - used for configurationrolloutManager - to access the roll-out reserved settings.public static ItemFilterImpl createComponentFilter(Dictionary properties, RolloutManager rolloutManager)
PARAMETER_EXCLUDED_NODE_TYPES and
PARAMETER_EXCLUDED_PARAGRAPH_ITEMS properties - used for configurationrolloutManager - to access the roll-out reserved settings.public static ItemFilterImpl createPageFilter(ValueMap config, RolloutManager rolloutManager)
ValueMapconfig - ValueMap of configurationrolloutManager - RolloutManager rolloutManagerItemFilterImplcreatePageFilter(java.util.Dictionary, com.day.cq.wcm.msm.api.RolloutManager)public static ItemFilterImpl createComponentFilter(ValueMap config, RolloutManager rolloutManager)
ValueMapconfig - ValueMap of configurationrolloutManager - RolloutManager rolloutManagerItemFilterImplcreateComponentFilter(java.util.Dictionary, com.day.cq.wcm.msm.api.RolloutManager)public static ItemFilterImpl createFilter(String[] nodeTypes, String[] nodeNames, String[] propertyNames, RolloutManager rolloutManager)
nodeTypes - RegExp pattern of NodeType names to filternodeNames - RegExp pattern of Node names to filterpropertyNames - RegExp pattern of Property Names to filterrolloutManager - a RolloutManager to serve as the default filter if the above pattern sets are emptyItemFilterImpl instanceCopyright © 2010 - 2020 Adobe. All Rights Reserved