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