Interface Task
-
- All Superinterfaces:
AmetysObject,CommentableAmetysObject,DataAwareAmetysObject,DataHolder,ModelAwareDataAwareAmetysObject,ModelAwareDataHolder,ModifiableAmetysObject,ModifiableDataHolder,ModifiableModelAwareDataAwareAmetysObject,ModifiableModelAwareDataHolder,RemovableAmetysObject,TagAwareAmetysObject,TaggableAmetysObject
- All Known Implementing Classes:
JCRTask
public interface Task extends ModifiableModelAwareDataAwareAmetysObject, RemovableAmetysObject, TaggableAmetysObject, CommentableAmetysObject
Task interface
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTask.CheckItemObject to represent a check item
-
Field Summary
-
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose(boolean isClosed)Close the taskList<UserIdentity>getAssignments()Get the list of user assigned to this taskList<Binary>getAttachments()Get the task's attachments listUserIdentitygetAuthor()Get the author of the taskList<Task.CheckItem>getCheckList()Get the task's check listUserIdentitygetCloseAuthor()Get the author who close the taskLocalDategetCloseDate()Get the task's date of closureZonedDateTimegetCreationDate()Get the task's creation date.StringgetDescription()The description of the taskLocalDategetDueDate()The due date of the taskStringgetLabel()The title of the taskZonedDateTimegetLastModified()Get the task's last modification date.LonggetPosition()The position into the task listLocalDategetStartDate()The starting date of the taskStringgetTaskListId()The identifier of a task listbooleanisClosed()True if the task is closedvoidsetAssignments(List<UserIdentity> assignments)Set the list of user assigned to this taskvoidsetAttachments(List<Binary> attachments)Set the task's attachments listvoidsetAuthor(UserIdentity author)Set the author of this task.voidsetCheckListItem(List<Task.CheckItem> checkItems)Set the list of check itemvoidsetCloseAuthor(UserIdentity author)Set the author who close the task.voidsetCloseDate(LocalDate closedDate)Set the task's date of closurevoidsetCreationDate(ZonedDateTime startDate)Set the post's creation date.voidsetDescription(String description)Set the description of the taskvoidsetDueDate(LocalDate dueDate)Set the due date of the taskvoidsetLabel(String label)Set the label of the taskvoidsetLastModified(ZonedDateTime date)Set the post's modification date.voidsetPosition(Long position)Set the position into the task listvoidsetStartDate(LocalDate startDate)Set the starting date of the taskvoidsetTasksListId(String tasksListId)Set the identifier of a tasks list-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
Methods inherited from interface org.ametys.cms.repository.CommentableAmetysObject
createComment, createComment, getComment, getComments
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, dataToSAX, dataToSAX
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
getComments, getDataNames, getDefinition, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
-
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToMap, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getType, getValue, hasValue, hasValueOrEmpty, isMultiple
-
Methods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChanges
-
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRepositoryData, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValues
-
Methods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
remove
-
Methods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTags
-
Methods inherited from interface org.ametys.plugins.repository.tag.TaggableAmetysObject
tag, untag
-
-
-
-
Method Detail
-
getTaskListId
String getTaskListId()
The identifier of a task list- Returns:
- The id
-
setTasksListId
void setTasksListId(String tasksListId)
Set the identifier of a tasks list- Parameters:
tasksListId- The tasks list id
-
getPosition
Long getPosition()
The position into the task list- Returns:
- The position
-
setPosition
void setPosition(Long position)
Set the position into the task list- Parameters:
position- The position into the task list
-
getDescription
String getDescription()
The description of the task- Returns:
- The description
-
setDescription
void setDescription(String description)
Set the description of the task- Parameters:
description- The description
-
getStartDate
LocalDate getStartDate()
The starting date of the task- Returns:
- The start date
-
setStartDate
void setStartDate(LocalDate startDate)
Set the starting date of the task- Parameters:
startDate- The start date
-
getDueDate
LocalDate getDueDate()
The due date of the task- Returns:
- The due date
-
setDueDate
void setDueDate(LocalDate dueDate)
Set the due date of the task- Parameters:
dueDate- The due date
-
isClosed
boolean isClosed()
True if the task is closed- Returns:
trueif the task is closed
-
close
void close(boolean isClosed)
Close the task- Parameters:
isClosed-trueto close the task
-
getCloseAuthor
UserIdentity getCloseAuthor()
Get the author who close the task- Returns:
- the author who close the task
-
setCloseAuthor
void setCloseAuthor(UserIdentity author)
Set the author who close the task.- Parameters:
author- the author
-
getCloseDate
LocalDate getCloseDate()
Get the task's date of closure- Returns:
- the task's date of closure
-
setCloseDate
void setCloseDate(LocalDate closedDate)
Set the task's date of closure- Parameters:
closedDate- The date of closure
-
getAuthor
UserIdentity getAuthor()
Get the author of the task- Returns:
- the author
-
setAuthor
void setAuthor(UserIdentity author)
Set the author of this task.- Parameters:
author- the author
-
getAssignments
List<UserIdentity> getAssignments()
Get the list of user assigned to this task- Returns:
- The assignment list
-
setAssignments
void setAssignments(List<UserIdentity> assignments)
Set the list of user assigned to this task- Parameters:
assignments- The assignment list
-
getCreationDate
ZonedDateTime getCreationDate()
Get the task's creation date.- Returns:
- the task's creation date.
-
setCreationDate
void setCreationDate(ZonedDateTime startDate)
Set the post's creation date.- Parameters:
startDate- the post's creation date.
-
getLastModified
ZonedDateTime getLastModified()
Get the task's last modification date.- Returns:
- the task's last modification date.
-
setLastModified
void setLastModified(ZonedDateTime date)
Set the post's modification date.- Parameters:
date- the last modification date to set.
-
getAttachments
List<Binary> getAttachments()
Get the task's attachments list- Returns:
- the task's attachments list
-
setAttachments
void setAttachments(List<Binary> attachments)
Set the task's attachments list- Parameters:
attachments- the task's attachments list
-
getCheckList
List<Task.CheckItem> getCheckList()
Get the task's check list- Returns:
- the task's check list
-
setCheckListItem
void setCheckListItem(List<Task.CheckItem> checkItems)
Set the list of check item- Parameters:
checkItems- the list of check item
-
-