Class ScheduleInfoImpl

    • Method Detail

      • YEARLY

        public static ScheduleInfoImpl YEARLY​(int month,
                                              int day,
                                              int hour,
                                              int minute)
      • MONTHLY

        public static ScheduleInfoImpl MONTHLY​(int day,
                                               int hour,
                                               int minute)
      • WEEKLY

        public static ScheduleInfoImpl WEEKLY​(int day,
                                              int hour,
                                              int minute)
      • deserialize

        public static ScheduleInfoImpl deserialize​(org.apache.sling.event.jobs.ScheduleInfo.ScheduleType scheduleType,
                                                   String s)
      • getSerializedString

        public String getSerializedString()
      • getType

        public org.apache.sling.event.jobs.ScheduleInfo.ScheduleType getType()
        Specified by:
        getType in interface org.apache.sling.event.jobs.ScheduleInfo
      • getAt

        public Date getAt()
        Specified by:
        getAt in interface org.apache.sling.event.jobs.ScheduleInfo
      • getDayOfWeek

        public int getDayOfWeek()
        Specified by:
        getDayOfWeek in interface org.apache.sling.event.jobs.ScheduleInfo
      • getHourOfDay

        public int getHourOfDay()
        Specified by:
        getHourOfDay in interface org.apache.sling.event.jobs.ScheduleInfo
      • getMinuteOfHour

        public int getMinuteOfHour()
        Specified by:
        getMinuteOfHour in interface org.apache.sling.event.jobs.ScheduleInfo
      • getExpression

        public String getExpression()
        Specified by:
        getExpression in interface org.apache.sling.event.jobs.ScheduleInfo
      • getMonthOfYear

        public int getMonthOfYear()
        Specified by:
        getMonthOfYear in interface org.apache.sling.event.jobs.ScheduleInfo
      • getDayOfMonth

        public int getDayOfMonth()
        Specified by:
        getDayOfMonth in interface org.apache.sling.event.jobs.ScheduleInfo
      • check

        public void check​(List<String> errors)
      • getNextScheduledExecution

        public Date getNextScheduledExecution()
      • getCronExpression

        public String getCronExpression()
        If the job is scheduled daily or weekly, return the cron expression