Enum Class ElevationState

All Implemented Interfaces:
Serializable, Comparable<ElevationState>, Constable

public enum ElevationState extends Enum<ElevationState>
Enumeration class for the different elevation states the current process can be in.
  • Enum Constant Details


      public static final ElevationState ELEVATION_STATE_NOT_APPLICABLE
      All processes on a system with a Windows version previous to Vista.

      public static final ElevationState 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 with Util.hasFullAdminRights().

      public static final ElevationState ELEVATION_STATE_LIMITED
      The current process runs with limited rights. UAC is turned on.

      public static final ElevationState ELEVATION_STATE_FULL
      The current process was elevated and runs with full rights. UAC is turned on.
  • Method Details

    • values

      public static ElevationState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ElevationState valueOf(String name)
      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.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      toString in class Enum<ElevationState>