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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classObject 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 TypeMethodDescriptionvoidclose(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 listbooleanisClosed()True if the task is closedvoidsetAssignments(List<UserIdentity> assignments) Set the list of user assigned to this taskvoidsetAuthor(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 taskvoidSet 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 listMethods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCodeMethods inherited from interface org.ametys.cms.repository.AttachableAmetysObject
getAttachments, setAttachmentsMethods inherited from interface org.ametys.cms.repository.CommentableAmetysObject
createComment, createComment, getComment, getCommentsMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.DataAwareAmetysObject
copyTo, copyTo, dataToJSON, dataToJSON, dataToSAX, dataToSAXMethods inherited from interface org.ametys.cms.data.ametysobject.ModelAwareDataAwareAmetysObject
getSystemPropertyExtensionPoint, indexData, indexDataMethods 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, hasValueOrEmptyMethods 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, isMultipleMethods inherited from interface org.ametys.plugins.repository.ModifiableAmetysObject
needsSave, rename, revertChanges, saveChangesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.cms.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getComposite, getComposite, getDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolderMethods inherited from interface org.ametys.plugins.repository.data.ametysobject.ModifiableModelAwareDataAwareAmetysObject
getRepositoryData, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, removeValue, setComments, setExternalValue, setLocalValue, setStatus, setValue, synchronizeValues, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.RemovableAmetysObject
removeMethods inherited from interface org.ametys.plugins.repository.tag.TagAwareAmetysObject
getTagsMethods 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:
trueif the task is closed
-
close
Close the task- Parameters:
isClosed-trueto 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
-