|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDIFSession
Defines a public accessible DIF Session
Method Summary | |
---|---|
void |
addAttribute(String key,
Object value)
Stores a new attribute in the session. |
boolean |
containsAttribute(String key)
Stores a new attribute in the session. |
Object |
getAttribute(String key)
Retrieves a given attributes by id. |
Map<String,Object> |
getAttributes()
Retrieves all session attributes. |
String |
getLanguage()
|
INavigationHistory |
getNavigationHistory()
Provides the current session navigation history objet |
String |
getSessionID()
|
long |
getSessionTimeOut()
Inspector for the session time-out value. |
DIFUserInSession |
getUser()
Gets the user in session. |
boolean |
hasTimedOut()
Checks if session has timed out. |
boolean |
isLogged()
Checks if the session has a logged user |
boolean |
isMarkedForRemoval()
|
void |
setAttributes(Map<String,Object> attributes)
Sets all session attributes. |
void |
setLanguage(String language)
|
void |
setSessionTimeOut(long sessionTimeOut)
Sets the session time-out value. |
void |
setUser(DIFUserInSession user)
Sets the user in session. |
Method Detail |
---|
void addAttribute(String key, Object value)
key
- the key of the attributevalue
- the value of the new attributeboolean containsAttribute(String key)
key
- the key of the attribute
Object getAttribute(String key)
key
- the key of the attribute
Map<String,Object> getAttributes()
String getLanguage()
INavigationHistory getNavigationHistory()
String getSessionID()
long getSessionTimeOut()
DIFUserInSession getUser()
boolean hasTimedOut()
boolean isLogged()
boolean isMarkedForRemoval()
void setAttributes(Map<String,Object> attributes)
attributes
- the session attributes to setvoid setLanguage(String language)
language
- the language to setvoid setSessionTimeOut(long sessionTimeOut)
sessionTimeOut
- the session time out new value to setvoid setUser(DIFUserInSession user)
user
- the user to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |