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 TypeMethodDescriptionvoidaddAssignedTo(User 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(User 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(Calendar from, long now) Gets the effective priority, which is the priority with the time best matching the given "now" time.booleanGets the priority that will be used on the zero day.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
-
Constructor Details
-
Task
public Task()
-
-
Method Details
-
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 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
-
