/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { List } from "../../types/java/util/List"; import type { Filter } from "../../types/senselogic/sitevision/api/base/Filter"; import type { Map } from "../../types/java/util/Map"; import type { Collection } from "../../types/java/util/Collection"; import type { FilterSplit } from "../../types/senselogic/sitevision/api/base/FilterSplit"; import type { CompoundAndFilterBuilder } from "../CompoundAndFilterBuilder"; import type { CompoundOrFilterBuilder } from "../CompoundOrFilterBuilder"; import type { String } from "../../types/java/lang/String"; import type { Calendar } from "../../types/java/util/Calendar"; /** * Node filter utility interface. * *

* A node filter is used to match a node against one or more criteria as specified by the filter. *

* * * *

* A filter can be used "standalone" to simplify your code, but can also be used in utilities with methods that supports node filters. * Examples of such utilities are {@link senselogic.sitevision.api.node.NodeIteratorUtil} and {@link senselogic.sitevision.api.node.NodeTreeUtil}. *

* *

A Velocity example

*

* This example uses Velocity to demonstrate how to build a filter that matches image nodes that has a width of at least 700 * or a height of at least 500. *

*
    #set ($nodeFilterUtil = $sitevisionUtils.NodeFilterUtil)
 *     #set ($nodeTypeUtil = $sitevisionUtils.NodeTypeUtil)
 *
 *     ## Set up individual filters needed
 *     #set ($imageFilter = $nodeFilterUtil.getPrimaryNodeTypeFilter($nodeTypeUtil.IMAGE_TYPE))
 *     #set ($minWidthFilter = $nodeFilterUtil.getMinIntPropertyFilter('width', 700))
 *     #set ($minHeightFilter = $nodeFilterUtil.getMinIntPropertyFilter('height', 500))
 *
 *     ## The width and the height filters should be logically combined with the OR operator
 *     #set ($sizeFilterBuilder = $nodeFilterUtil.CompoundOrFilterBuilder)
 *     #set ($sizeFilter = $sizeFilterBuilder.addFilter($minWidthFilter).addFilter($minHeightFilter).build())
 *
 *     ## The type and the size filters should be logically combined with the AND operator
 *     #set ($sizedImageFilterBuilder = $nodeFilterUtil.CompoundAndFilterBuilder)
 *     #set ($sizedImageFilter = $sizedImageFilterBuilder.addFilter($imageFilter).addFilter($sizeFilter).build())
*

* Now the $sizedImageFilter can be used to match individual nodes, for example: *

*
    #if ($sizedImageFilter.accept($myNode))
 *        ## Handle matching image
 *        ...
 *     #end
*

* The $sizedImageFilter can also be used to match multiple nodes via a filter-supporting utility. * {@link senselogic.sitevision.api.node.NodeIteratorUtil} is an example of such utility. * It provides support to find the first, all or a given number of matches of the nodes provided by * a NodeIterator, for example: *

*
    #set ($nodeIteratorUtil = $sitevisionUtils.NodeIteratorUtil)
 *     #set ($matches = $nodeIteratorUtil.findNodes($aNodeIterator, $sizedImageFilter, 5)) ## Max 5 matches
 *     #if (!$matches.isEmpty())
 *        ## Handle matching images
 *        ...
 *     #end
*

* Tip! See {@link senselogic.sitevision.api.base.Builder} for how to work with builders. *

* *

* Beware of nulls! Invoking the {@link Filter#accept(Object) accept} method on a node filter with * null should always be avoided! Filters returned from this class are forgiving and will typically handle null * but the result might be unexpected, depending on what the filter is actually used for. * For instance: Invoking a {@link #getHasPropertyFilter(String) HasPropertyfilter} with null will return * false (i.e. "null is not accepted"). But consequently will the same filter wrapped in a * {@link #getInvertedFilter(Filter) InvertedFilter} return true (i.e. "null is accepted"). *

* *

* * Disclaimer! The Property-based filters for the Java native int type (i.e. get*IntPropertyValue) * is not guaranteed to always deliver proper result for the native's "edge" values. * Such filter invoked with Integer.MIN_VALUE or Integer.MAX_VALUE can under very rare circumstances * return false when it actually should have returned true. This is a performance consideration and should under normal circumstances * never cause any trouble (the value of a int property for a Node is extremely seldom, if ever, an "edge" value). * *

* *

* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getNodeFilterUtil()}. * See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface. *

* @author Magnus Lövgren * @since Sitevision 3.6.2 */ export interface NodeFilterUtil { /** * Applies a node filter to a list and gets the result. * @param aNodeList the list of nodes * @param aNodeFilter a node filter * @return a list of all nodes of aNodeList that is accepted by aNodeFilter, never null. aNodeList itself is returned if it's empty or if aNodeFilter is null */ getFilteredList(aNodeList: List | unknown[], aNodeFilter: Filter): List; /** * Applies a node filter to a Map with Node values and gets the result. * @param aNodeValueMap a map with node values * @param aNodeFilter a node filter * @return a Map with all aNodeValueMap entries with a value that is accepted by aNodeFilter, never null. aNodeValueMap itself is returned if it's empty or if aNodeFilter is null * @since Sitevision 4.3.1 */ getFilteredValueMap(aNodeValueMap: Map | {}, aNodeFilter: Filter): Map; /** * Applies a node filter to a Map with Node keys and gets the result. * @param aNodeKeyMap a map with node keys * @param aNodeFilter a node filter * @return a Map with all aNodeKeyMap entries with a key that is accepted by aNodeFilter, never null. aNodeKeyMap itself is returned if it's empty or if aNodeFilter is null * @since Sitevision 4.3.1 */ getFilteredKeyMap(aNodeKeyMap: Map | {}, aNodeFilter: Filter): Map; /** * Gets the filtering result of a split operation for a collection of nodes with a node filter as divider. * *

* This method would typically be used instead of {@link #getFilteredList(java.util.List, senselogic.sitevision.api.base.Filter)} * when you are also interested in the nodes that does NOT match the filter. *

* *

* When nodes are available via a NodeIterator, you would typically use the * {@link senselogic.sitevision.api.node.NodeIteratorUtil#split(javax.jcr.NodeIterator, senselogic.sitevision.api.base.Filter)} * instead! *

* @param aNodeCollection a node collection * @param aNodeFilter a node filter * @return the result of the filtering operation * @since Sitevision 3.6.3 * @see senselogic.sitevision.api.node.NodeIteratorUtil#split(javax.jcr.NodeIterator, senselogic.sitevision.api.base.Filter) */ split( aNodeCollection: Collection | unknown[], aNodeFilter: Filter ): FilterSplit; /** * Gets a builder for creating a compound filter that requires that all of the containing filters matches. * *

* The CompoundAndFilterBuilder builds a node filter of multiple filters that are combined using the logical * AND operator. *

* @return a CompoundAndFilterBuilder */ getCompoundAndFilterBuilder(): CompoundAndFilterBuilder; /** * Gets a builder for creating a compound filter that requires that any of the containing filters matches. * *

* The CompoundOrFilterBuilder builds a node filter of multiple filters that are combined using the logical * OR operator. *

* @return a CompoundOrFilterBuilder * @see #getAnyOfPrimaryNodeTypesFilter(Collection) */ getCompoundOrFilterBuilder(): CompoundOrFilterBuilder; /** * Gets a filter that always matches. * @return a filter that matches all nodes. */ getAlwaysAcceptFilter(): Filter; /** * Gets a filter that never matches. * @return a filter that never matches any nodes. */ getNeverAcceptFilter(): Filter; /** * Gets a filter that matches null nodes. * @return a filter that matches null nodes. * @since Sitevision 4.3.1 */ getNullFilter(): Filter; /** * Gets a filter that matches non-null nodes. * @return a filter that matches non-null nodes. * @since Sitevision 4.3.1 */ getNonNullFilter(): Filter; /** * Gets a filter that skips a given number of nodes. * *

* Note! The skip filter is typically used in combination with a Compound AND Filter. * Example: *

* *

* Also note that this filter is stateful, i.e. a created filter instance can't be used more than one time. *

* @param aSkip the number of nodes to skip * @return a filter that rejects aSkip number of nodes * @throws IllegalArgumentException if aSkip is less than zero * @since Sitevision 2025.01.1 */ getSkipFilter(aSkip: number): Filter; /** * Gets a filter that inverts the result of another filter. * @param aFilter the filter to invert * @return a filter that inverts the result * @throws IllegalArgumentException if aFilter is null */ getInvertedFilter(aFilter: Filter): Filter; /** * Gets a filter that matches by a specified node identifier. * @param aIdentifier the node identifier * @return a filter that matches all nodes (typically just one) with node identifier aIdentifier * @throws IllegalArgumentException if aIdentifier is null or whitespace only * @since Sitevision 4.1 */ getIdentifierFilter(aIdentifier: String | string): Filter; /** * Gets a filter that matches by a specified node identifier prefix. * @param aIdentifierPrefix the node identifier prefix * @return a filter that matches all nodes with an identifier that starts with aIdentifierPrefix * @throws IllegalArgumentException if aIdentifierPrefix is null or whitespace only * @since Sitevision 4.1 */ getIdentifierPrefixFilter(aIdentifierPrefix: String | string): Filter; /** * Gets a filter that matches by a specified node identifier suffix. * @param aIdentifierSuffix the node identifier suffix * @return a filter that matches all nodes with an identifier that ends with aIdentifierSuffix * @throws IllegalArgumentException if aIdentifierSuffix is null or whitespace only * @since Sitevision 4.1 */ getIdentifierSuffixFilter(aIdentifierSuffix: String | string): Filter; /** * Gets a filter that matches by a specified primary node type. * @param aPrimaryNodeTypeName the primary node type name * @return a filter that matches all nodes that has primary node type aPrimaryNodeTypeName * @throws IllegalArgumentException if aPrimaryNodeTypeName is null or whitespace only * @see #getAnyOfPrimaryNodeTypesFilter(Collection) * @see #getNoneOfPrimaryNodeTypesFilter(Collection) * @see senselogic.sitevision.api.node.NodeTypeUtil */ getPrimaryNodeTypeFilter(aPrimaryNodeTypeName: String | string): Filter; /** * Gets a filter that matches all nodes that has a primary node type that is present in given collection. * *

* This convenience method is conceptually equivalent - but also more efficient - than building a "match any of" filter via * {@link #getCompoundOrFilterBuilder() CompoundOrFilter} with a number of {@link #getPrimaryNodeTypeFilter(String) PrimaryNodeTypeFilters}. *

* @param aPrimaryNodeTypeNames a collection of primary node type names, must not be null. Null and blank collection items will be silently ignored (such value are not a valid node type name) * @return a filter that matches all Nodes that has a primary node type that is present in aPrimaryNodeTypeNames. * @throws NullPointerException if aPrimaryNodeTypeNames is null * @see #getNoneOfPrimaryNodeTypesFilter(Collection) * @see senselogic.sitevision.api.node.NodeTypeUtil * @since Sitevision 8.1 */ getAnyOfPrimaryNodeTypesFilter( aPrimaryNodeTypeNames: Collection | unknown[] ): Filter; /** * Gets a filter that matches all nodes that does not have a primary node type present in given collection. * *

* This convenience method is conceptually equivalent - but also more efficient - than building a "match none of" filter via * {@link #getCompoundOrFilterBuilder() CompoundOrFilter} with a number of {@link #getPrimaryNodeTypeFilter(String) PrimaryNodeTypeFilters} * and a {@link #getInvertedFilter(Filter) InvertedFilter} *

* @param aExcludedPrimaryNodeTypeNames a collection of primary node type names, must not be null. Null and blank collection items will be silently ignored (such value are not a valid node type name) * @return a filter that matches all Nodes that does not have a primary node type present in aExcludedPrimaryNodeTypeNames. * @throws NullPointerException if aExcludedPrimaryNodeTypeNames is null * @see #getAnyOfPrimaryNodeTypesFilter(Collection) * @see senselogic.sitevision.api.node.NodeTypeUtil * @since Sitevision 8.1 */ getNoneOfPrimaryNodeTypesFilter( aExcludedPrimaryNodeTypeNames: Collection | unknown[] ): Filter; /** * Gets a filter that matches by the existence of a specified property. * @param aPropertyName the name of the property * @return a filter that matches all nodes that has a property named aPropertyName * @throws IllegalArgumentException if aPropertyName is null or whitespace only * @see javax.jcr.Node#hasProperty(String) */ getHasPropertyFilter(aPropertyName: String | string): Filter; /** * Gets a filter that matches by a specified string property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a string property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName or aMatchValue is null * @see senselogic.sitevision.api.property.PropertyUtil#getString(javax.jcr.Node, String) */ getStringPropertyFilter( aPropertyName: String | string, aMatchValue: String | string ): Filter; /** * Gets a filter that matches by a specified multi-valued string property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a string property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName or aMatchValue is null * @see senselogic.sitevision.api.property.PropertyUtil#getStrings(javax.jcr.Node, String) */ getStringMultiPropertyFilter( aPropertyName: String | string, aMatchValue: String | string ): Filter; /** * Gets a filter that matches case-insensitive by a specified string property. * @param aPropertyName the name of the property * @param aCaseInsensitiveValue the case-insensitive value of the property * @return a filter that matches all nodes that has a string property named aPropertyName with value aCaseInsensitiveValue * @throws IllegalArgumentException if aPropertyName or aCaseInsensitiveValue is null */ getIgnoreCaseStringPropertyFilter( aPropertyName: String | string, aCaseInsensitiveValue: String | string ): Filter; /** * Gets a filter that matches by the value-starts-with of a specified string property. * *

* The starts-with check is performed using the String.startsWith(String) method. *

* @param aPropertyName the name of the property * @param aStartsWithValue the value the property should start with * @return a filter that matches all nodes that has a string property named aPropertyName that starts with value aStartsWithValue * @throws IllegalArgumentException if aPropertyName or aStartsWithValue is null */ getStartsWithStringPropertyFilter( aPropertyName: String | string, aStartsWithValue: String | string ): Filter; /** * Gets a filter that matches by the value-ends-with of a specified string property. * *

* The ends-with check is performed using the String.endsWith(String) method. *

* @param aPropertyName the name of the property * @param aEndsWithValue the value the property should end with * @return a filter that matches all nodes that has a string property named aPropertyName that ends with value aEndsWithValue * @throws IllegalArgumentException if aPropertyName or aEndsWithValue is null */ getEndsWithStringPropertyFilter( aPropertyName: String | string, aEndsWithValue: String | string ): Filter; /** * Gets a filter that matches by the value-contains of a specified string property. * *

* The contains check is performed using the String.contains(String) method. *

* @param aPropertyName the name of the property * @param aContainsValue the value the property should contain * @return a filter that matches all nodes that has a string property named aPropertyName that contains value aContainsValue * @throws IllegalArgumentException if aPropertyName or aContainsValue is null */ getContainsStringPropertyFilter( aPropertyName: String | string, aContainsValue: String | string ): Filter; /** * Gets a filter that matches by the value-contains of a specified multi-valued string property. * *

* The contains check is performed using the String.contains(String) method for each extracted property value. *

* @param aPropertyName the name of the property * @param aContainsValue the value the property should contain * @return a filter that matches all nodes that has a string property named aPropertyName that contains value aContainsValue * @throws IllegalArgumentException if aPropertyName or aContainsValue is null */ getContainsStringMultiPropertyFilter( aPropertyName: String | string, aContainsValue: String | string ): Filter; /** * Gets a filter that matches by a regular expression of a specified string property. * *

* The regular expression is compiled to a Pattern and the check is performed using the * matches() method of the Matcher extracted from the compiled pattern via * Pattern.matcher(String). *

* @param aPropertyName the name of the property * @param aRegularExpression the regular expression * @return a filter that matches all nodes that has a string property named aPropertyName that matches aRegularExpression * @throws IllegalArgumentException if aPropertyName or aRegularExpression is null * @throws PatternSyntaxException if the compilation of aRegularExpression fails */ getPatternStringPropertyFilter( aPropertyName: String | string, aRegularExpression: String | string ): Filter; /** * Gets a filter that matches by a regular expression of a specified multi-valued string property. * *

* The regular expression is compiled to a Pattern and the check for each extracted property value is performed using the * matches() method of the Matcher extracted from the compiled pattern via * Pattern.matcher(String). *

* @param aPropertyName the name of the property * @param aRegularExpression the regular expression * @return a filter that matches all nodes that has a string property named aPropertyName that matches aRegularExpression * @throws IllegalArgumentException if aPropertyName or aRegularExpression is null * @throws PatternSyntaxException if the compilation of aRegularExpression fails */ getPatternStringMultiPropertyFilter( aPropertyName: String | string, aRegularExpression: String | string ): Filter; /** * Gets a filter that matches by a specified boolean property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a boolean property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getBoolean(javax.jcr.Node, String) */ getBooleanPropertyFilter( aPropertyName: String | string, aMatchValue: boolean ): Filter; /** * Gets a filter that matches by a nested node's specified boolean property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getNestedBoolean(javax.jcr.Node, String, String) */ getNestedBooleanPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMatchValue: boolean ): Filter; /** * Gets a filter that matches by a specified int property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a int property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getInt(javax.jcr.Node, String) */ getIntPropertyFilter( aPropertyName: String | string, aMatchValue: number ): Filter; /** * Gets a filter that matches by the min value of a specified int property. * @param aPropertyName the name of the property * @param aMinValue the min value of the property * @return a filter that matches all nodes that has a int property named aPropertyName with value aMinValue or higher * @throws IllegalArgumentException if aPropertyName is null or whitespace only */ getMinIntPropertyFilter( aPropertyName: String | string, aMinValue: number ): Filter; /** * Gets a filter that matches by the max value of a specified int property. * @param aPropertyName the name of the property * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a int property named aPropertyName with value aMaxValue or lower * @throws IllegalArgumentException if aPropertyName is null or whitespace only */ getMaxIntPropertyFilter( aPropertyName: String | string, aMaxValue: number ): Filter; /** * Gets a filter that matches by the range of a specified int property. * *

* This is a convenience method that combines the min int filter ({@link #getMinIntPropertyFilter(String, int)}) * and the max int filter ({@link #getMinIntPropertyFilter(String, int)}) to check a range for an integer. *

* @param aPropertyName the name of the property * @param aMinValue the min value of the property * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a int property named aPropertyName with value within inclusive range [aMinValue..aMaxValue] * @throws IllegalArgumentException if aPropertyName is null or whitespace only, or if aMinValue is greater than aMaxValue */ getRangeIntPropertyFilter( aPropertyName: String | string, aMinValue: number, aMaxValue: number ): Filter; /** * Gets a filter that matches by a nested node's specified int property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getNestedInt(javax.jcr.Node, String, String) */ getNestedIntPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMatchValue: number ): Filter; /** * Gets a filter that matches by a nested node's min value of a specified int property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMinValue the min value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue or higher * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getNestedInt(javax.jcr.Node, String, String) */ getMinNestedIntPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMinValue: number ): Filter; /** * Gets a filter that matches by a nested node's max value of a specified int property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue or lower * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getNestedInt(javax.jcr.Node, String, String) */ getMaxNestedIntPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMaxValue: number ): Filter; /** * Gets a filter that matches by a nested node's range of a specified int property. * *

* This is a convenience method that combines the nested min int filter ({@link #getMinNestedIntPropertyFilter(String, String, int)}) * and the nested max int filter ({@link #getMaxNestedIntPropertyFilter(String, String, int)}) to check a range for an integer. *

* @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMinValue the min value of the property * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value within inclusive range [aMinValue..aMaxValue] * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only, or if aMinValue is greater than aMaxValue */ getRangeNestedIntPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMinValue: number, aMaxValue: number ): Filter; /** * Gets a filter that matches by a specified double property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a double property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getDouble(javax.jcr.Node, String) */ getDoublePropertyFilter( aPropertyName: String | string, aMatchValue: number ): Filter; /** * Gets a filter that matches by a nested node's specified double property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only * @see senselogic.sitevision.api.property.PropertyUtil#getNestedDouble(javax.jcr.Node, String, String) */ getNestedDoublePropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMatchValue: number ): Filter; /** * Gets a filter that matches by the min value of a specified double property. * @param aPropertyName the name of the property * @param aMinValue the min value of the property * @return a filter that matches all nodes that has a double property named aPropertyName with value aMinValue or higher * @throws IllegalArgumentException if aPropertyName is null or whitespace only */ getMinDoublePropertyFilter( aPropertyName: String | string, aMinValue: number ): Filter; /** * Gets a filter that matches by the max value of a specified double property. * @param aPropertyName the name of the property * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a double property named aPropertyName with value aMaxValue or lower * @throws IllegalArgumentException if aPropertyName is null or whitespace only */ getMaxDoublePropertyFilter( aPropertyName: String | string, aMaxValue: number ): Filter; /** * Gets a filter that matches by the range of a specified double property. * *

* This is a convenience method that combines the min double filter ({@link #getMinDoublePropertyFilter(String, double)}) * and the max double filter ({@link #getMaxDoublePropertyFilter(String, double)}) to check a range for a double. *

* @param aPropertyName the name of the property * @param aMinValue the min value of the property * @param aMaxValue the max value of the property * @return a filter that matches all nodes that has a double property named aPropertyName with value within inclusive range [aMinValue..aMaxValue] * @throws IllegalArgumentException if aPropertyName is null or whitespace only, or if aMinValue is greater than aMaxValue */ getRangeDoublePropertyFilter( aPropertyName: String | string, aMinValue: number, aMaxValue: number ): Filter; /** * Gets a filter that matches by a specified Calendar property. * @param aPropertyName the name of the property * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a Calendar property named aPropertyName with value aMatchValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only, or aMatchValue is null * @see senselogic.sitevision.api.property.PropertyUtil#getCalendar(javax.jcr.Node, String) */ getCalendarPropertyFilter( aPropertyName: String | string, aMatchValue: Calendar ): Filter; /** * Gets a filter that matches by a nested node's specified Calendar property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aMatchValue the value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value aMatchValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only, or if aMatchValue is null * @see senselogic.sitevision.api.property.PropertyUtil#getNestedCalendar(javax.jcr.Node, String, String) */ getNestedCalendarPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aMatchValue: Calendar ): Filter; /** * Gets a filter that matches by a before value for a specified Calendar property. * @param aPropertyName the name of the property * @param aBeforeThresholdValue the before threshold value of the property * @return a filter that matches all nodes that has a Calendar property named aPropertyName with value before aBeforeThresholdValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only, or aBeforeThresholdValue is null */ getBeforeCalendarPropertyFilter( aPropertyName: String | string, aBeforeThresholdValue: Calendar ): Filter; /** * Gets a filter that matches by a before value of a nested node's specified Calendar property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aBeforeThresholdValue the before threshold value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value before aBeforeThresholdValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only, or if aBeforeThresholdValue is null */ getBeforeNestedCalendarPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aBeforeThresholdValue: Calendar ): Filter; /** * Gets a filter that matches by an after value for a specified Calendar property. * @param aPropertyName the name of the property * @param aAfterThresholdValue the after threshold value of the property * @return a filter that matches all nodes that has a Calendar property named aPropertyName with value after aAfterThresholdValue * @throws IllegalArgumentException if aPropertyName is null or whitespace only, or aAfterThresholdValue is null */ getAfterCalendarPropertyFilter( aPropertyName: String | string, aAfterThresholdValue: Calendar ): Filter; /** * Gets a filter that matches by an after value of a nested node's specified Calendar property. * @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property for the "inner/nested" Node specified by aNodePropertyName * @param aAfterThresholdValue the after threshold value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value after aAfterThresholdValue * @throws IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only, or if aAfterThresholdValue is null */ getAfterNestedCalendarPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aAfterThresholdValue: Calendar ): Filter; /** * Gets a filter that matches by the between range of a specified Calendar property. * *

* This is a convenience method that combines the after calendar filter * ({@link #getAfterCalendarPropertyFilter(String, java.util.Calendar)}) * and the before calendar filter ({@link #getBeforeCalendarPropertyFilter(String, java.util.Calendar)}) to check a range for a Calendar. *

* @param aPropertyName the name of the property * @param aAfterThresholdValue the after threshold value of the property * @param aBeforeThresholdValue the before threshold value of the property * @return a filter that matches all nodes that has a Calendar property named aPropertyName with value between exclusive range [aAfterThresholdValue..aBeforeThresholdValue] * @throws IllegalArgumentException IllegalArgumentException if aPropertyName is null or whitespace only, or if aAfterThresholdValue or aBeforeThresholdValue is null, or if aAfterThresholdValue is after aBeforeThresholdValue */ getRangeCalendarPropertyFilter( aPropertyName: String | string, aAfterThresholdValue: Calendar, aBeforeThresholdValue: Calendar ): Filter; /** * Gets a filter that matches by the between range of a nested node's specified Calendar property. * *

* This is a convenience method that combines the nested after calendar filter * ({@link #getAfterNestedCalendarPropertyFilter(String, String, java.util.Calendar)}) and the nested before calendar filter * ({@link #getBeforeNestedCalendarPropertyFilter(String, String, java.util.Calendar)}) to check a range for a Calendar. *

* @param aNodePropertyName the name of the property for the Node * @param aPropertyName the name of the property * @param aAfterThresholdValue the after threshold value of the property * @param aBeforeThresholdValue the before threshold value of the property * @return a filter that matches all nodes that has a property named aNodePropertyName that can be resolved as a node, which in turn has a property named aNodePropertyName with value between exclusive range [aAfterThresholdValue..aBeforeThresholdValue] * @throws IllegalArgumentException IllegalArgumentException if aNodePropertyName or aPropertyName is null or whitespace only, or if aAfterThresholdValue or aBeforeThresholdValue is null, or if aAfterThresholdValue is after aBeforeThresholdValue */ getRangeNestedCalendarPropertyFilter( aNodePropertyName: String | string, aPropertyName: String | string, aAfterThresholdValue: Calendar, aBeforeThresholdValue: Calendar ): Filter; } declare namespace NodeFilterUtil {} declare var nodeFilterUtil: NodeFilterUtil; export default nodeFilterUtil;