public enum PrivilegeCode extends Enum<PrivilegeCode>
Enum Constant and Description |
---|
DATA_ADMIN
User can perform data administration functions on a database that do not involve user
administration.
|
READ
User can read data only.
|
READ_WRITE
User can read and write data.
|
READ_WRITE_UDF
User can read and write data through user defined functions.
|
SYS_ADMIN
User can perform systems administration functions on a database that do not involve user
administration.
|
USER_ADMIN
User can edit/remove other users.
|
Modifier and Type | Field and Description |
---|---|
int |
id
Privilege code ID used in wire protocol.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canScope()
Can privilege be scoped with namespace and set.
|
static PrivilegeCode |
fromId(int id)
Convert ID to privilege code enum.
|
String |
toString()
Convert code to string.
|
static PrivilegeCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrivilegeCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrivilegeCode USER_ADMIN
public static final PrivilegeCode SYS_ADMIN
public static final PrivilegeCode DATA_ADMIN
public static final PrivilegeCode READ
public static final PrivilegeCode READ_WRITE
public static final PrivilegeCode READ_WRITE_UDF
public static PrivilegeCode[] values()
for (PrivilegeCode c : PrivilegeCode.values()) System.out.println(c);
public static PrivilegeCode 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 boolean canScope()
public static PrivilegeCode fromId(int id)
public String toString()
toString
in class Enum<PrivilegeCode>
Copyright ? 2012–2018 Aerospike, Inc. All rights reserved.