Class ScheduleModel

java.lang.Object
com.gentics.contentnode.rest.model.scheduler.ScheduleModel
All Implemented Interfaces:
Serializable

public class ScheduleModel extends Object implements Serializable
Model for a scheduler schedule.
See Also:
  • Constructor Details

    • ScheduleModel

      public ScheduleModel()
  • Method Details

    • getId

      public Integer getId()
      Task ID
      Returns:
      ID
    • setId

      public ScheduleModel setId(Integer id)
      Set the ID
      Parameters:
      id - ID
      Returns:
      fluent API
    • getName

      public String getName()
      Task name
      Returns:
      name
    • setName

      public ScheduleModel setName(String name)
      Set the name
      Parameters:
      name - name
      Returns:
      fluent API
    • getDescription

      public String getDescription()
      Task description
      Returns:
      description
    • setDescription

      public ScheduleModel setDescription(String description)
      Set the description
      Parameters:
      description - description
      Returns:
      fluent API
    • getTaskId

      public Integer getTaskId()
      ID of the executed task
      Returns:
      task ID
    • setTaskId

      public ScheduleModel setTaskId(Integer taskId)
      Set the ID of the executed task
      Parameters:
      taskId - task ID
      Returns:
      fluent API
    • getTask

      public TaskModel getTask()
      Get the task of the schedule
      Returns:
      task
    • setTask

      public ScheduleModel setTask(TaskModel task)
      Set the task of the schedule
      Parameters:
      task - task
      Returns:
      fluent API
    • getScheduleData

      public ScheduleData getScheduleData()
      Get the schedule data
      Returns:
      schedule data
    • setScheduleData

      public ScheduleModel setScheduleData(ScheduleData scheduleData)
      Set schedule data
      Parameters:
      scheduleData - data
      Returns:
      fluent API
    • getParallel

      public Boolean getParallel()
      When true the schedule can be executed at the same time as other parallel schedules.
      Returns:
      parallel flag
    • setParallel

      public ScheduleModel setParallel(Boolean parallel)
      Set the parallel flag.
      Parameters:
      parallel - parallel flag
      Returns:
      fluent API
    • getActive

      public Boolean getActive()
      True for internal tasks, false for external tasks
      Returns:
      flag
    • setActive

      public ScheduleModel setActive(Boolean active)
      Set the active flag
      Parameters:
      active - flag
      Returns:
      fluent API
    • getStatus

      public ScheduleStatus getStatus()
      Get the current status of the schedule.
      Returns:
      Get the current status of the schedule.
    • setStatus

      public ScheduleModel setStatus(ScheduleStatus status)
      Set the current status of the schedule.
      Parameters:
      status - The current status of the schedule.
      Returns:
      fluent API
    • getNotificationEmail

      public List<String> getNotificationEmail()
      Get the notification email addresses.
      Returns:
      Notification email addresses.
    • setNotificationEmail

      public ScheduleModel setNotificationEmail(List<String> notificationEmail)
      Set the notification email addresses.
      Parameters:
      notificationEmail - Notification email addresses
      Returns:
      fluent API
    • getRuns

      public int getRuns()
      Get the number of executions for this schedule.
      Returns:
      The number of executions for this schedule.
    • setRuns

      public ScheduleModel setRuns(int runs)
      Set the number of executions for this schedule.
      Parameters:
      runs - The number of executions for this schedule.
      Returns:
      fluent API
    • getAverageTime

      public int getAverageTime()
      Get the average runtime of this schedules executions.
      Returns:
      The average runtime of this schedules executions.
    • setAverageTime

      public ScheduleModel setAverageTime(int averageTime)
      Set the average runtime of this schedules executions.
      Parameters:
      averageTime - The average runtime of this schedules executions.
      Returns:
      fluent API
    • getLastExecution

      public ExecutionModel getLastExecution()
      Get the data for the last execution if any.
      Returns:
      The data for the last execution.
    • setLastExecution

      public ScheduleModel setLastExecution(ExecutionModel lastExecution)
      Set the data for the last execution.
      Parameters:
      lastExecution - The data for the last execution.
      Returns:
      fluent API
    • getCreator

      public User getCreator()
      Task creator
      Returns:
      creator
    • setCreator

      public ScheduleModel setCreator(User creator)
      Set the creator
      Parameters:
      creator - creator
      Returns:
      fluent API
    • getCdate

      public int getCdate()
      Task creation timestamp
      Returns:
      creation timestamp
    • setCdate

      public ScheduleModel setCdate(int cdate)
      Set the creation timestamp
      Parameters:
      cdate - timestamp
      Returns:
      fluent API
    • getEditor

      public User getEditor()
      Last task editor
      Returns:
      editor
    • setEditor

      public ScheduleModel setEditor(User editor)
      Set the editor
      Parameters:
      editor - editor
      Returns:
      fluent API
    • getEdate

      public int getEdate()
      Last task edit timestamp
      Returns:
      edit timestamp
    • setEdate

      public ScheduleModel setEdate(int edate)
      Set the edit timestamp
      Parameters:
      edate - timestamp
      Returns:
      fluent API