Class Privileges
java.lang.Object
org.apache.gravitino.authorization.Privileges
The helper class for
Privilege
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The privilege to consume from a topic.static class
The privilege to create a catalog.static class
The privilege to create a fileset.static class
The privilege to create a modelstatic class
The privilege to create a model versionstatic class
The privilege to create a role.static class
The privilege to create a schema.static class
The privilege to create a table.static class
The privilege to create a topic.static class
Abstract class representing a generic privilege.static class
The privilege to grant or revoke a role for the user or the group.static class
The privilege to manage groups.static class
The privilege to manage users.static class
The privilege to write data to a table or modify the table schema.static class
The privilege to produce to a topic.static class
The privilege to read a fileset.static class
The privilege to select data from a table.static class
The privilege to use a catalog.static class
The privilege to view the metadata of the model and download all the model versionsstatic class
The privilege to use a schema.static class
The privilege to write a fileset. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Privilege
Returns the Privilege with allow condition from the string representation.static Privilege
allow
(Privilege.Name name) Returns the Privilege with allow condition from the `Privilege.Name`.static Privilege
Returns the Privilege with deny condition from the string representation.static Privilege
deny
(Privilege.Name name) Returns the Privilege with deny condition from the `Privilege.Name`.
-
Constructor Details
-
Privileges
public Privileges()
-
-
Method Details
-
allow
Returns the Privilege with allow condition from the string representation.- Parameters:
privilege
- The string representation of the privilege.- Returns:
- The Privilege.
-
allow
Returns the Privilege with allow condition from the `Privilege.Name`.- Parameters:
name
- The `Privilege.Name` of the privilege.- Returns:
- The Privilege.
-
deny
Returns the Privilege with deny condition from the string representation.- Parameters:
privilege
- The string representation of the privilege.- Returns:
- The Privilege.
-
deny
Returns the Privilege with deny condition from the `Privilege.Name`.- Parameters:
name
- The `Privilege.Name` of the privilege.- Returns:
- The Privilege.
-