public class Privileges
extends java.lang.Object
Privilege
.Modifier and Type | Class and Description |
---|---|
static class |
Privileges.ConsumeTopic
The privilege to consume from a topic.
|
static class |
Privileges.CreateCatalog
The privilege to create a catalog.
|
static class |
Privileges.CreateFileset
The privilege to create a fileset.
|
static class |
Privileges.CreateRole
The privilege to create a role.
|
static class |
Privileges.CreateSchema
The privilege to create a schema.
|
static class |
Privileges.CreateTable
The privilege to create a table.
|
static class |
Privileges.CreateTopic
The privilege to create a topic.
|
static class |
Privileges.GenericPrivilege<T extends Privileges.GenericPrivilege<T>>
Abstract class representing a generic privilege.
|
static class |
Privileges.ManageGrants
The privilege to grant or revoke a role for the user or the group.
|
static class |
Privileges.ManageGroups
The privilege to manage groups.
|
static class |
Privileges.ManageUsers
The privilege to manage users.
|
static class |
Privileges.ModifyTable
The privilege to execute SQL `ALTER`, `INSERT`, `UPDATE`, or `DELETE` for a table.
|
static class |
Privileges.ProduceTopic
The privilege to produce to a topic.
|
static class |
Privileges.ReadFileset
The privilege to read a fileset.
|
static class |
Privileges.SelectTable
The privilege to select data from a table.
|
static class |
Privileges.UseCatalog
The privilege to use a catalog.
|
static class |
Privileges.UseSchema
The privilege to use a schema.
|
static class |
Privileges.WriteFileset
The privilege to write a fileset.
|
Constructor and Description |
---|
Privileges() |
Modifier and Type | Method and Description |
---|---|
static Privilege |
allow(Privilege.Name name)
Returns the Privilege with allow condition from the `Privilege.Name`.
|
static Privilege |
allow(java.lang.String privilege)
Returns the Privilege with allow condition from the string representation.
|
static Privilege |
deny(Privilege.Name name)
Returns the Privilege with deny condition from the `Privilege.Name`.
|
static Privilege |
deny(java.lang.String privilege)
Returns the Privilege with deny condition from the string representation.
|
public static Privilege allow(java.lang.String privilege)
privilege
- The string representation of the privilege.public static Privilege allow(Privilege.Name name)
name
- The `Privilege.Name` of the privilege.public static Privilege deny(java.lang.String privilege)
privilege
- The string representation of the privilege.public static Privilege deny(Privilege.Name name)
name
- The `Privilege.Name` of the privilege.