public class HasPermissionResponse extends Object implements org.apache.avro.generic.IndexedRecord
GPUdb.hasPermission(HasPermissionRequest)
.Modifier and Type | Class and Description |
---|---|
static class |
HasPermissionResponse.HasPermission
Indicates whether the specified user has the specified permission on the
specified target.
|
Constructor and Description |
---|
HasPermissionResponse()
Constructs a HasPermissionResponse object with default 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.
|
Map<String,String> |
getFilters() |
boolean |
getHasPermission() |
Map<String,String> |
getInfo() |
String |
getObject() |
String |
getObjectType() |
String |
getPermission() |
String |
getPrincipal() |
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.
|
HasPermissionResponse |
setFilters(Map<String,String> filters) |
HasPermissionResponse |
setHasPermission(boolean hasPermission) |
HasPermissionResponse |
setInfo(Map<String,String> info) |
HasPermissionResponse |
setObject(String object) |
HasPermissionResponse |
setObjectType(String objectType) |
HasPermissionResponse |
setPermission(String permission) |
HasPermissionResponse |
setPrincipal(String principal) |
String |
toString() |
public HasPermissionResponse()
public static org.apache.avro.Schema getClassSchema()
public String getPrincipal()
principal
public HasPermissionResponse setPrincipal(String principal)
principal
- Value of principal
this
to mimic the builder pattern.public String getObject()
object
public HasPermissionResponse setObject(String object)
object
- Fully-qualified value of object
this
to mimic the builder pattern.public String getObjectType()
objectType
public HasPermissionResponse setObjectType(String objectType)
objectType
- Value of objectType
this
to mimic the builder pattern.public String getPermission()
permission
public HasPermissionResponse setPermission(String permission)
permission
- Value of permission
this
to mimic the builder pattern.public boolean getHasPermission()
public HasPermissionResponse setHasPermission(boolean hasPermission)
public Map<String,String> getFilters()
public HasPermissionResponse setFilters(Map<String,String> filters)
filters
- Map of column/filters that have been granted.this
to mimic the builder pattern.public HasPermissionResponse setInfo(Map<String,String> info)
info
- Additional information.this
to mimic the builder pattern.public org.apache.avro.Schema getSchema()
getSchema
in interface org.apache.avro.generic.GenericContainer
public Object get(int index)
get
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to getIndexOutOfBoundsException
public void put(int index, Object value)
put
in interface org.apache.avro.generic.IndexedRecord
index
- the position of the field to setvalue
- the value to setIndexOutOfBoundsException
Copyright © 2024. All rights reserved.