Predictions 4.10.0.0

hirondelle.predict.main.preferences
Class Preferences

Object
  extended by hirondelle.predict.main.preferences.Preferences

public final class Preferences
extends Object

User preferences.

User preferences are placed into session scope by this app's implementation of LoginTasks.


Field Summary
static String SCREEN_NAME
          Key under which user's screen name is saved in session scope.
 
Constructor Summary
Preferences(Id aUserId, SafeText aLoginName, SafeText aScreenName)
          Constructor.
 
Method Summary
 boolean equals(Object aThat)
           
 SafeText getLoginName()
          Return the login name passed to the constructor.
 SafeText getScreenName()
          Return the screen name passed to the constructor.
 Id getUserId()
          Return the user id passed to the constructor.
 int hashCode()
           
 String toString()
          Intended for debugging only.
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SCREEN_NAME

public static final String SCREEN_NAME
Key under which user's screen name is saved in session scope.

See Also:
Constant Field Values
Constructor Detail

Preferences

public Preferences(Id aUserId,
                   SafeText aLoginName,
                   SafeText aScreenName)
            throws ModelCtorException
Constructor.

Parameters:
aUserId - required.
aLoginName - required, 6..50 characters, no spaces.
aScreenName - optional, 6..50 characters.
Throws:
ModelCtorException
Method Detail

getUserId

public Id getUserId()
Return the user id passed to the constructor.


getLoginName

public SafeText getLoginName()
Return the login name passed to the constructor.


getScreenName

public SafeText getScreenName()
Return the screen name passed to the constructor.


toString

public String toString()
Intended for debugging only.

Overrides:
toString in class Object

equals

public boolean equals(Object aThat)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27