java.lang.Object
com.semanticcms.core.model.Node
com.semanticcms.core.model.Element
com.pragmatickm.task.model.Task
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAssignedTo
(User who, DayDuration after) void
addCustomLog
(String name) void
addDoBefore
(ElementRef doBefore) void
addPriority
(Priority priority, DayDuration after) freeze()
Gets the users the task is assigned to or a single-element list of "Unassigned" if unassigned.getAssignedTo
(User who) Checks if this task is assigned to the given user.getCost()
protected String
Gets all the doBefores for this task.getLabel()
getOn()
getPay()
Gets the priorities of the task.getPriority
(Calendar from, long now) Gets the effective priority, which is the priority with the time best matching the given "now" time.boolean
Gets the priority that will be used on the zero day.void
void
void
void
void
setRecurring
(Recurring recurring) void
setRelative
(boolean relative) void
setXmlFile
(PageRef xmlFile) Methods inherited from class com.semanticcms.core.model.Element
addChildElement, equals, generateIdPrefix, getElementIdTemplate, getElementRef, getId, getPage, getParentElement, hashCode, isHidden, isValidId, setId
Methods inherited from class com.semanticcms.core.model.Node
addPageLink, appendLabel, checkNotFrozen, findChildElement, findChildElement, findTopLevelElements, getBody, getChildElements, getPageLinks, getProperty, requireChildElement, requireChildElement, setBody, setProperty, toString
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
freeze
-
getLabel
-
setLabel
-
getDefaultIdPrefix
- Specified by:
getDefaultIdPrefix
in 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 null if 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 "now" time.- Parameters:
from
- the date the priority is being determined from.now
- the current system timestamp
-
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
-