Package org.ametys.cms.filter
Class StaticContentFilter.DynamicDateExpression
- java.lang.Object
-
- org.ametys.cms.filter.StaticContentFilter.DynamicDateExpression
-
- All Implemented Interfaces:
Expression
- Enclosing class:
- StaticContentFilter
public static class StaticContentFilter.DynamicDateExpression extends Object implements Expression
Constructs anExpression
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
-
-
Field Summary
Fields Modifier and Type Field Description private MetadataExpression
_metadataExpr
private int
_offsetValue
The offset value.private Expression.Operator
_operator
-
Constructor Summary
Constructors Constructor Description DynamicDateExpression(String metadata, Expression.Operator operator, int offsetValue)
Create a comparison Expression relative to the current date, with an offset, normalizing the
-
-
-
Field Detail
-
_metadataExpr
private MetadataExpression _metadataExpr
-
_operator
private Expression.Operator _operator
-
_offsetValue
private int _offsetValue
The offset value.
-
-
Constructor Detail
-
DynamicDateExpression
public DynamicDateExpression(String metadata, Expression.Operator operator, int offsetValue)
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 Detail
-
build
public String build()
Description copied from interface:Expression
Build the expression.- Specified by:
build
in interfaceExpression
- Returns:
- The XPath view of the expression.
-
-