Enum EEndUserStatePreset
- java.lang.Object
-
- java.lang.Enum<EEndUserStatePreset>
-
- de.xima.fc.common.bean_models.workflow.state.EEndUserStatePreset
-
- All Implemented Interfaces:
INamedUiElement
,Serializable
,Comparable<EEndUserStatePreset>
public enum EEndUserStatePreset extends Enum<EEndUserStatePreset> implements INamedUiElement
Presets forend user states
for the workflow designer. Users can select a preset, which fills the configuration with corresponding default values.- Since:
- 8.2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPROVED
Preset for a end user state when anapplication
was approved.COMPLETED
Preset for a end user state when anapplication
was completed.IN_PROGRESS
Preset for a end user state when anapplication
is currently being processed.REJECTED
Preset for a end user state when anapplication
was rejected.
-
Field Summary
-
Fields inherited from interface de.xima.fc.interfaces.INamedUiElement
ATTR_DISPLAY_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToEndUserState(EndUserStateConfigViewModel portalConfig, List<Locale> localesToApply)
String
getDescriptionI18nKey()
String
getDisplayName(Locale locale)
The display name of this element in the given locale.String
getDisplayNameI18nKey()
String
getHexColorBackground()
String
getHexColorText()
String
getIconStyleClass()
boolean
isTerminalState()
static EEndUserStatePreset
valueOf(String name)
Returns the enum constant of this type with the specified name.static EEndUserStatePreset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPROVED
public static final EEndUserStatePreset APPROVED
Preset for a end user state when anapplication
was approved.
-
REJECTED
public static final EEndUserStatePreset REJECTED
Preset for a end user state when anapplication
was rejected.
-
IN_PROGRESS
public static final EEndUserStatePreset IN_PROGRESS
Preset for a end user state when anapplication
is currently being processed.
-
COMPLETED
public static final EEndUserStatePreset COMPLETED
Preset for a end user state when anapplication
was completed.
-
-
Method Detail
-
values
public static EEndUserStatePreset[] 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 (EEndUserStatePreset c : EEndUserStatePreset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EEndUserStatePreset 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
-
isTerminalState
public boolean isTerminalState()
-
getIconStyleClass
public String getIconStyleClass()
-
getHexColorText
public String getHexColorText()
-
getHexColorBackground
public String getHexColorBackground()
-
getDescriptionI18nKey
public String getDescriptionI18nKey()
-
getDisplayNameI18nKey
public String getDisplayNameI18nKey()
-
applyToEndUserState
public void applyToEndUserState(EndUserStateConfigViewModel portalConfig, List<Locale> localesToApply)
-
getDisplayName
public String getDisplayName(Locale locale)
Description copied from interface:INamedUiElement
The display name of this element in the given locale.- Specified by:
getDisplayName
in interfaceINamedUiElement
- Parameters:
locale
- The locale to get the display name for.- Returns:
- The display name of this element in the given locale.
-
-