Enum EPortalStatePreset
- java.lang.Object
-
- java.lang.Enum<EPortalStatePreset>
-
- de.xima.fc.common.bean_models.workflow.state.EPortalStatePreset
-
- All Implemented Interfaces:
INamedUiElement
,Serializable
,Comparable<EPortalStatePreset>
public enum EPortalStatePreset extends Enum<EPortalStatePreset> implements INamedUiElement
Presets foruser portal 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 portal state when anapplication
was approved.COMPLETED
Preset for a portal state when anapplication
was completed.IN_PROGRESS
Preset for a portal state when anapplication
is currently being processed.REJECTED
Preset for a portal 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
applyToPortalState(UserPortalStateConfigViewModel portalConfig)
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 EPortalStatePreset
valueOf(String name)
Returns the enum constant of this type with the specified name.static EPortalStatePreset[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPROVED
public static final EPortalStatePreset APPROVED
Preset for a portal state when anapplication
was approved.
-
REJECTED
public static final EPortalStatePreset REJECTED
Preset for a portal state when anapplication
was rejected.
-
IN_PROGRESS
public static final EPortalStatePreset IN_PROGRESS
Preset for a portal state when anapplication
is currently being processed.
-
COMPLETED
public static final EPortalStatePreset COMPLETED
Preset for a portal state when anapplication
was completed.
-
-
Method Detail
-
values
public static EPortalStatePreset[] 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 (EPortalStatePreset c : EPortalStatePreset.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EPortalStatePreset 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()
-
applyToPortalState
public void applyToPortalState(UserPortalStateConfigViewModel portalConfig)
-
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.
-
-