Class ScheduleImpl

java.lang.Object
org.nuxeo.ecm.core.scheduler.ScheduleImpl
All Implemented Interfaces:
Schedule

public class ScheduleImpl extends Object implements Schedule
ScheduleImpl extension definition.
  • Field Details

    • id

      public String id
    • jobFactoryClass

      public Class<? extends EventJobFactory> jobFactoryClass
      Since:
      10.2
    • eventId

      public String eventId
    • eventCategory

      public String eventCategory
    • cronExpression

      public String cronExpression
    • timeZone

      public String timeZone
      Since:
      10.2
    • username

      public String username
    • enabled

      public boolean enabled
      Since:
      5.7.3
  • Constructor Details

    • ScheduleImpl

      public ScheduleImpl()
  • Method Details

    • setEventId

      public void setEventId(String eventId)
    • getId

      public String getId()
      Description copied from interface: Schedule
      Returns the schedule job id.
      Specified by:
      getId in interface Schedule
      Returns:
      the schedule job id.
    • getJobFactory

      public EventJobFactory getJobFactory()
      Description copied from interface: Schedule
      Returns an instance of the EventJobFactory (DefaultEventJobFactory by default).
      Specified by:
      getJobFactory in interface Schedule
      Returns:
      An instance of EventJobFactory.
    • getEventId

      public String getEventId()
      Description copied from interface: Schedule
      Returns the event id.
      Specified by:
      getEventId in interface Schedule
      Returns:
      the event id
    • getEventCategory

      public String getEventCategory()
      Description copied from interface: Schedule
      Returns the event category.
      Specified by:
      getEventCategory in interface Schedule
      Returns:
      the event category
    • getCronExpression

      public String getCronExpression()
      Description copied from interface: Schedule
      Returns the cron expression.
      Specified by:
      getCronExpression in interface Schedule
      Returns:
      the cron expression
    • getUsername

      public String getUsername()
      Description copied from interface: Schedule
      Returns the username.
      Specified by:
      getUsername in interface Schedule
      Returns:
      the username
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Schedule
      Returns true if the scheduler is enabled and the job scheduled for execution
      Specified by:
      isEnabled in interface Schedule
    • getTimeZone

      public String getTimeZone()
      Description copied from interface: Schedule
      Returns the timezone to be used for the Cron Expression.
      Specified by:
      getTimeZone in interface Schedule
      Returns:
      the timezone, or null if not specified
      Since:
      10.2