public enum ExecuteAsUser extends java.lang.Enum<ExecuteAsUser>
| Enum Constant and Description |
|---|
CURRENT_USER |
SYSTEM_USER |
| Modifier and Type | Method and Description |
|---|---|
static ExecuteAsUser |
fromString(java.lang.String displayName)
Returns an instance of the enum with the specified display name.
|
java.lang.String |
getDisplayName()
Returns the name of this enum constant, as contained in the
declaration.
|
static ExecuteAsUser |
getExecuteAsUser(int type)
Returns an instance of the enum with the specified type.
|
int |
getType()
Returns the integer type of this enum constant, as contained in the
declaration.
|
java.lang.String |
toString()
Returns the display name of this enum constant, as contained in the
declaration.
|
static ExecuteAsUser |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ExecuteAsUser[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExecuteAsUser CURRENT_USER
public static final ExecuteAsUser SYSTEM_USER
public static ExecuteAsUser fromString(java.lang.String displayName)
displayName - user friendly namepublic java.lang.String getDisplayName()
public static ExecuteAsUser getExecuteAsUser(int type)
type - user typepublic int getType()
public java.lang.String toString()
toString in class java.lang.Enum<ExecuteAsUser>public static ExecuteAsUser valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ExecuteAsUser[] values()
for (ExecuteAsUser c : ExecuteAsUser.values()) System.out.println(c);
Copyright © 2017, 2025, Oracle and/or its affiliates. All rights reserved.