public class PrincipalPrivilegeSet extends java.lang.Object implements org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>, java.io.Serializable, java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
PrincipalPrivilegeSet._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Map<PrincipalPrivilegeSet._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
PrincipalPrivilegeSet() |
PrincipalPrivilegeSet(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> userPrivileges,
java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> groupPrivileges,
java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> rolePrivileges) |
PrincipalPrivilegeSet(PrincipalPrivilegeSet other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
compareTo(PrincipalPrivilegeSet other) |
PrincipalPrivilegeSet |
deepCopy() |
boolean |
equals(java.lang.Object that) |
boolean |
equals(PrincipalPrivilegeSet that) |
PrincipalPrivilegeSet._Fields |
fieldForId(int fieldId) |
java.lang.Object |
getFieldValue(PrincipalPrivilegeSet._Fields field) |
java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> |
getGroupPrivileges() |
int |
getGroupPrivilegesSize() |
java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> |
getRolePrivileges() |
int |
getRolePrivilegesSize() |
java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> |
getUserPrivileges() |
int |
getUserPrivilegesSize() |
int |
hashCode() |
boolean |
isSet(PrincipalPrivilegeSet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetGroupPrivileges()
Returns true if field groupPrivileges is set (has been assigned a value) and false otherwise
|
boolean |
isSetRolePrivileges()
Returns true if field rolePrivileges is set (has been assigned a value) and false otherwise
|
boolean |
isSetUserPrivileges()
Returns true if field userPrivileges is set (has been assigned a value) and false otherwise
|
void |
putToGroupPrivileges(java.lang.String key,
java.util.List<PrivilegeGrantInfo> val) |
void |
putToRolePrivileges(java.lang.String key,
java.util.List<PrivilegeGrantInfo> val) |
void |
putToUserPrivileges(java.lang.String key,
java.util.List<PrivilegeGrantInfo> val) |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
void |
setFieldValue(PrincipalPrivilegeSet._Fields field,
java.lang.Object value) |
void |
setGroupPrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> groupPrivileges) |
void |
setGroupPrivilegesIsSet(boolean value) |
void |
setRolePrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> rolePrivileges) |
void |
setRolePrivilegesIsSet(boolean value) |
void |
setUserPrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> userPrivileges) |
void |
setUserPrivilegesIsSet(boolean value) |
java.lang.String |
toString() |
void |
unsetGroupPrivileges() |
void |
unsetRolePrivileges() |
void |
unsetUserPrivileges() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public static final java.util.Map<PrincipalPrivilegeSet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PrincipalPrivilegeSet()
public PrincipalPrivilegeSet(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> userPrivileges, java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> groupPrivileges, java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> rolePrivileges)
public PrincipalPrivilegeSet(PrincipalPrivilegeSet other)
public PrincipalPrivilegeSet deepCopy()
deepCopy
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public int getUserPrivilegesSize()
public void putToUserPrivileges(java.lang.String key, java.util.List<PrivilegeGrantInfo> val)
public java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> getUserPrivileges()
public void setUserPrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> userPrivileges)
public void unsetUserPrivileges()
public boolean isSetUserPrivileges()
public void setUserPrivilegesIsSet(boolean value)
public int getGroupPrivilegesSize()
public void putToGroupPrivileges(java.lang.String key, java.util.List<PrivilegeGrantInfo> val)
public java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> getGroupPrivileges()
public void setGroupPrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> groupPrivileges)
public void unsetGroupPrivileges()
public boolean isSetGroupPrivileges()
public void setGroupPrivilegesIsSet(boolean value)
public int getRolePrivilegesSize()
public void putToRolePrivileges(java.lang.String key, java.util.List<PrivilegeGrantInfo> val)
public java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> getRolePrivileges()
public void setRolePrivileges(java.util.Map<java.lang.String,java.util.List<PrivilegeGrantInfo>> rolePrivileges)
public void unsetRolePrivileges()
public boolean isSetRolePrivileges()
public void setRolePrivilegesIsSet(boolean value)
public void setFieldValue(PrincipalPrivilegeSet._Fields field, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public java.lang.Object getFieldValue(PrincipalPrivilegeSet._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public boolean isSet(PrincipalPrivilegeSet._Fields field)
isSet
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public boolean equals(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(PrincipalPrivilegeSet that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(PrincipalPrivilegeSet other)
compareTo
in interface java.lang.Comparable<PrincipalPrivilegeSet>
public PrincipalPrivilegeSet._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._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<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
org.apache.thrift.TException
public java.lang.String toString()
toString
in class java.lang.Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2012 The Apache Software Foundation