|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.efaps.ui.wicket.EFapsSession
public class EFapsSession
A WebSession subclass that is used e.g. as a store for behaviors that last a Session and provides functionalities like open/close a Context and login/logout a User.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.wicket.Session |
|---|
org.apache.wicket.Session.IPageMapVisitor, org.apache.wicket.Session.PageMapAccessMetaData |
| Field Summary | |
|---|---|
static java.lang.String |
LOGIN_ATTRIBUTE_NAME
This variable is used as the Key to the UserName stored in the SessionAttributes. |
| Fields inherited from class org.apache.wicket.Session |
|---|
PAGEMAP_ACCESS_MDK, SESSION_ATTRIBUTE_NAME |
| Constructor Summary | |
|---|---|
EFapsSession(org.apache.wicket.Request _request)
Standard Constructor from Wicket. |
|
| Method Summary | |
|---|---|
void |
addUpdateBehaviors(java.lang.String _oid,
UpdateInterface _behavior)
method to add a Behavior to the updateBehaviors. |
void |
closeContext()
Method that closes the opened Context openContext(), by
committing or rollback it. |
java.io.File |
getFile()
Getter method for instance variable file. |
ShowFileCallBackBehavior |
getFileCallBack()
Getter method for instance variable fileCallBack. |
org.apache.wicket.Component |
getFromCache(java.lang.String _key)
Retrieve a Component from the ComponentCache. |
Opener |
getOpener(java.lang.String _openerId)
Method to get an opener from the opener cache. |
java.util.List<UpdateInterface> |
getUpdateBehavior(java.lang.String _oid)
Method that returns the behaviors as aList that rely to a specified oid. |
java.util.Map<java.lang.String,java.util.List<UpdateInterface>> |
getUpdateBehaviors()
This is the getter method for the instance variable updateBehaviors. |
boolean |
isLogedIn()
Method to check if a user is checked in. |
void |
login()
Method to log a user with the Parameters from the Request in. |
void |
logout()
Logs a user out and stores the UserAttribues in the eFaps database. |
void |
openContext()
Method that opens a new Context in eFaps, setting the User, the Locale, the Attributes of this Session sessionAttributes and the
RequestParameters for the Context. |
void |
putIntoCache(java.lang.String _key,
org.apache.wicket.Component _component)
This Method stores a Component in the Cache. |
void |
removeFromCache(java.lang.String _key)
Remove a Component from the ComponentCache. |
void |
removeOpener(java.lang.String _openerId)
Method to remove a opener from the opener cache. |
void |
setFile(java.io.File _file)
|
void |
setFileCallBack(ShowFileCallBackBehavior _fileCallBack)
Setter method for instance variable fileCallBack. |
void |
storeOpener(Opener _opener)
Method to store an opener in this session. |
| Methods inherited from class org.apache.wicket.protocol.http.WebSession |
|---|
cleanupComponentFeedbackMessages, cleanupFeedbackMessages, isCurrentRequestValid |
| Methods inherited from class org.apache.wicket.Session |
|---|
attach, bind, clear, createAutoPageMap, createAutoPageMapName, currentCreateAutoPageMapCounter, detach, dirty, error, exists, findOrCreate, findOrCreate, get, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getAutoPageMapNamePrefix, getAutoPageMapNameSuffix, getClassResolver, getClientInfo, getDefaultPageMap, getFeedbackMessages, getId, getLocale, getMetaData, getPage, getPage, getPageFactory, getPageMaps, getSessionStore, getSizeInBytes, getStyle, incrementCreateAutoPageMapCounter, info, invalidate, invalidateNow, isSessionInvalidated, isTemporary, newPageMap, nextPageId, nextSequenceValue, pageMapForName, removeAttribute, removePageMap, replaceSession, set, setApplication, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, touch, unset, untouch, update, visitPageMaps, warn |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOGIN_ATTRIBUTE_NAME
| Constructor Detail |
|---|
public EFapsSession(org.apache.wicket.Request _request)
_request - Request| Method Detail |
|---|
public void addUpdateBehaviors(java.lang.String _oid,
UpdateInterface _behavior)
updateBehaviors. The behavior
will only be added if no update behavior with the same Id is existing in
the List related to the given oid.
_oid - Oid (used as key in the map)_behavior - (behavoir to be added)public java.util.List<UpdateInterface> getUpdateBehavior(java.lang.String _oid)
_oid - OID to get the List for
public java.util.Map<java.lang.String,java.util.List<UpdateInterface>> getUpdateBehaviors()
updateBehaviors.
updateBehaviors
public void putIntoCache(java.lang.String _key,
org.apache.wicket.Component _component)
_key - Key the Component should be stored in_component - Component to be storedcomponentcachepublic org.apache.wicket.Component getFromCache(java.lang.String _key)
_key - Key of the Component to be retrieved
componentcachepublic void removeFromCache(java.lang.String _key)
_key - Key to the Component to be removedcomponentcachepublic void removeOpener(java.lang.String _openerId)
_openerId - id of the opener to be removedpublic void storeOpener(Opener _opener)
_opener - opener to be storedpublic Opener getOpener(java.lang.String _openerId)
_openerId - if of the opener to get
public boolean isLogedIn()
userNamepublic final void login()
checkLogin(String, String)public final void logout()
public void openContext()
sessionAttributes and the
RequestParameters for the Context.
Session.attach()public void closeContext()
openContext(), by
committing or rollback it.
Session.detach()public ShowFileCallBackBehavior getFileCallBack()
fileCallBack.
fileCallBackpublic void setFileCallBack(ShowFileCallBackBehavior _fileCallBack)
fileCallBack.
_fileCallBack - value for instance variable fileCallBackpublic void setFile(java.io.File _file)
public java.io.File getFile()
file.
file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||