|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.statemachine.base.sessionmanagers.UserSession
Field Summary |
Fields inherited from interface com.bankframe.fe.statemachine.base.sessionmanagers.IUserSession |
STATE_ID_SOURCE_REQUEST, STATE_ID_SOURCE_REQUEST_THEN_SESSION, STATE_ID_SOURCE_SESSION, STATE_ID_SOURCE_SESSION_THEN_REQUEST, STATE_ID_SOURCE_UNDEFINED |
Constructor Summary | |
UserSession()
|
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.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 |
invalidate()
This method nullifies the references between this and all other objects, allowing this to be unloaded. |
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. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bankframe.fe.statemachine.base.sessionmanagers.IUserSession |
getId |
Constructor Detail |
public UserSession()
Method Detail |
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.
getHistoryStar
in interface IUserSession
state
- the state being visited
public void addStateVisit(IState state, IResponseData responseData)
addStateVisit
in interface IUserSession
state
- the state being visitedresponseData
- the response data being given to the viewpublic IStateVisit getHistory(IState state)
If no such state visit exists, this method returns an IStateVisit that contains the given state and an empty IResponseData.
getHistory
in interface IUserSession
state
- the state being visited
public void invalidate()
public void removeAuthToken(java.lang.String authToken)
removeAuthToken
in interface IUserSession
authToken
- the token to remove.public void addAuthToken(java.lang.String authToken)
addAuthToken
in interface IUserSession
authToken
- the token to add.public boolean hasAuthToken(java.lang.String authToken)
hasAuthToken
in interface IUserSession
public IStateVisit getMostRecentVisit()
getMostRecentVisit
in interface IUserSession
public boolean hasAllAuthTokens(java.util.Collection tokens)
hasAllAuthTokens
in interface IUserSession
public void removeAllAuthTokens()
removeAllAuthTokens
in interface IUserSession
public int getStateIdSource()
getStateIdSource
in interface IUserSession
public void setStateIdSource(int stateIdSource)
setStateIdSource
in interface IUserSession
stateIdSource
- public boolean wasStateVisited(IState state)
wasStateVisited
in interface IUserSession
state
-
public ISessionData getSessionData()
getSessionData
in interface IUserSession
public void setLocale(java.util.Locale locale)
setLocale
in interface IUserSession
locale
- public java.util.Locale getLocale()
getLocale
in interface IUserSession
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |