Package com.install4j.api.beaninfo
Enum ActionElevationType
- java.lang.Object
-
- java.lang.Enum<ActionElevationType>
-
- com.install4j.api.beaninfo.ActionElevationType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ActionElevationType>
public enum ActionElevationType extends java.lang.Enum<ActionElevationType>
Enumeration class for all possible elevation strategies for actions.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ELEVATE
If elevated privileges are available, the action will be run in the elevated helper process.INHERIT
The action elevation type will be inherited from the parent element, such as the action or screen group, the screen or the installer application itself.NONE
The action will not be elevated, it will run in-process as the original user.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
Convert to an int value.static ActionElevationType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ActionElevationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INHERIT
public static final ActionElevationType INHERIT
The action elevation type will be inherited from the parent element, such as the action or screen group, the screen or the installer application itself.
-
NONE
public static final ActionElevationType NONE
The action will not be elevated, it will run in-process as the original user.
-
ELEVATE
public static final ActionElevationType ELEVATE
If elevated privileges are available, the action will be run in the elevated helper process.
-
-
Method Detail
-
values
public static ActionElevationType[] 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 (ActionElevationType c : ActionElevationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ActionElevationType valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()
Convert to an int value.- Returns:
- the int value
-
-