com.ibm.commerce.marketing.promotion.schedule

Interface ScheduleLookAheadSupport

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM Copyright
      static int DAY
      Constant for time resolution unit "Day"
      static int HALF_AN_HOUR
      Constant for time resolution unit "Half an hour"
      static int HOUR
      Constant for time resolution unit "Hour"
      static int MINUTE
      Constant for time resolution unit "Minute"
      static int MONTH
      Constant for time resolution unit "Month"
      static int QUARTER
      Constant for time resolution unit "Quarter"
      static int SECOND
      Constant for time resolution unit "Second"
      static int WEEK
      Constant for time resolution unit "Week"
      static int YEAR
      Constant for time resolution unit "YEAR"
    • Method Detail

      • clockResolution

        int clockResolution()
        Returns the clock resolution
        Returns:
        clock resolution
      • currentState

        boolean currentState()
        Returns current schedule state
        Returns:
        true if the schedule is current active, false otherwise
      • currentStateValidUntil

        java.util.Date currentStateValidUntil()
        Returns the next status change time
        Returns:
        next status change time
      • calculateNextStateAndExpirationTime

        void calculateNextStateAndExpirationTime()
        Calculates next status change time and status