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 class
Task.CheckItem
Object 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 void
close(boolean isClosed)
Close the taskList<UserIdentity>
getAssignments()
Get the list of user assigned to this taskList<Binary>
getAttachments()
Get the task's attachments listUserIdentity
getAuthor()
Get the author of the taskList<Task.CheckItem>
getCheckList()
Get the task's check listUserIdentity
getCloseAuthor()
Get the author who close the taskLocalDate
getCloseDate()
Get the task's date of closureZonedDateTime
getCreationDate()
Get the task's creation date.String
getDescription()
The description of the taskLocalDate
getDueDate()
The due date of the taskString
getLabel()
The title of the taskZonedDateTime
getLastModified()
Get the task's last modification date.Long
getPosition()
The position into the task listLocalDate
getStartDate()
The starting date of the taskString
getTaskListId()
The identifier of a task listboolean
isClosed()
True if the task is closedvoid
setAssignments(List<UserIdentity> assignments)
Set the list of user assigned to this taskvoid
setAttachments(List<Binary> attachments)
Set the task's attachments listvoid
setAuthor(UserIdentity author)
Set the author of this task.void
setCheckListItem(List<Task.CheckItem> checkItems)
Set the list of check itemvoid
setCloseAuthor(UserIdentity author)
Set the author who close the task.void
setCloseDate(LocalDate closedDate)
Set the task's date of closurevoid
setCreationDate(ZonedDateTime startDate)
Set the post's creation date.void
setDescription(String description)
Set the description of the taskvoid
setDueDate(LocalDate dueDate)
Set the due date of the taskvoid
setLabel(String label)
Set the label of the taskvoid
setLastModified(ZonedDateTime date)
Set the post's modification date.void
setPosition(Long position)
Set the position into the task listvoid
setStartDate(LocalDate startDate)
Set the starting date of the taskvoid
setTasksListId(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:
true
if the task is closed
-
close
void close(boolean isClosed)
Close the task- Parameters:
isClosed
-true
to 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
-
-