Package com.adobe.granite.taskmanagement
Interface Task
- All Superinterfaces:
InboxItem
Task class describes a task instance.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.adobe.granite.workflow.exec.InboxItem
InboxItem.Priority -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionreturns the list of action objects for this task.Gets the ID for the user who completed the taskReturns a content path this task is associated with.Gets the ID for the user who created the taskGets the id of the owner of the task.Gets the description of the task.getId()Gets the ID of the task.Gets the instructions for this task.Gets the time this task was last updated.Gets the ID for the user who last modified the taskgetName()Gets the name of the task.Returns the ID of the parent task.getProperty(String aPropertyName) Gets a property with the given name.Gets an iterator of the property names for this task.gets the selected action used to complete the task.Gets the current status of the task.Returns the list of subtasks for this taskGets the type of this task.Gets the time this task was last completed.Gets the time this task was created.getUUId()Gets the UUID for the taskbooleanReturns whether or not there are sub-tasks under this task.booleanIndicates if this task object is fully populated with sub task information.voidsetActions(List<TaskAction> aListOfActions) sets the list of action objects for this task.voidsetContentPath(String contentPath) Sets a content path that this task is associated with.voidsetCurrentAssignee(String ownerId) Sets the id of the owner of the task.voidsetDescription(String description) Sets the description of the task.voidsetDueTime(Date dueTime) Sets the due time of this task.voidsetInstructions(String aInstructions) Sets the instructions for this task.voidSets the name of the task.voidsetPriority(InboxItem.Priority priority) Sets the priority for this task.voidsetProgressBeginTime(Date progressBeginTime) Sets the progress begin time for this task.voidsetProperty(String name, Object value) Sets the property.Methods inherited from interface com.adobe.granite.workflow.exec.InboxItem
getDueTime, getItemSubType, getItemType, getPriority, getProgressBeginTime
-
Field Details
-
DEFAULT_TASK_TYPE
Default task type.- See Also:
-
-
Method Details
-
getId
String getId()Gets the ID of the task. -
getUUId
String getUUId()Gets the UUID for the task- Returns:
- String containing the UUID of the Task
-
getParentId
String getParentId()Returns the ID of the parent task.- Returns:
- the ID of the parent task, or null if this is not a sub-task.
-
getName
String getName()Gets the name of the task.- Returns:
- String containing the name of the task.
-
setName
Sets the name of the task.- Parameters:
name- String containing the new name of the task.
-
getDescription
String getDescription()Gets the description of the task.- Returns:
- String containing the description of the task.
-
setDescription
Sets the description of the task.- Parameters:
description- String containing the new description of the task.
-
getStatus
Status getStatus()Gets the current status of the task. -
getCurrentAssignee
String getCurrentAssignee()Gets the id of the owner of the task.- Specified by:
getCurrentAssigneein interfaceInboxItem- Returns:
- String containing the id of the owner of the task.
-
setCurrentAssignee
Sets the id of the owner of the task.- Parameters:
ownerId- String containing the id of the owner of the task.
-
getTaskTypeName
String getTaskTypeName()Gets the type of this task.- Returns:
- String containing the name of the type of this task.
-
getTimeStarted
Date getTimeStarted()Gets the time this task was created.- Specified by:
getTimeStartedin interfaceInboxItem- Returns:
- Date containing the time this task was created.
-
getCreatedBy
String getCreatedBy()Gets the ID for the user who created the task- Returns:
- String containing the create user's ID
-
getLastModified
Date getLastModified()Gets the time this task was last updated.- Returns:
- Date containing the time this task was last updated.
-
getLastModifiedBy
String getLastModifiedBy()Gets the ID for the user who last modified the task- Returns:
- String containing the user's ID
-
getTimeEnded
Date getTimeEnded()Gets the time this task was last completed.- Specified by:
getTimeEndedin interfaceInboxItem- Returns:
- Date containing the time this task was completed.
-
getCompletedBy
String getCompletedBy()Gets the ID for the user who completed the task- Returns:
- String containing the complete user's ID
-
setProperty
Sets the property.- Parameters:
name- Name of the property to set.value- value of named property.
-
getProperty
Gets a property with the given name.- Parameters:
aPropertyName- Name of the property to retrieve.- Returns:
- value of the specified property.
-
getPropertyNames
Gets an iterator of the property names for this task.- Returns:
- an task property name iterator.
-
setInstructions
Sets the instructions for this task.- Parameters:
aInstructions- String containing the new instructions for this task.
-
getInstructions
String getInstructions()Gets the instructions for this task.- Returns:
- String containing the instructions for this task.
-
getActions
List<TaskAction> getActions()returns the list of action objects for this task.- Returns:
- list of action objects
-
setActions
sets the list of action objects for this task.- Parameters:
aListOfActions- list of action objects
-
getSelectedAction
TaskAction getSelectedAction()gets the selected action used to complete the task.- Returns:
- action TaskAction represented the action used to compete the task
-
getSubTasks
Returns the list of subtasks for this task- Returns:
- the list of subtasks
-
isSubTaskInfoLoaded
boolean isSubTaskInfoLoaded()Indicates if this task object is fully populated with sub task information. For performance reasons some task objects may not be fully populated with sub task data.- Returns:
- true if the sub tasks are loaded in this task object
-
hasSubTasks
boolean hasSubTasks()Returns whether or not there are sub-tasks under this task. Task instances from the server (ie: it does not depend on sub-tasks being actually loaded)- Returns:
- true if this task has sub-tasks, false otherwise
-
getContentPath
String getContentPath()Returns a content path this task is associated with.- Specified by:
getContentPathin interfaceInboxItem- Returns:
- the associated content path
-
setContentPath
Sets a content path that this task is associated with.- Parameters:
contentPath- the new content path for this task
-
setDueTime
Sets the due time of this task.- Parameters:
dueTime- the new due time of this task
-
setProgressBeginTime
Sets the progress begin time for this task.- Parameters:
progressBeginTime- the time for when progress should start on this task.
-
setPriority
Sets the priority for this task.- Parameters:
priority- the priority of this task.
-