public enum AppAuthority extends Enum<AppAuthority> implements org.springframework.security.core.GrantedAuthority
Enum Constant and Description |
---|
ROLE_ADMIN |
ROLE_ANONYMOUS |
ROLE_USER |
Modifier and Type | Method and Description |
---|---|
String |
getAuthority()
getAuthority.
|
static AppAuthority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AppAuthority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AppAuthority ROLE_USER
public static final AppAuthority ROLE_ADMIN
public static final AppAuthority ROLE_ANONYMOUS
public static AppAuthority[] values()
for (AppAuthority c : AppAuthority.values()) System.out.println(c);
public static AppAuthority 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 nullCopyright © 2011–2016 eXo Platform SAS. All rights reserved.