Class AlertSchedulable.BinaryExpression

java.lang.Object
org.ametys.cms.alerts.AlertSchedulable.BinaryExpression
All Implemented Interfaces:
Expression
Enclosing class:
AlertSchedulable

protected class AlertSchedulable.BinaryExpression extends Object implements Expression
Binary date expression: test on two metadatas.
  • Constructor Details

    • BinaryExpression

      public BinaryExpression(String metadata1, Expression.Operator operator, String metadata2)
      Creates the comparison Expression.
      Parameters:
      metadata1 - the first metadata name.
      operator - the operator to make the comparison
      metadata2 - the second metadata name.
    • BinaryExpression

      public BinaryExpression(String metadata1, ExpressionContext context1, Expression.Operator operator, String metadata2, ExpressionContext context2)
      Creates the comparison Expression.
      Parameters:
      metadata1 - the first metadata name.
      context1 - context of the expression for the first metadata
      operator - the operator to make the comparison.
      metadata2 - the second metadata name.
      context2 - context of the expression for the second metadata
  • 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.