public enum User extends Enum<User>
Enum Constant and Description |
---|
NO_REST |
REST_ALL |
REST_PROJECT |
Modifier and Type | Method and Description |
---|---|
String |
getPassword() |
String |
getUserName() |
boolean |
isAuthorized() |
static User |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static User[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final User REST_ALL
public static final User REST_PROJECT
public static final User NO_REST
public static User[] values()
for (User c : User.values()) System.out.println(c);
public static User valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getUserName()
public String getPassword()
public boolean isAuthorized()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.