Enum TaskProperty

java.lang.Object
java.lang.Enum<TaskProperty>
com.adobe.granite.taskmanagement.TaskProperty
All Implemented Interfaces:
Serializable, Comparable<TaskProperty>, java.lang.constant.Constable

public enum TaskProperty extends Enum<TaskProperty>
Enumerates the built in task properties
  • Enum Constant Details

    • NAME

      public static final TaskProperty NAME
      The task name
    • DESCRIPTION

      public static final TaskProperty DESCRIPTION
      The task description
    • INSTRUCTIONS

      public static final TaskProperty INSTRUCTIONS
      The task instructions
    • OWNER_ID

      public static final TaskProperty OWNER_ID
      The name of the principal who owns the task
    • TASK_TYPE_NAME

      public static final TaskProperty TASK_TYPE_NAME
      The task type
    • STATUS

      public static final TaskProperty STATUS
      The task status
    • CREATED_TIME

      public static final TaskProperty CREATED_TIME
      The time the task was created
    • CREATED_BY

      public static final TaskProperty 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

      public static final TaskProperty MODIFIED_TIME
      The time the task was last modified
    • MODIFIED_BY

      public static final TaskProperty MODIFIED_BY
      The id for the user who last modified the task
    • COMPLETED_TIME

      public static final TaskProperty COMPLETED_TIME
      When the task was completed
    • COMPLETED_BY

      public static final TaskProperty COMPLETED_BY
      The id for the user who completed the task
    • ACTION_NAMES

      public static final TaskProperty ACTION_NAMES
      The action names of the task
    • SELECTED_ACTION

      public static final TaskProperty SELECTED_ACTION
      The action used to complete the task
    • PARENT_TASK_ID

      public static final TaskProperty PARENT_TASK_ID
      The Id of the parent task
    • CONTENT_PATH

      public static final TaskProperty CONTENT_PATH
      A content path the task is associated to
    • NAME_HIERARCHY

      public static final TaskProperty NAME_HIERARCHY
      name hierarchy for this task (co-insides with parent task id hierarchy)
    • DUE_TIME

      public static final TaskProperty DUE_TIME
      the date when this task is due
    • PROGRESS_START_TIME

      public static final TaskProperty PROGRESS_START_TIME
      the date when progress should start on this task
    • PRIORITY

      public static final TaskProperty PRIORITY
      the priority of this task
  • Method Details

    • values

      public static TaskProperty[] 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

      public static TaskProperty valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getPropertyName

      public String getPropertyName()
      Return the property name which can be used in task filter conditions. see TaskManager.getTasks(com.adobe.granite.taskmanagement.Filter) see Condition.setPropertyName(String)
      Returns:
      A String representing the property name of this instance or null if it has not been set
    • isTaskProperty

      public static final boolean isTaskProperty(String propertyName)
      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

      public static final TaskProperty getTaskProperty(String propertyName)
      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.