Class TaskModel
- java.lang.Object
-
- com.gentics.contentnode.rest.model.scheduler.TaskModel
-
- All Implemented Interfaces:
Serializable
public class TaskModel extends Object implements Serializable
REST Model of a Scheduler Task- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TaskModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCdate()
Task creation timestampString
getCommand()
Task commandUser
getCreator()
Task creatorString
getDescription()
Task descriptionint
getEdate()
Last task edit timestampUser
getEditor()
Last task editorInteger
getId()
Task IDBoolean
getInternal()
True for internal tasks, false for external tasksString
getName()
Task nameTaskModel
setCdate(int cdate)
Set the creation timestampTaskModel
setCommand(String command)
Set the commandTaskModel
setCreator(User creator)
Set the creatorTaskModel
setDescription(String description)
Set the descriptionTaskModel
setEdate(int edate)
Set the edit timestampTaskModel
setEditor(User editor)
Set the editorTaskModel
setId(Integer id)
Set the IDTaskModel
setInternal(Boolean internal)
Set the internal flagTaskModel
setName(String name)
Set the name
-
-
-
Method Detail
-
getId
public Integer getId()
Task ID- Returns:
- ID
-
getName
public String getName()
Task name- Returns:
- name
-
setName
public TaskModel setName(String name)
Set the name- Parameters:
name
- name- Returns:
- fluent API
-
getDescription
public String getDescription()
Task description- Returns:
- description
-
setDescription
public TaskModel setDescription(String description)
Set the description- Parameters:
description
- description- Returns:
- fluent API
-
getCommand
public String getCommand()
Task command- Returns:
- command
-
setCommand
public TaskModel setCommand(String command)
Set the command- Parameters:
command
- command- Returns:
- fluent API
-
getInternal
public Boolean getInternal()
True for internal tasks, false for external tasks- Returns:
- flag
-
setInternal
public TaskModel setInternal(Boolean internal)
Set the internal flag- Parameters:
internal
- flag- Returns:
- fluent API
-
getCreator
public User getCreator()
Task creator- Returns:
- creator
-
setCreator
public TaskModel setCreator(User creator)
Set the creator- Parameters:
creator
- creator- Returns:
- fluent API
-
getCdate
public int getCdate()
Task creation timestamp- Returns:
- creation timestamp
-
setCdate
public TaskModel setCdate(int cdate)
Set the creation timestamp- Parameters:
cdate
- timestamp- Returns:
- fluent API
-
getEditor
public User getEditor()
Last task editor- Returns:
- editor
-
setEditor
public TaskModel 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 TaskModel setEdate(int edate)
Set the edit timestamp- Parameters:
edate
- timestamp- Returns:
- fluent API
-
-