Class TaskModel
java.lang.Object
com.gentics.contentnode.rest.model.scheduler.TaskModel
- All Implemented Interfaces:
Serializable
REST Model of a Scheduler Task
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCdate()
Task creation timestampTask commandTask creatorTask descriptionint
getEdate()
Last task edit timestampLast task editorgetId()
Task IDTrue for internal tasks, false for external tasksgetName()
Task namesetCdate
(int cdate) Set the creation timestampsetCommand
(String command) Set the commandsetCreator
(User creator) Set the creatorsetDescription
(String description) Set the descriptionsetEdate
(int edate) Set the edit timestampSet the editorSet the IDsetInternal
(Boolean internal) Set the internal flagSet the name
-
Constructor Details
-
TaskModel
public TaskModel()
-
-
Method Details
-
getId
Task ID- Returns:
- ID
-
setId
Set the ID- Parameters:
id
- ID- Returns:
- fluent API
-
getName
Task name- Returns:
- name
-
setName
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
getDescription
Task description- Returns:
- description
-
setDescription
Set the description- Parameters:
description
- description- Returns:
- fluent API
-
getCommand
Task command- Returns:
- command
-
setCommand
Set the command- Parameters:
command
- command- Returns:
- fluent API
-
getInternal
True for internal tasks, false for external tasks- Returns:
- flag
-
setInternal
Set the internal flag- Parameters:
internal
- flag- Returns:
- fluent API
-
getCreator
Task creator- Returns:
- creator
-
setCreator
Set the creator- Parameters:
creator
- creator- Returns:
- fluent API
-
getCdate
public int getCdate()Task creation timestamp- Returns:
- creation timestamp
-
setCdate
Set the creation timestamp- Parameters:
cdate
- timestamp- Returns:
- fluent API
-
getEditor
Last task editor- Returns:
- editor
-
setEditor
Set the editor- Parameters:
editor
- editor- Returns:
- fluent API
-
getEdate
public int getEdate()Last task edit timestamp- Returns:
- edit timestamp
-
setEdate
Set the edit timestamp- Parameters:
edate
- timestamp- Returns:
- fluent API
-