|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
STATE_ID_SOURCE_REQUEST
|
static int |
STATE_ID_SOURCE_REQUEST_THEN_SESSION
|
static int |
STATE_ID_SOURCE_SESSION
|
static int |
STATE_ID_SOURCE_SESSION_THEN_REQUEST
|
static int |
STATE_ID_SOURCE_UNDEFINED
|
Method Summary | |
void |
addAuthToken(java.lang.String authToken)
Adds an authentication token to this user session. |
void |
addStateVisit(IState state,
IResponseData responseData)
Records a new state visit, adding it to the history of this session. |
IStateVisit |
getHistory(IState state)
Returns the most recent state visit which contains an immediate child of the given state. |
IStateVisit |
getHistoryStar(IState state)
Returns the most recent state visit which contains a child of the given state. |
java.lang.String |
getId()
The sessionId for this session. |
java.util.Locale |
getLocale()
Gets the Locale to be used with this UserSession. |
IStateVisit |
getMostRecentVisit()
Returns the most recently added StateVisit. |
ISessionData |
getSessionData()
Returns the SessionData associated with this UserSession. |
int |
getStateIdSource()
Returns the stateIdSource to be used with this user session. |
boolean |
hasAllAuthTokens(java.util.Collection tokens)
Determines whether this user session has all the given authentication tokens. |
boolean |
hasAuthToken(java.lang.String authToken)
Determines whether this user session has a given authentication token. |
void |
removeAllAuthTokens()
Removes all authTokens from this user session. |
void |
removeAuthToken(java.lang.String authToken)
Removes an authentication token from this user session. |
void |
setLocale(java.util.Locale locale)
Sets the Locale to be used with this UserSession. |
void |
setStateIdSource(int stateIdSource)
Sets the stateIdSource to be used with this user session. |
boolean |
wasStateVisited(IState state)
Determines whether the given state has been visited in this session. |
Field Detail |
public static final int STATE_ID_SOURCE_UNDEFINED
public static final int STATE_ID_SOURCE_REQUEST
public static final int STATE_ID_SOURCE_SESSION
public static final int STATE_ID_SOURCE_REQUEST_THEN_SESSION
public static final int STATE_ID_SOURCE_SESSION_THEN_REQUEST
Method Detail |
public IStateVisit getHistory(IState state)
If no such state visit exists, this method returns an IStateVisit that contains the given state and an empty IResponseData.
state
- the state being entered
public IStateVisit getHistoryStar(IState state)
If no such state visit exists, this method returns an IStateVisit that contains the given state and an empty IResponseData.
state
- the state being visited
public java.lang.String getId()
public void addStateVisit(IState state, IResponseData responseData)
state
- the state being visitedresponseData
- the response data being given to the viewpublic void addAuthToken(java.lang.String authToken)
authToken
- the token to add.public void removeAuthToken(java.lang.String authToken)
authToken
- the token to remove.public void removeAllAuthTokens()
public boolean hasAuthToken(java.lang.String authToken)
public boolean hasAllAuthTokens(java.util.Collection tokens)
public IStateVisit getMostRecentVisit()
public int getStateIdSource()
public void setStateIdSource(int stateIdSource)
stateIdSource
- public boolean wasStateVisited(IState state)
state
-
public ISessionData getSessionData()
public void setLocale(java.util.Locale locale)
locale
- public java.util.Locale getLocale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |