public class RolePrincipalGrant extends Object implements org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>, Serializable, Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
RolePrincipalGrant._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static Map<RolePrincipalGrant._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
RolePrincipalGrant() |
RolePrincipalGrant(RolePrincipalGrant other)
Performs a deep copy on other.
|
RolePrincipalGrant(String roleName,
String principalName,
PrincipalType principalType,
boolean grantOption,
int grantTime,
String grantorName,
PrincipalType grantorPrincipalType) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(RolePrincipalGrant other) |
RolePrincipalGrant |
deepCopy() |
boolean |
equals(Object that) |
boolean |
equals(RolePrincipalGrant that) |
RolePrincipalGrant._Fields |
fieldForId(int fieldId) |
Object |
getFieldValue(RolePrincipalGrant._Fields field) |
String |
getGrantorName() |
PrincipalType |
getGrantorPrincipalType() |
int |
getGrantTime() |
String |
getPrincipalName() |
PrincipalType |
getPrincipalType() |
String |
getRoleName() |
int |
hashCode() |
boolean |
isGrantOption() |
boolean |
isSet(RolePrincipalGrant._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantOption()
Returns true if field grantOption is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantorName()
Returns true if field grantorName is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantorPrincipalType()
Returns true if field grantorPrincipalType is set (has been assigned a value) and false otherwise
|
boolean |
isSetGrantTime()
Returns true if field grantTime is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalName()
Returns true if field principalName is set (has been assigned a value) and false otherwise
|
boolean |
isSetPrincipalType()
Returns true if field principalType is set (has been assigned a value) and false otherwise
|
boolean |
isSetRoleName()
Returns true if field roleName is set (has been assigned a value) and false otherwise
|
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(RolePrincipalGrant._Fields field,
Object value) |
void |
setGrantOption(boolean grantOption) |
void |
setGrantOptionIsSet(boolean value) |
void |
setGrantorName(String grantorName) |
void |
setGrantorNameIsSet(boolean value) |
void |
setGrantorPrincipalType(PrincipalType grantorPrincipalType) |
void |
setGrantorPrincipalTypeIsSet(boolean value) |
void |
setGrantTime(int grantTime) |
void |
setGrantTimeIsSet(boolean value) |
void |
setPrincipalName(String principalName) |
void |
setPrincipalNameIsSet(boolean value) |
void |
setPrincipalType(PrincipalType principalType) |
void |
setPrincipalTypeIsSet(boolean value) |
void |
setRoleName(String roleName) |
void |
setRoleNameIsSet(boolean value) |
String |
toString() |
void |
unsetGrantOption() |
void |
unsetGrantorName() |
void |
unsetGrantorPrincipalType() |
void |
unsetGrantTime() |
void |
unsetPrincipalName() |
void |
unsetPrincipalType() |
void |
unsetRoleName() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final Map<RolePrincipalGrant._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public RolePrincipalGrant()
public RolePrincipalGrant(String roleName, String principalName, PrincipalType principalType, boolean grantOption, int grantTime, String grantorName, PrincipalType grantorPrincipalType)
public RolePrincipalGrant(RolePrincipalGrant other)
public RolePrincipalGrant deepCopy()
deepCopy
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public String getRoleName()
public void setRoleName(String roleName)
public void unsetRoleName()
public boolean isSetRoleName()
public void setRoleNameIsSet(boolean value)
public String getPrincipalName()
public void setPrincipalName(String principalName)
public void unsetPrincipalName()
public boolean isSetPrincipalName()
public void setPrincipalNameIsSet(boolean value)
public PrincipalType getPrincipalType()
PrincipalType
public void setPrincipalType(PrincipalType principalType)
PrincipalType
public void unsetPrincipalType()
public boolean isSetPrincipalType()
public void setPrincipalTypeIsSet(boolean value)
public boolean isGrantOption()
public void setGrantOption(boolean grantOption)
public void unsetGrantOption()
public boolean isSetGrantOption()
public void setGrantOptionIsSet(boolean value)
public int getGrantTime()
public void setGrantTime(int grantTime)
public void unsetGrantTime()
public boolean isSetGrantTime()
public void setGrantTimeIsSet(boolean value)
public String getGrantorName()
public void setGrantorName(String grantorName)
public void unsetGrantorName()
public boolean isSetGrantorName()
public void setGrantorNameIsSet(boolean value)
public PrincipalType getGrantorPrincipalType()
PrincipalType
public void setGrantorPrincipalType(PrincipalType grantorPrincipalType)
PrincipalType
public void unsetGrantorPrincipalType()
public boolean isSetGrantorPrincipalType()
public void setGrantorPrincipalTypeIsSet(boolean value)
public void setFieldValue(RolePrincipalGrant._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public Object getFieldValue(RolePrincipalGrant._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public boolean isSet(RolePrincipalGrant._Fields field)
isSet
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public boolean equals(RolePrincipalGrant that)
public int compareTo(RolePrincipalGrant other)
compareTo
in interface Comparable<RolePrincipalGrant>
public RolePrincipalGrant._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<RolePrincipalGrant,RolePrincipalGrant._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.