Package org.ametys.cms.filter
Class StaticContentFilter.DynamicDateExpression
java.lang.Object
org.ametys.cms.filter.StaticContentFilter.DynamicDateExpression
- All Implemented Interfaces:
Expression
- Enclosing class:
- StaticContentFilter
Constructs an
Expression
representing a comparison between a metadata and the time the build() method is called.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.plugins.repository.query.expression.Expression
Expression.Operator
-
Constructor Summary
ConstructorDescriptionDynamicDateExpression
(String metadata, Expression.Operator operator, int offsetValue) Create a comparison Expression relative to the current date, with an offset, normalizing the -
Method Summary
-
Constructor Details
-
DynamicDateExpression
Create a comparison Expression relative to the current date, with an offset, normalizing the- Parameters:
metadata
- the metadata nameoperator
- the operator to make the comparisonoffsetValue
- the offset value.
-
-
Method Details
-
build
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-