Package com.install4j.api.windows
Enum Class ElevationState
- All Implemented Interfaces:
Serializable
,Comparable<ElevationState>
,Constable
Enumeration class for the different elevation states the current process can be in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe current process is not limited and not elevated on Vista or higher.The current process was elevated and runs with full rights.The current process runs with limited rights.All processes on a system with a Windows version previous to Vista. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
static ElevationState
Returns the enum constant of this class with the specified name.static ElevationState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ELEVATION_STATE_NOT_APPLICABLE
All processes on a system with a Windows version previous to Vista. -
ELEVATION_STATE_DEFAULT
The current process is not limited and not elevated on Vista or higher. This can be a process of a non-admin user, or of an admin user when UAC is turned off. You can differentiate between those two withUtil.hasFullAdminRights()
. -
ELEVATION_STATE_LIMITED
The current process runs with limited rights. UAC is turned on. -
ELEVATION_STATE_FULL
The current process was elevated and runs with full rights. UAC is turned on.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<ElevationState>
-