Class AbstractChecksumGeneratorOptions
- java.lang.Object
-
- com.adobe.acs.commons.analysis.jcrchecksum.impl.options.AbstractChecksumGeneratorOptions
-
- All Implemented Interfaces:
ChecksumGeneratorOptions
- Direct Known Subclasses:
CustomChecksumGeneratorOptions,DefaultChecksumGeneratorOptions,RequestChecksumGeneratorOptions
@ProviderType public abstract class AbstractChecksumGeneratorOptions extends Object implements ChecksumGeneratorOptions
Provides options to configure how to generate checksums usingChecksumGenerator.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>excludedNodeNamesprotected Set<String>excludedNodeTypesprotected Set<String>excludedPropertiesprotected Set<String>excludedSubTreesprotected Set<String>includedNodeTypesprotected Set<String>sortedProperties-
Fields inherited from interface com.adobe.acs.commons.analysis.jcrchecksum.ChecksumGeneratorOptions
DATA, NODE_NAME_EXCLUDES, NODE_TYPE_EXCLUDES, NODES_TYPES, PATHS, PROPERTY_EXCLUDES, QUERY, QUERY_TYPE, SORTED_PROPERTIES, SUB_TREE_EXCLUDES
-
-
Constructor Summary
Constructors Constructor Description AbstractChecksumGeneratorOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExcludedNodeNames(String... data)voidaddExcludedNodeTypes(String... data)voidaddExcludedProperties(String... data)voidaddExcludedSubTrees(String... data)voidaddIncludedNodeTypes(String... data)voidaddSortedProperties(String... data)Set<String>getExcludedNodeNames()Set<String>getExcludedNodeTypes()Set<String>getExcludedProperties()Set<String>getExcludedSubTrees()Set<String>getIncludedNodeTypes()For a node to be checksumable, its primaryType must exists in getIncludedNodesTypes() and not exist in getExcludedNodeTypes().Set<String>getSortedProperties()StringtoString()
-
-
-
Method Detail
-
addIncludedNodeTypes
public void addIncludedNodeTypes(String... data)
-
getIncludedNodeTypes
public Set<String> getIncludedNodeTypes()
Description copied from interface:ChecksumGeneratorOptionsFor a node to be checksumable, its primaryType must exists in getIncludedNodesTypes() and not exist in getExcludedNodeTypes().- Specified by:
getIncludedNodeTypesin interfaceChecksumGeneratorOptions- Returns:
- the nodes types which are candidates for aggregation.
-
addExcludedNodeTypes
public void addExcludedNodeTypes(String... data)
-
getExcludedNodeTypes
public Set<String> getExcludedNodeTypes()
- Specified by:
getExcludedNodeTypesin interfaceChecksumGeneratorOptions- Returns:
- the node types which are not candidates for aggregation and cannot be aggregated under aggregation candidates.
-
addExcludedProperties
public void addExcludedProperties(String... data)
-
getExcludedProperties
public Set<String> getExcludedProperties()
- Specified by:
getExcludedPropertiesin interfaceChecksumGeneratorOptions- Returns:
- the property names that should not be included as part of the checksum hash
-
addSortedProperties
public void addSortedProperties(String... data)
-
getSortedProperties
public Set<String> getSortedProperties()
- Specified by:
getSortedPropertiesin interfaceChecksumGeneratorOptions- Returns:
- the property names whose multi-value order as defined in the JCR should be respected.
-
getExcludedNodeNames
public Set<String> getExcludedNodeNames()
- Specified by:
getExcludedNodeNamesin interfaceChecksumGeneratorOptions- Returns:
- the nodeNames to exclude (sub-nodes WILL be traverse/checksumed)
-
addExcludedNodeNames
public void addExcludedNodeNames(String... data)
-
getExcludedSubTrees
public Set<String> getExcludedSubTrees()
- Specified by:
getExcludedSubTreesin interfaceChecksumGeneratorOptions- Returns:
- the named node subTrees to exclude (the matching node and any sub-nodes will NOT be traversed/checksumed)
-
addExcludedSubTrees
public void addExcludedSubTrees(String... data)
-
-