Interface Precondition

    • Field Detail

      • VERSION_PRECONDITION

        static final com.redwood.scheduler.infrastructure.logging.Versions VERSION_PRECONDITION
    • Method Detail

      • getExpression

        String getExpression()
        Get the value for Expression. (Expression to evaluate as the precondition.)
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • getTimeWindowStatus

        TimeWindowStatus getTimeWindowStatus()
        Get the value for TimeWindowStatus. (The status of the time window (open or closed) for the precondition to be true.) This value is mandatory, and therefore will not be null if this object has been retrieved from the database.
        Returns:
        the field
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setExpression

        void setExpression​(String newExpression)
        Set the value for Expression. (Expression to evaluate as the precondition.) This value is optional.
        Parameters:
        newExpression - the new value for Expression.
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setTimeWindowStatus

        void setTimeWindowStatus​(TimeWindowStatus newTimeWindowStatus)
        Set the value for TimeWindowStatus. (The status of the time window (open or closed) for the precondition to be true.) This value is mandatory.
        Parameters:
        newTimeWindowStatus - the new value for TimeWindowStatus. If this is null, then the object cannot be persisted.
        Throws:
        ObjectNotAttachedToSessionException - This will be thrown if this method is called while the object is not attached to a session.
      • setTimeWindow

        void setTimeWindow​(TimeWindow newTimeWindow)
        Set the value for TimeWindow. This value is optional.
        Parameters:
        newTimeWindow - is the object to set TimeWindow to. Optional time precondition for a call.
      • setTimeZone

        void setTimeZone​(TimeZone newTimeZone)
        Set the value for TimeZone. This value is optional.
        Parameters:
        newTimeZone - is the object to set TimeZone to. The timezone for the timewindowinterval