Package com.adobe.granite.taskmanagement
Enum TaskProperty
- All Implemented Interfaces:
Serializable,Comparable<TaskProperty>,java.lang.constant.Constable
Enumerates the built in task properties
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe action names of the taskThe id for the user who completed the taskWhen the task was completedA content path the task is associated toThe Id of the user who created this task.The time the task was createdThe task descriptionthe date when this task is dueThe task instructionsThe id for the user who last modified the taskThe time the task was last modifiedThe task namename hierarchy for this task (co-insides with parent task id hierarchy)The name of the principal who owns the taskThe Id of the parent taskthe priority of this taskthe date when progress should start on this taskThe action used to complete the taskThe task statusThe task type -
Method Summary
Modifier and TypeMethodDescriptionReturn the property name which can be used in task filter conditions.static final TaskPropertygetTaskProperty(String propertyName) Return the TaskProperty object for the specified property namestatic final booleanisTaskProperty(String propertyName) Returns true if this is an intrinsic property (ie, one of DESCRIPTION, INSTRUCTIONS, ...static TaskPropertyReturns the enum constant of this type with the specified name.static TaskProperty[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NAME
The task name -
DESCRIPTION
The task description -
INSTRUCTIONS
The task instructions -
OWNER_ID
The name of the principal who owns the task -
TASK_TYPE_NAME
The task type -
STATUS
The task status -
CREATED_TIME
The time the task was created -
CREATED_BY
The Id of the user who created this task. In the case where this task was created by the system this field will be empty -
MODIFIED_TIME
The time the task was last modified -
MODIFIED_BY
The id for the user who last modified the task -
COMPLETED_TIME
When the task was completed -
COMPLETED_BY
The id for the user who completed the task -
ACTION_NAMES
The action names of the task -
SELECTED_ACTION
The action used to complete the task -
PARENT_TASK_ID
The Id of the parent task -
CONTENT_PATH
A content path the task is associated to -
NAME_HIERARCHY
name hierarchy for this task (co-insides with parent task id hierarchy) -
DUE_TIME
the date when this task is due -
PROGRESS_START_TIME
the date when progress should start on this task -
PRIORITY
the priority of this task
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getPropertyName
Return the property name which can be used in task filter conditions. seeTaskManager.getTasks(com.adobe.granite.taskmanagement.Filter)seeCondition.setPropertyName(String)- Returns:
- A String representing the property name of this instance or null if it has not been set
-
isTaskProperty
Returns true if this is an intrinsic property (ie, one of DESCRIPTION, INSTRUCTIONS, ... , ACTION_NAMES) and false otherwise.- Parameters:
propertyName- The property name to check- Returns:
- true if an intrinsic property and false otherwise
-
getTaskProperty
Return the TaskProperty object for the specified property name- Parameters:
propertyName- used to specify the property name- Returns:
- an TaskProperty object for the specified property name and false if the property name is not an intrinsic property.
-