Interface TasksList
-
- All Superinterfaces:
AmetysObject
,DataAwareAmetysObject
,DataHolder
,ModelAwareDataAwareAmetysObject
,ModelAwareDataHolder
,ModifiableAmetysObject
,ModifiableDataHolder
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataHolder
,RemovableAmetysObject
- All Known Implementing Classes:
JCRTasksList
public interface TasksList extends ModifiableModelAwareDataAwareAmetysObject, RemovableAmetysObject
Task list interface
-
-
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
addTask(Task task)
Add a taskUserIdentity
getAuthor()
Get the author of the taskZonedDateTime
getCreationDate()
Get the task's creation date.String
getLabel()
The title of the taskZonedDateTime
getLastModified()
Get the task's last modification date.String
getListId()
The id of the task listLong
getPosition()
The position of the task listList<Task>
getTasks()
Get the list of tasksvoid
setAuthor(UserIdentity author)
Set the author of this task.void
setCreationDate(ZonedDateTime startDate)
Set the post's creation date.void
setLabel(String label)
Set the tasks list labelvoid
setLastModified(ZonedDateTime date)
Set the post's modification date.void
setListId(String id)
Set the tasks list idvoid
setPosition(Long position)
Set the tasks list position-
Methods inherited from interface org.ametys.plugins.repository.AmetysObject
equals, getId, getName, getParent, getParentPath, getPath, hashCode
-
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
-
-
-
-
Method Detail
-
getPosition
Long getPosition()
The position of the task list- Returns:
- The position
-
setPosition
void setPosition(Long position)
Set the tasks list position- Parameters:
position
- the position
-
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
-
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.
-
-