|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.summit.AbstractSummitComponent
org.codehaus.plexus.summit.rundata.AbstractRunData
org.codehaus.plexus.summit.rundata.DefaultRunData
org.codehaus.plexus.security.summit.SecureRunData
An implementation of RunData which keeps a user's Session.
Field Summary | |
static java.lang.String |
USER_SESSION_KEY
|
Fields inherited from interface org.codehaus.plexus.summit.rundata.RunData |
ROLE |
Constructor Summary | |
SecureRunData()
|
Method Summary | |
java.lang.String |
getMessage()
|
User |
getUser()
Return the User for this session. |
User |
getUserFromSession()
Attempts to get the User object from the session. |
org.codehaus.plexus.summit.view.ViewContext |
getViewContext()
|
boolean |
hasUser()
Checks to see if there is a user for this session. |
boolean |
removeUserFromSession()
Allows one to invalidate the user in a session. |
void |
setMessage(java.lang.String message)
Sets the message. |
void |
setUser(User user)
Saves this user object to the session. |
Methods inherited from class org.codehaus.plexus.summit.rundata.AbstractRunData |
dispose, getContentType, getContextPath, getError, getLink, getMap, getParameters, getRequest, getResolution, getResponse, getResultMessages, getScriptName, getServerName, getServerPort, getServerScheme, getServletConfig, getServletContext, getSession, getTarget, hasError, hasResultMessages, hasTarget, initialize, setContentType, setError, setMap, setRequest, setResolution, setResponse, setResultMessages, setServletConfig, setTarget |
Methods inherited from class org.codehaus.plexus.summit.AbstractSummitComponent |
contextualize, getContainer, lookup, lookup |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.plexus.summit.SummitComponent |
getContainer, lookup, lookup |
Field Detail |
public static final java.lang.String USER_SESSION_KEY
Constructor Detail |
public SecureRunData()
Method Detail |
public java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- The message to setpublic org.codehaus.plexus.summit.view.ViewContext getViewContext()
public boolean hasUser()
public User getUser()
User
for this session.
public void setUser(User user)
Saves this user object to the session.
Anyone overriding this method should be sure to leverage
the SessionBindingEventProxy
when adding the user
and acl into the session. This allows hook functions to be called on
the User
and AccessControlList
when it is
removed from the session (which happens on session timeout).
user
- The user to setpublic User getUserFromSession()
null
is returned.
Anyone overriding this method should be sure to leverage
the SessionBindingEventProxy
when pulling the
User
object from the session, allowing hook
functions to be called on the listener when it is removed from
the session (which happens on session timeout).
null
if errors
occur.org.apache.turbine.services.rundata.SessionBindingEventProxy
,
org.apache.fulcrum.security.entity.User
,
org.apache.fulcrum.security.session.SessionBindingListener
public boolean removeUserFromSession()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |