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 statesfor 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 APPROVEDPreset for a portal state when anapplicationwas approved.COMPLETEDPreset for a portal state when anapplicationwas completed.IN_PROGRESSPreset for a portal state when anapplicationis currently being processed.REJECTEDPreset for a portal state when anapplicationwas 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 voidapplyToPortalState(UserPortalStateConfigViewModel portalConfig)StringgetDescriptionI18nKey()StringgetDisplayName(Locale locale)The display name of this element in the given locale.StringgetDisplayNameI18nKey()StringgetHexColorBackground()StringgetHexColorText()StringgetIconStyleClass()booleanisTerminalState()static EPortalStatePresetvalueOf(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 anapplicationwas approved.
-
REJECTED
public static final EPortalStatePreset REJECTED
Preset for a portal state when anapplicationwas rejected.
-
IN_PROGRESS
public static final EPortalStatePreset IN_PROGRESS
Preset for a portal state when anapplicationis currently being processed.
-
COMPLETED
public static final EPortalStatePreset COMPLETED
Preset for a portal state when anapplicationwas 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:INamedUiElementThe display name of this element in the given locale.- Specified by:
getDisplayNamein interfaceINamedUiElement- Parameters:
locale- The locale to get the display name for.- Returns:
- The display name of this element in the given locale.
-
-