Enum PrivilegeType
- java.lang.Object
-
- java.lang.Enum<PrivilegeType>
-
- org.apache.iotdb.commons.auth.entity.PrivilegeType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PrivilegeType>
public enum PrivilegeType extends java.lang.Enum<PrivilegeType>
This enum class contains all available privileges in IoTDB.
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPathRelevant()static booleanisPathRelevant(int type)Some privileges need a seriesPath as parameter, while others do not.static PrivilegeTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PrivilegeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_DATABASE
public static final PrivilegeType CREATE_DATABASE
-
INSERT_TIMESERIES
public static final PrivilegeType INSERT_TIMESERIES
-
UPDATE_TIMESERIES
@Deprecated public static final PrivilegeType UPDATE_TIMESERIES
Deprecated.
-
READ_TIMESERIES
public static final PrivilegeType READ_TIMESERIES
-
CREATE_TIMESERIES
public static final PrivilegeType CREATE_TIMESERIES
-
DELETE_TIMESERIES
public static final PrivilegeType DELETE_TIMESERIES
-
CREATE_USER
public static final PrivilegeType CREATE_USER
-
DELETE_USER
public static final PrivilegeType DELETE_USER
-
MODIFY_PASSWORD
public static final PrivilegeType MODIFY_PASSWORD
-
LIST_USER
public static final PrivilegeType LIST_USER
-
GRANT_USER_PRIVILEGE
public static final PrivilegeType GRANT_USER_PRIVILEGE
-
REVOKE_USER_PRIVILEGE
public static final PrivilegeType REVOKE_USER_PRIVILEGE
-
GRANT_USER_ROLE
public static final PrivilegeType GRANT_USER_ROLE
-
REVOKE_USER_ROLE
public static final PrivilegeType REVOKE_USER_ROLE
-
CREATE_ROLE
public static final PrivilegeType CREATE_ROLE
-
DELETE_ROLE
public static final PrivilegeType DELETE_ROLE
-
LIST_ROLE
public static final PrivilegeType LIST_ROLE
-
GRANT_ROLE_PRIVILEGE
public static final PrivilegeType GRANT_ROLE_PRIVILEGE
-
REVOKE_ROLE_PRIVILEGE
public static final PrivilegeType REVOKE_ROLE_PRIVILEGE
-
CREATE_FUNCTION
public static final PrivilegeType CREATE_FUNCTION
-
DROP_FUNCTION
public static final PrivilegeType DROP_FUNCTION
-
CREATE_TRIGGER
public static final PrivilegeType CREATE_TRIGGER
-
DROP_TRIGGER
public static final PrivilegeType DROP_TRIGGER
-
START_TRIGGER
public static final PrivilegeType START_TRIGGER
-
STOP_TRIGGER
public static final PrivilegeType STOP_TRIGGER
-
CREATE_CONTINUOUS_QUERY
public static final PrivilegeType CREATE_CONTINUOUS_QUERY
-
DROP_CONTINUOUS_QUERY
public static final PrivilegeType DROP_CONTINUOUS_QUERY
-
ALL
public static final PrivilegeType ALL
-
DELETE_DATABASE
public static final PrivilegeType DELETE_DATABASE
-
ALTER_TIMESERIES
public static final PrivilegeType ALTER_TIMESERIES
-
UPDATE_TEMPLATE
public static final PrivilegeType UPDATE_TEMPLATE
-
READ_TEMPLATE
public static final PrivilegeType READ_TEMPLATE
-
APPLY_TEMPLATE
public static final PrivilegeType APPLY_TEMPLATE
-
READ_TEMPLATE_APPLICATION
public static final PrivilegeType READ_TEMPLATE_APPLICATION
-
SHOW_CONTINUOUS_QUERIES
public static final PrivilegeType SHOW_CONTINUOUS_QUERIES
-
-
Method Detail
-
values
public static PrivilegeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PrivilegeType c : PrivilegeType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrivilegeType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
isPathRelevant
public static boolean isPathRelevant(int type)
Some privileges need a seriesPath as parameter, while others do not. This method returns which privileges need a seriesPath.- Parameters:
type- An integer that represents a privilege.- Returns:
- Whether this privilege need a seriesPath or not.
-
isPathRelevant
public boolean isPathRelevant()
-
-