com.vodafone360.people.datatypes
Class AuthSessionHolder

java.lang.Object
  extended by com.vodafone360.people.datatypes.BaseDataType
      extended by com.vodafone360.people.datatypes.AuthSessionHolder

public class AuthSessionHolder
extends BaseDataType

BaseDataType encapsulating People Session credentials returned as a result of successful sign-in/sign-up.


Nested Class Summary
private static class AuthSessionHolder.Tags
          Tags associated with AuthSessionHolder representing data items associated with AuthSessionHolder item returned from server.
 
Field Summary
 java.lang.String sessionID
           
 java.lang.String sessionSecret
           
 long userID
           
 java.lang.String userName
           
 
Constructor Summary
AuthSessionHolder()
           
 
Method Summary
 AuthSessionHolder createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
          Create AuthSessionHolder from Hash-table (generated from Hessian data).
private  AuthSessionHolder.Tags findTag(java.lang.String tag)
          Find Tags item for specified String.
 java.lang.String name()
          Return name of the current Data-type.
private  void setValue(AuthSessionHolder.Tags tag, java.lang.Object value)
          Sets the value of the member data item associated with the specified tag.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

userID

public long userID

sessionSecret

public java.lang.String sessionSecret

userName

public java.lang.String userName

sessionID

public java.lang.String sessionID
Constructor Detail

AuthSessionHolder

public AuthSessionHolder()
Method Detail

findTag

private AuthSessionHolder.Tags findTag(java.lang.String tag)
Find Tags item for specified String.

Parameters:
tag - String value to find in Tags items.
Returns:
Tags item for specified String, null otherwise.

name

public java.lang.String name()
Return name of the current Data-type.

Specified by:
name in class BaseDataType
Returns:
String containing name of the data-type.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

createFromHashtable

public AuthSessionHolder createFromHashtable(java.util.Hashtable<java.lang.String,java.lang.Object> hash)
Create AuthSessionHolder from Hash-table (generated from Hessian data).

Parameters:
hash - Hash-table containing AuthSessionHolder data.
Returns:
AuthSessionHolder generated from supplied Hash-table.

setValue

private void setValue(AuthSessionHolder.Tags tag,
                      java.lang.Object value)
Sets the value of the member data item associated with the specified tag.

Parameters:
tag - Current tag.
val - Value associated with the tag.


JavaDoc