Interface Task
- All Superinterfaces:
AmetysObject
,AttachableAmetysObject
,CommentableAmetysObject<Comment>
,DataAwareAmetysObject
,DataHolder
,IndexableDataHolder
,ModelAwareDataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModelAwareDataHolder
,ModifiableAmetysObject
,ModifiableDataHolder
,ModifiableIndexableDataHolder
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataHolder
,RemovableAmetysObject
,TagAwareAmetysObject
,TaggableAmetysObject
- All Known Implementing Classes:
JCRTask
public interface Task
extends ModifiableModelAwareDataAwareAmetysObject, RemovableAmetysObject, TaggableAmetysObject, CommentableAmetysObject<Comment>, AttachableAmetysObject
Task interface
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
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
Modifier and TypeMethodDescriptionvoid
close
(boolean isClosed) Close the taskGet the list of user assigned to this taskGet the author of the taskGet the task's check listGet the author who close the taskGet the task's date of closureGet the task's creation date.The description of the taskThe due date of the taskgetLabel()
The title of the taskGet the task's last modification date.The position into the task listThe starting date of the taskThe 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
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
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 listMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
Methods inherited from interface org.ametys.cms.repository.AttachableAmetysObject
getAttachments, setAttachments
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, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAX
Methods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexData
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModelAwareDataAwareAmetysObject
dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAXForEdition, getComments, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getStatus, getValue, getValue, hasComments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, hasValueOrEmpty
Methods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
commentsToSAX, dataToJSON, dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAX, dataToSAX, 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.holder.ModifiableDataHolder
getRepositoryData
Methods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder
Methods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, 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 Details
-
getTaskListId
The identifier of a task list- Returns:
- The id
-
setTasksListId
Set the identifier of a tasks list- Parameters:
tasksListId
- The tasks list id
-
getPosition
The position into the task list- Returns:
- The position
-
setPosition
Set the position into the task list- Parameters:
position
- The position into the task list
-
getLabel
The title of the task- Returns:
- The title
-
setLabel
Set the label of the task- Parameters:
label
- The label
-
getDescription
The description of the task- Returns:
- The description
-
setDescription
Set the description of the task- Parameters:
description
- The description
-
getStartDate
The starting date of the task- Returns:
- The start date
-
setStartDate
Set the starting date of the task- Parameters:
startDate
- The start date
-
getDueDate
The due date of the task- Returns:
- The due date
-
setDueDate
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
Close the task- Parameters:
isClosed
-true
to close the task
-
getCloseAuthor
Get the author who close the task- Returns:
- the author who close the task
-
setCloseAuthor
Set the author who close the task.- Parameters:
author
- the author
-
getCloseDate
Get the task's date of closure- Returns:
- the task's date of closure
-
setCloseDate
Set the task's date of closure- Parameters:
closedDate
- The date of closure
-
getAuthor
Get the author of the task- Returns:
- the author
-
setAuthor
Set the author of this task.- Parameters:
author
- the author
-
getAssignments
Get the list of user assigned to this task- Returns:
- The assignment list
-
setAssignments
Set the list of user assigned to this task- Parameters:
assignments
- The assignment list
-
getCreationDate
Get the task's creation date.- Returns:
- the task's creation date.
-
setCreationDate
Set the post's creation date.- Parameters:
startDate
- the post's creation date.
-
getLastModified
Get the task's last modification date.- Returns:
- the task's last modification date.
-
setLastModified
Set the post's modification date.- Parameters:
date
- the last modification date to set.
-
getCheckList
Get the task's check list- Returns:
- the task's check list
-
setCheckListItem
Set the list of check item- Parameters:
checkItems
- the list of check item
-