public class RevokePermissionRequest extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.revokePermission.
Revoke user or role the specified permission on the specified object.
| Modifier and Type | Class and Description |
|---|---|
static class |
RevokePermissionRequest.ObjectType
A set of string constants for the
RevokePermissionRequest
parameter objectType. |
static class |
RevokePermissionRequest.Options
A set of string constants for the
RevokePermissionRequest
parameter options. |
static class |
RevokePermissionRequest.Permission
A set of string constants for the
RevokePermissionRequest
parameter permission. |
| Constructor and Description |
|---|
RevokePermissionRequest()
Constructs a RevokePermissionRequest object with default parameters.
|
RevokePermissionRequest(String principal,
String object,
String objectType,
String permission,
Map<String,String> options)
Constructs a RevokePermissionRequest object with the specified
parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
get(int index)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
static org.apache.avro.Schema |
getClassSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
String |
getObject()
Name of object permission is being revoked from.
|
String |
getObjectType()
The type of object being revoked.
|
Map<String,String> |
getOptions()
Optional parameters.
|
String |
getPermission()
Permission being revoked.
|
String |
getPrincipal()
Name of the user or role for which the permission is being revoked.
|
org.apache.avro.Schema |
getSchema()
This method supports the Avro framework and is not intended to be called
directly by the user.
|
int |
hashCode() |
void |
put(int index,
Object value)
This method supports the Avro framework and is not intended to be called
directly by the user.
|
RevokePermissionRequest |
setObject(String object)
Name of object permission is being revoked from.
|
RevokePermissionRequest |
setObjectType(String objectType)
The type of object being revoked.
|
RevokePermissionRequest |
setOptions(Map<String,String> options)
Optional parameters.
|
RevokePermissionRequest |
setPermission(String permission)
Permission being revoked.
|
RevokePermissionRequest |
setPrincipal(String principal)
Name of the user or role for which the permission is being revoked.
|
String |
toString() |
public RevokePermissionRequest()
public RevokePermissionRequest(String principal, String object, String objectType, String permission, Map<String,String> options)
principal - Name of the user or role for which the permission is
being revoked. Must be an existing user or role. The
default value is ''.object - Name of object permission is being revoked from. It is
recommended to use a fully-qualified name when possible.objectType - The type of object being revoked.
Supported values:
CONTEXT: Context
CREDENTIAL:
Credential
DATASINK: Data
Sink
DATASOURCE:
Data Source
DIRECTORY: KIFS
File Directory
GRAPH: A Graph
object
PROC: UDF Procedure
SCHEMA: Schema
SQL_PROC: SQL
Procedure
SYSTEM:
System-level access
TABLE: Database
Table
TABLE_MONITOR: Table monitor
permission - Permission being revoked.
Supported values:
ADMIN: Full
read/write and administrative access on the
object.
CONNECT: Connect
access on the given data source or data sink.
CREATE: Ability to
create new objects of this type.
DELETE: Delete rows
from tables.
EXECUTE: Ability
to Execute the Procedure object.
INSERT: Insert
access to tables.
MONITOR: Monitor
logs and statistics.
READ: Ability to
read, list and use the object.
SEND_ALERT:
Ability to send system alerts.
UPDATE: Update
access to the table.
USER_ADMIN:
Access to administer users and roles that do
not have system_admin permission.
WRITE: Access to
write, change and delete objects.
options - Optional parameters.
COLUMNS: Revoke table
security from these columns, comma-separated.
The default value is ''.
Map.public static org.apache.avro.Schema getClassSchema()
public String getPrincipal()
principal.public RevokePermissionRequest setPrincipal(String principal)
principal - The new value for principal.this to mimic the builder pattern.public String getObject()
object.public RevokePermissionRequest setObject(String object)
object - The new value for object.this to mimic the builder pattern.public String getObjectType()
CONTEXT: Context
CREDENTIAL: Credential
DATASINK: Data Sink
DATASOURCE: Data Source
DIRECTORY: KIFS File Directory
GRAPH: A Graph object
PROC: UDF Procedure
SCHEMA: Schema
SQL_PROC: SQL Procedure
SYSTEM: System-level access
TABLE: Database Table
TABLE_MONITOR: Table monitor
objectType.public RevokePermissionRequest setObjectType(String objectType)
CONTEXT: Context
CREDENTIAL: Credential
DATASINK: Data Sink
DATASOURCE: Data Source
DIRECTORY: KIFS File Directory
GRAPH: A Graph object
PROC: UDF Procedure
SCHEMA: Schema
SQL_PROC: SQL Procedure
SYSTEM: System-level access
TABLE: Database Table
TABLE_MONITOR: Table monitor
objectType - The new value for objectType.this to mimic the builder pattern.public String getPermission()
ADMIN: Full read/write and
administrative access on the object.
CONNECT: Connect access on the given
data source or data sink.
CREATE: Ability to create new objects
of this type.
DELETE: Delete rows from tables.
EXECUTE: Ability to Execute the
Procedure object.
INSERT: Insert access to tables.
MONITOR: Monitor logs and statistics.
READ: Ability to read, list and use the
object.
SEND_ALERT: Ability to send system
alerts.
UPDATE: Update access to the table.
USER_ADMIN: Access to administer
users and roles that do not have system_admin permission.
WRITE: Access to write, change and
delete objects.
permission.public RevokePermissionRequest setPermission(String permission)
ADMIN: Full read/write and
administrative access on the object.
CONNECT: Connect access on the given
data source or data sink.
CREATE: Ability to create new objects
of this type.
DELETE: Delete rows from tables.
EXECUTE: Ability to Execute the
Procedure object.
INSERT: Insert access to tables.
MONITOR: Monitor logs and statistics.
READ: Ability to read, list and use the
object.
SEND_ALERT: Ability to send system
alerts.
UPDATE: Update access to the table.
USER_ADMIN: Access to administer
users and roles that do not have system_admin permission.
WRITE: Access to write, change and
delete objects.
permission - The new value for permission.this to mimic the builder pattern.public Map<String,String> getOptions()
COLUMNS: Revoke table security from
these columns, comma-separated. The default value is ''.
Map.options.public RevokePermissionRequest setOptions(Map<String,String> options)
COLUMNS: Revoke table security from
these columns, comma-separated. The default value is ''.
Map.options - The new value for options.this to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema in interface org.apache.avro.generic.GenericContainerpublic Object get(int index)
get in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to getIndexOutOfBoundsExceptionpublic void put(int index,
Object value)
put in interface org.apache.avro.generic.IndexedRecordindex - the position of the field to setvalue - the value to setIndexOutOfBoundsExceptionCopyright © 2025. All rights reserved.