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 an Expression representing a comparison between a metadata and the time the build() method is called.
  • Constructor Details

    • 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 name
      operator - the operator to make the comparison
      offsetValue - the offset value.
  • Method Details

    • build

      public String build()
      Description copied from interface: Expression
      Build the expression.
      Specified by:
      build in interface Expression
      Returns:
      The XPath view of the expression.