|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.blur.thrift.generated.User
public class User
The user object is used to pass user context to server side session.
Nested Class Summary | |
---|---|
static class |
User._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
Map<String,String> |
attributes
map of user attributes. |
static Map<User._Fields,FieldMetaData> |
metaDataMap
|
String |
username
username. |
Constructor Summary | |
---|---|
User()
|
|
User(String username,
Map<String,String> attributes)
|
|
User(User other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
clear()
Return to the state of having just been initialized, as though you had just called the default constructor. |
int |
compareTo(User other)
|
User |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(User that)
|
User._Fields |
fieldForId(int fieldId)
Get the F instance that corresponds to fieldId. |
Map<String,String> |
getAttributes()
map of user attributes. |
int |
getAttributesSize()
|
Object |
getFieldValue(User._Fields field)
Get a field's value by field variable. |
String |
getUsername()
username. |
int |
hashCode()
|
boolean |
isSet(User._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetAttributes()
Returns true if field attributes is set (has been assigned a value) and false otherwise |
boolean |
isSetUsername()
Returns true if field username is set (has been assigned a value) and false otherwise |
void |
putToAttributes(String key,
String val)
|
void |
read(TProtocol iprot)
Reads the TObject from the given input protocol. |
User |
setAttributes(Map<String,String> attributes)
map of user attributes. |
void |
setAttributesIsSet(boolean value)
|
void |
setFieldValue(User._Fields field,
Object value)
Set a field's value by field variable. |
User |
setUsername(String username)
username. |
void |
setUsernameIsSet(boolean value)
|
String |
toString()
|
void |
unsetAttributes()
|
void |
unsetUsername()
|
void |
validate()
|
void |
write(TProtocol oprot)
Writes the objects out to the protocol |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String username
public Map<String,String> attributes
public static final Map<User._Fields,FieldMetaData> metaDataMap
Constructor Detail |
---|
public User()
public User(String username, Map<String,String> attributes)
public User(User other)
Method Detail |
---|
public User deepCopy()
deepCopy
in interface TBase<User,User._Fields>
public void clear()
TBase
clear
in interface TBase<User,User._Fields>
public String getUsername()
public User setUsername(String username)
public void unsetUsername()
public boolean isSetUsername()
public void setUsernameIsSet(boolean value)
public int getAttributesSize()
public void putToAttributes(String key, String val)
public Map<String,String> getAttributes()
public User setAttributes(Map<String,String> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(boolean value)
public void setFieldValue(User._Fields field, Object value)
TBase
setFieldValue
in interface TBase<User,User._Fields>
public Object getFieldValue(User._Fields field)
TBase
getFieldValue
in interface TBase<User,User._Fields>
public boolean isSet(User._Fields field)
isSet
in interface TBase<User,User._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(User that)
public int hashCode()
hashCode
in class Object
public int compareTo(User other)
compareTo
in interface Comparable<User>
public User._Fields fieldForId(int fieldId)
TBase
fieldForId
in interface TBase<User,User._Fields>
public void read(TProtocol iprot) throws TException
TBase
read
in interface TBase<User,User._Fields>
iprot
- Input protocol
TException
public void write(TProtocol oprot) throws TException
TBase
write
in interface TBase<User,User._Fields>
oprot
- Output protocol
TException
public String toString()
toString
in class Object
public void validate() throws TException
TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |