Interface ModifiableTask
-
- All Superinterfaces:
AmetysObject
,ModifiableAmetysObject
,RemovableAmetysObject
,Task
- All Known Implementing Classes:
JCRTask
public interface ModifiableTask extends Task, ModifiableAmetysObject, RemovableAmetysObject
Explorer task that can be modified
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.plugins.explorer.tasks.Task
Task.TaskPriority, Task.TaskStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifiableRichText
getDescription()
The description of the taskvoid
setAssignment(List<UserIdentity> assignment)
Set the list of user assigned to this taskvoid
setAuthor(UserIdentity author)
Set the author of this task.void
setCreationDate(Date startDate)
Set the post's creation date.void
setEndDate(Date endDate)
Set the ending date of the taskvoid
setInitialLoad(Double initialLoad)
Set the initial load estimated for this taskvoid
setLabel(String title)
Set the title of the taskvoid
setLastModified(Date date)
Set the post's modification date.void
setPriority(Task.TaskPriority priority)
Set the task priorityvoid
setProgress(Double progress)
Set the progress of the taskvoid
setStartDate(Date startDate)
Set the starting date of the taskvoid
setStatus(Task.TaskStatus status)
Set the status of the taskvoid
setSubscribers(List<UserIdentity> subscribers)
Set the list of user subscribed to this taskvoid
setTaskId(String taskId)
Set the identifier of a task-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.explorer.tasks.Task
getAssignment, getAuthor, getCreationDate, getEndDate, getInitialLoad, getLabel, getLastModified, getPriority, getProgress, getStartDate, getStatus, getSubscribers, getTaskId
-
-
-
-
Method Detail
-
getDescription
ModifiableRichText getDescription()
Description copied from interface:Task
The description of the task- Specified by:
getDescription
in interfaceTask
- Returns:
- The description
-
setAuthor
void setAuthor(UserIdentity author)
Set the author of this task.- Parameters:
author
- the author
-
setStartDate
void setStartDate(Date startDate)
Set the starting date of the task- Parameters:
startDate
- The start date
-
setEndDate
void setEndDate(Date endDate)
Set the ending date of the task- Parameters:
endDate
- The end date
-
setStatus
void setStatus(Task.TaskStatus status)
Set the status of the task- Parameters:
status
- The status
-
setPriority
void setPriority(Task.TaskPriority priority)
Set the task priority- Parameters:
priority
- the priority
-
setInitialLoad
void setInitialLoad(Double initialLoad)
Set the initial load estimated for this task- Parameters:
initialLoad
- The initial load
-
setProgress
void setProgress(Double progress)
Set the progress of the task- Parameters:
progress
- The progress, in percentage
-
setAssignment
void setAssignment(List<UserIdentity> assignment)
Set the list of user assigned to this task- Parameters:
assignment
- The assignment list
-
setSubscribers
void setSubscribers(List<UserIdentity> subscribers)
Set the list of user subscribed to this task- Parameters:
subscribers
- The list of subscribers
-
setCreationDate
void setCreationDate(Date startDate)
Set the post's creation date.- Parameters:
startDate
- the post's creation date.
-
setLastModified
void setLastModified(Date date)
Set the post's modification date.- Parameters:
date
- the last modification date to set.
-
-