Package org.ametys.cms.workflow
Class WorkflowTasksComponent.Task
- java.lang.Object
-
- org.ametys.cms.workflow.WorkflowTasksComponent.Task
-
- Enclosing class:
- WorkflowTasksComponent
public class WorkflowTasksComponent.Task extends Object
Class representing a task.
-
-
Field Summary
Fields Modifier and Type Field Description protected String
_id
The task ID.protected I18nizableText
_label
The task label.protected int
_length
The max number of resultprotected Collection<WorkflowTasksComponent.TaskStep>
_steps
The task step configuration.
-
Constructor Summary
Constructors Constructor Description Task()
Class representing a task.Task(I18nizableText label, Collection<WorkflowTasksComponent.TaskStep> steps)
Class representing a task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Get the id.I18nizableText
getLabel()
Get the label.int
getLength()
Get the length.Collection<WorkflowTasksComponent.TaskStep>
getSteps()
Get the steps.void
setId(String id)
Set the id.void
setLabel(I18nizableText label)
Set the label.void
setLength(int length)
Set the length.void
setSteps(Collection<WorkflowTasksComponent.TaskStep> steps)
Set the steps.
-
-
-
Field Detail
-
_label
protected I18nizableText _label
The task label.
-
_steps
protected Collection<WorkflowTasksComponent.TaskStep> _steps
The task step configuration.
-
_length
protected int _length
The max number of result
-
-
Constructor Detail
-
Task
public Task()
Class representing a task.
-
Task
public Task(I18nizableText label, Collection<WorkflowTasksComponent.TaskStep> steps)
Class representing a task.- Parameters:
label
- The label of the tasksteps
- The steps of the task
-
-
Method Detail
-
getLength
public int getLength()
Get the length.- Returns:
- the length
-
setLength
public void setLength(int length)
Set the length.- Parameters:
length
- the length to set
-
getLabel
public I18nizableText getLabel()
Get the label.- Returns:
- the label
-
setLabel
public void setLabel(I18nizableText label)
Set the label.- Parameters:
label
- the label to set
-
getSteps
public Collection<WorkflowTasksComponent.TaskStep> getSteps()
Get the steps.- Returns:
- the steps
-
setSteps
public void setSteps(Collection<WorkflowTasksComponent.TaskStep> steps)
Set the steps.- Parameters:
steps
- the steps to set
-
-