Interface TasksList
- All Superinterfaces:
AmetysObject
,DataAwareAmetysObject
,DataHolder
,IndexableDataHolder
,ModelAwareDataAwareAmetysObject
,ModelAwareDataAwareAmetysObject
,ModelAwareDataHolder
,ModifiableAmetysObject
,ModifiableDataHolder
,ModifiableIndexableDataHolder
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataAwareAmetysObject
,ModifiableModelAwareDataHolder
,RemovableAmetysObject
- All Known Implementing Classes:
JCRTasksList
Task list interface
-
Field Summary
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, COMMENTS_SUFFIX, STATUS_SUFFIX
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a taskGet the author of the taskgetColor()
Get the tasks list colorGet the task's creation date.getIcon()
Get the tasks list icongetLabel()
The title of the taskGet the task's last modification date.The id of the task listThe position of the task listgetTasks()
Get the list of tasksvoid
setAuthor
(UserIdentity author) Set the author of this task.void
Set the tasks list colorvoid
setCreationDate
(ZonedDateTime startDate) Set the post's creation date.void
Set the tasks list iconvoid
Set the tasks list labelvoid
setLastModified
(ZonedDateTime date) Set the post's modification date.void
Set the tasks list idvoid
setPosition
(Long position) Set the tasks list positionMethods 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, 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, 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, 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
-
Method Details
-
getListId
The id of the task list- Returns:
- The id
-
setListId
Set the tasks list id- Parameters:
id
- the id
-
getPosition
The position of the task list- Returns:
- The position
-
setPosition
Set the tasks list position- Parameters:
position
- the position
-
getLabel
The title of the task- Returns:
- The title
-
setLabel
Set the tasks list label- Parameters:
label
- the label
-
getColor
Get the tasks list color- Returns:
- the tasks list color
-
setColor
Set the tasks list color- Parameters:
colorId
- the color id
-
getIcon
Get the tasks list icon- Returns:
- the tasks list icon
-
setIcon
Set the tasks list icon- Parameters:
iconId
- the icon id
-
getTasks
Get the list of tasks- Returns:
- The list of tasks
-
addTask
Add a task- Parameters:
task
- The task
-
getAuthor
Get the author of the task- Returns:
- the author
-
setAuthor
Set the author of this task.- Parameters:
author
- the author
-
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.
-