Enum TrustLevel
- All Implemented Interfaces:
Serializable
,Comparable<TrustLevel>
public enum TrustLevel extends Enum<TrustLevel>
Just how trusted is a user?
-
Enum Constant Summary
Enum Constants Enum Constant Description ADMIN
Grants service administration permissions in addition toUSER
.BASIC
Grants no real permissions at all.NMPI_EXEC
Grants ability to run NMPI jobs, in addition toUSER
.READER
Grants read-only permissions in addition toBASIC
.USER
Grants job creation and management permissions in addition toREADER
. -
Method Summary
Modifier and Type Method Description static TrustLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static TrustLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BASIC
Grants no real permissions at all. -
READER
Grants read-only permissions in addition toBASIC
.- See Also:
Grants.GRANT_READER
-
USER
Grants job creation and management permissions in addition toREADER
.- See Also:
Grants.GRANT_USER
-
ADMIN
Grants service administration permissions in addition toUSER
.- See Also:
Grants.GRANT_ADMIN
-
NMPI_EXEC
Grants ability to run NMPI jobs, in addition toUSER
.- See Also:
Grants.GRANT_NMPI_EXEC
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-