Enum WorklistConstants.Priority
- java.lang.Object
-
- java.lang.Enum<WorklistConstants.Priority>
-
- de.aristaflow.adept2.model.globals.WorklistConstants.Priority
-
- All Implemented Interfaces:
Serializable
,Comparable<WorklistConstants.Priority>
- Enclosing class:
- WorklistConstants
public static enum WorklistConstants.Priority extends Enum<WorklistConstants.Priority>
The priority of a worklist item. Proposed default values are in encapsulated class. NOTE: The order of the enum values is important! Do not change!
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_REQUIRED
The priority "action required" (int value 7000).HIGH
The priority "high" (int value 5000).LOW
The priority "low" (int value 3000).NORMAL
The priority "normal" (int value 4000).NOT_SET
The priority "not set" (int value 0).ON_HOLD
The priority "on hold" (int value 1000).URGENT
The priority "urgent" (int value 6000).VERY_LOW
The priority "very low" (int value 2000).
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
static String
toString(int priority, Locale locale)
Returns a string representation of the priority.static String[]
valueLabels(Locale locale)
static WorklistConstants.Priority
valueOf(String name)
Returns the enum constant of this type with the specified name.static WorklistConstants.Priority[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOT_SET
public static final WorklistConstants.Priority NOT_SET
The priority "not set" (int value 0).
-
ON_HOLD
public static final WorklistConstants.Priority ON_HOLD
The priority "on hold" (int value 1000).
-
VERY_LOW
public static final WorklistConstants.Priority VERY_LOW
The priority "very low" (int value 2000).
-
LOW
public static final WorklistConstants.Priority LOW
The priority "low" (int value 3000).
-
NORMAL
public static final WorklistConstants.Priority NORMAL
The priority "normal" (int value 4000).
-
HIGH
public static final WorklistConstants.Priority HIGH
The priority "high" (int value 5000).
-
URGENT
public static final WorklistConstants.Priority URGENT
The priority "urgent" (int value 6000).
-
ACTION_REQUIRED
public static final WorklistConstants.Priority ACTION_REQUIRED
The priority "action required" (int value 7000).
-
-
Method Detail
-
values
public static WorklistConstants.Priority[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WorklistConstants.Priority c : WorklistConstants.Priority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WorklistConstants.Priority 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 nameNullPointerException
- if the argument is null
-
getPriority
public int getPriority()
-
toString
public static String toString(int priority, Locale locale)
Returns a string representation of the priority.- Parameters:
priority
-locale
- The locale which to use ornull
for the default locale of the JVM.- Returns:
- The (localised) string representation
-
valueLabels
public static String[] valueLabels(Locale locale)
- Parameters:
locale
- The locale which to use ornull
to useLocale.ENGLISH
.- Returns:
- String array for all labels.
-
-