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 ModifiableRichTextgetDescription()The description of the taskvoidsetAssignment(List<UserIdentity> assignment)Set the list of user assigned to this taskvoidsetAuthor(UserIdentity author)Set the author of this task.voidsetCreationDate(Date startDate)Set the post's creation date.voidsetEndDate(Date endDate)Set the ending date of the taskvoidsetInitialLoad(Double initialLoad)Set the initial load estimated for this taskvoidsetLabel(String title)Set the title of the taskvoidsetLastModified(Date date)Set the post's modification date.voidsetPriority(Task.TaskPriority priority)Set the task priorityvoidsetProgress(Double progress)Set the progress of the taskvoidsetStartDate(Date startDate)Set the starting date of the taskvoidsetStatus(Task.TaskStatus status)Set the status of the taskvoidsetSubscribers(List<UserIdentity> subscribers)Set the list of user subscribed to this taskvoidsetTaskId(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:TaskThe description of the task- Specified by:
getDescriptionin 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.
-
-