|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.fe.statemachine.base.sessionmanagers.UserSession
public abstract class 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(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. |
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(Collection tokens)
Determines whether this user session has all the given authentication tokens. |
boolean |
hasAuthToken(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(String authToken)
Removes an authentication token from this user session. |
void |
setLocale(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 IUserSessionstate - the state being visited
public void addStateVisit(IState state,
IResponseData responseData)
addStateVisit in interface IUserSessionstate - 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 IUserSessionstate - the state being visited
public void invalidate()
public void removeAuthToken(String authToken)
removeAuthToken in interface IUserSessionauthToken - the token to remove.public void addAuthToken(String authToken)
addAuthToken in interface IUserSessionauthToken - the token to add.public boolean hasAuthToken(String authToken)
hasAuthToken in interface IUserSessionpublic IStateVisit getMostRecentVisit()
getMostRecentVisit in interface IUserSessionpublic boolean hasAllAuthTokens(Collection tokens)
hasAllAuthTokens in interface IUserSessionpublic void removeAllAuthTokens()
removeAllAuthTokens in interface IUserSessionpublic int getStateIdSource()
getStateIdSource in interface IUserSessionpublic void setStateIdSource(int stateIdSource)
setStateIdSource in interface IUserSessionstateIdSource - public boolean wasStateVisited(IState state)
wasStateVisited in interface IUserSessionstate -
public ISessionData getSessionData()
getSessionData in interface IUserSessionpublic void setLocale(Locale locale)
setLocale in interface IUserSessionlocale - public Locale getLocale()
getLocale in interface IUserSession
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||