Enum NamespaceOperation
- java.lang.Object
-
- java.lang.Enum<NamespaceOperation>
-
- org.apache.pulsar.common.policies.data.NamespaceOperation
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NamespaceOperation>
public enum NamespaceOperation extends java.lang.Enum<NamespaceOperation>
Namespace authorization operations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD_BUNDLECLEAR_BACKLOGCREATE_TOPICDELETE_BUNDLEDELETE_TOPICGET_BUNDLEGET_PERMISSIONGET_TOPICGET_TOPICSGRANT_PERMISSIONPACKAGESREVOKE_PERMISSIONUNSUBSCRIBE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NamespaceOperationvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NamespaceOperation[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_TOPIC
public static final NamespaceOperation CREATE_TOPIC
-
GET_TOPIC
public static final NamespaceOperation GET_TOPIC
-
GET_TOPICS
public static final NamespaceOperation GET_TOPICS
-
DELETE_TOPIC
public static final NamespaceOperation DELETE_TOPIC
-
ADD_BUNDLE
public static final NamespaceOperation ADD_BUNDLE
-
DELETE_BUNDLE
public static final NamespaceOperation DELETE_BUNDLE
-
GET_BUNDLE
public static final NamespaceOperation GET_BUNDLE
-
GET_PERMISSION
public static final NamespaceOperation GET_PERMISSION
-
GRANT_PERMISSION
public static final NamespaceOperation GRANT_PERMISSION
-
REVOKE_PERMISSION
public static final NamespaceOperation REVOKE_PERMISSION
-
CLEAR_BACKLOG
public static final NamespaceOperation CLEAR_BACKLOG
-
UNSUBSCRIBE
public static final NamespaceOperation UNSUBSCRIBE
-
PACKAGES
public static final NamespaceOperation PACKAGES
-
-
Method Detail
-
values
public static NamespaceOperation[] 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 (NamespaceOperation c : NamespaceOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamespaceOperation 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
-
-