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 voidaddTask(Task task)Add a taskUserIdentitygetAuthor()Get the author of the taskZonedDateTimegetCreationDate()Get the task's creation date.StringgetLabel()The title of the taskZonedDateTimegetLastModified()Get the task's last modification date.StringgetListId()The id of the task listLonggetPosition()The position of the task listList<Task>getTasks()Get the list of tasksvoidsetAuthor(UserIdentity author)Set the author of this task.voidsetCreationDate(ZonedDateTime startDate)Set the post's creation date.voidsetLabel(String label)Set the tasks list labelvoidsetLastModified(ZonedDateTime date)Set the post's modification date.voidsetListId(String id)Set the tasks list idvoidsetPosition(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.
-
-