java.lang.Object
com.semanticcms.core.model.Node
com.semanticcms.core.model.Element
com.pragmatickm.task.model.Task
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe user value representing an unassigned task. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssignedTo(String who, DayDuration after) voidaddCustomLog(String name) voidaddDoBefore(ElementRef doBefore) voidaddPriority(Priority priority, DayDuration after) freeze()Gets the users the task is assigned to or a single-element list of "Unassigned" if unassigned.getAssignedTo(String who) Checks if this task is assigned to the given user.getCost()protected StringGets all the doBefores for this task.getLabel()getOn()getPay()Gets the priorities of the task.getPriority(LocalDate from, LocalDate today) Gets the effective priority, which is the priority with the time best matching the given "today" date.booleanGets the priority that will be used on the zero day.static booleanAnybody except unassigned is a person and may have tasks assigned.voidvoidvoidvoidvoidsetRecurring(Recurring recurring) voidsetRelative(boolean relative) voidsetXmlFile(PageRef xmlFile) Methods inherited from class com.semanticcms.core.model.Element
addChildElement, equals, generateIdPrefix, getElementIdTemplate, getElementRef, getId, getPage, getParentElement, hashCode, isHidden, isValidId, setIdMethods inherited from class com.semanticcms.core.model.Node
addPageLink, appendLabel, checkNotFrozen, findChildElement, findChildElement, findTopLevelElements, getBody, getChildElements, getPageLinks, getProperty, requireChildElement, requireChildElement, setBody, setProperty, toString
-
Field Details
-
UNASSIGNED
The user value representing an unassigned task.- See Also:
-
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
isPerson
Anybody except unassigned is a person and may have tasks assigned. -
freeze
-
getLabel
-
setLabel
-
getDefaultIdPrefix
- Specified by:
getDefaultIdPrefixin classElement
-
getOn
-
setOn
-
getRecurring
-
setRecurring
-
getRecurringDisplay
-
getRelative
public boolean getRelative() -
setRelative
public void setRelative(boolean relative) -
getAssignedTo
Gets the users the task is assigned to or a single-element list of "Unassigned" if unassigned. -
getAssignedTo
Checks if this task is assigned to the given user.- Returns:
- The assignment or
nullif not assigned to the given person.
-
addAssignedTo
-
getPay
-
setPay
-
getCost
-
setCost
-
getPriorities
Gets the priorities of the task. -
addPriority
-
getPriority
Gets the effective priority, which is the priority with the time best matching the given "today" date.- Parameters:
from- the date the priority is being determined from.today- the current system date
-
getZeroDayPriority
Gets the priority that will be used on the zero day. -
getDoBefores
Gets all the doBefores for this task. It is up to the caller to look-up the referenced elements. -
addDoBefore
-
getCustomLogs
-
addCustomLog
-
getXmlFile
-
setXmlFile
-
getTaskLog
-
