public class PrincipalPrivilegeSet extends Object implements org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>, Serializable, 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 Map<PrincipalPrivilegeSet._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
Constructor and Description |
---|
PrincipalPrivilegeSet() |
PrincipalPrivilegeSet(Map<String,List<PrivilegeGrantInfo>> userPrivileges,
Map<String,List<PrivilegeGrantInfo>> groupPrivileges,
Map<String,List<PrivilegeGrantInfo>> rolePrivileges) |
PrincipalPrivilegeSet(PrincipalPrivilegeSet other)
Performs a deep copy on other.
|
public static final Map<PrincipalPrivilegeSet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public PrincipalPrivilegeSet()
public PrincipalPrivilegeSet(Map<String,List<PrivilegeGrantInfo>> userPrivileges, Map<String,List<PrivilegeGrantInfo>> groupPrivileges, Map<String,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(String key, List<PrivilegeGrantInfo> val)
public Map<String,List<PrivilegeGrantInfo>> getUserPrivileges()
public void setUserPrivileges(Map<String,List<PrivilegeGrantInfo>> userPrivileges)
public void unsetUserPrivileges()
public boolean isSetUserPrivileges()
public void setUserPrivilegesIsSet(boolean value)
public int getGroupPrivilegesSize()
public void putToGroupPrivileges(String key, List<PrivilegeGrantInfo> val)
public Map<String,List<PrivilegeGrantInfo>> getGroupPrivileges()
public void setGroupPrivileges(Map<String,List<PrivilegeGrantInfo>> groupPrivileges)
public void unsetGroupPrivileges()
public boolean isSetGroupPrivileges()
public void setGroupPrivilegesIsSet(boolean value)
public int getRolePrivilegesSize()
public void putToRolePrivileges(String key, List<PrivilegeGrantInfo> val)
public Map<String,List<PrivilegeGrantInfo>> getRolePrivileges()
public void setRolePrivileges(Map<String,List<PrivilegeGrantInfo>> rolePrivileges)
public void unsetRolePrivileges()
public boolean isSetRolePrivileges()
public void setRolePrivilegesIsSet(boolean value)
public void setFieldValue(PrincipalPrivilegeSet._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<PrincipalPrivilegeSet,PrincipalPrivilegeSet._Fields>
public 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(PrincipalPrivilegeSet that)
public int compareTo(PrincipalPrivilegeSet other)
compareTo
in interface 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 void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2017 The Apache Software Foundation. All rights reserved.