public enum Authority extends Enum<Authority>
Enum Constant and Description |
---|
ROLE_ADMIN |
ROLE_DFM |
ROLE_MONITOR |
ROLE_NIFI |
ROLE_PROVENANCE |
ROLE_PROXY |
Modifier and Type | Method and Description |
---|---|
static Set<String> |
convertAuthorities(Set<Authority> authorities) |
static EnumSet<Authority> |
convertRawAuthorities(Set<String> rawAuthorities) |
static Set<String> |
getRawAuthorities() |
static Authority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Authority |
valueOfAuthority(String rawAuthority) |
static Authority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Authority ROLE_MONITOR
public static final Authority ROLE_DFM
public static final Authority ROLE_ADMIN
public static final Authority ROLE_PROVENANCE
public static final Authority ROLE_PROXY
public static final Authority ROLE_NIFI
public static Authority[] values()
for (Authority c : Authority.values()) System.out.println(c);
public static Authority 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 static Authority valueOfAuthority(String rawAuthority)
rawAuthority
- string form of authoritypublic static Set<String> getRawAuthorities()
Copyright © 2015 Apache NiFi Project. All rights reserved.