Class Privileges.ProduceTopic
java.lang.Object
org.apache.gravitino.authorization.Privileges.GenericPrivilege<Privileges.ProduceTopic>
org.apache.gravitino.authorization.Privileges.ProduceTopic
- All Implemented Interfaces:
Privilege
- Enclosing class:
- Privileges
public static class Privileges.ProduceTopic
extends Privileges.GenericPrivilege<Privileges.ProduceTopic>
The privilege to produce to a topic.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.gravitino.authorization.Privilege
Privilege.Condition, Privilege.Name
-
Method Summary
Modifier and TypeMethodDescriptionstatic Privileges.ProduceTopic
allow()
boolean
canBindTo
(MetadataObject.Type type) If the privilege can bind to a securable object, then this method will return true, otherwise false.static Privileges.ProduceTopic
deny()
Methods inherited from class org.apache.gravitino.authorization.Privileges.GenericPrivilege
condition, equals, hashCode, name, simpleString
-
Method Details
-
allow
- Returns:
- The instance with allow condition of the privilege.
-
deny
- Returns:
- The instance with deny condition of the privilege.
-
canBindTo
Description copied from interface:Privilege
If the privilege can bind to a securable object, then this method will return true, otherwise false.- Parameters:
type
- The securable object type.- Returns:
- It will return true if the privilege can bind to a securable object, otherwise false.
-