tomp.ext.servlet
Class UserLoggedAction

java.lang.Object
  |
  +--tomp.ext.Action
        |
        +--tomp.ext.servlet.ServletAction
              |
              +--tomp.ext.servlet.RequestAction
                    |
                    +--tomp.ext.servlet.UserLoggedAction
Direct Known Subclasses:
AdminLoggedAction

public class UserLoggedAction
extends RequestAction

Class UserLoggedAction is an extension of the RequestAction.
It is usually extended, since the UserLoggedAction itself does not do anything very useful, it only provides info about the user just logged (the info contains username and isAdmin() flag).


Field Summary
 
Fields inherited from class tomp.ext.Action
ACTION, application, previous, result
 
Constructor Summary
UserLoggedAction(ServletAction previous, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, UserInfo user)
           
 
Method Summary
 UserInfo getUser()
           
 boolean isAdmin()
           
 
Methods inherited from class tomp.ext.servlet.RequestAction
getHere, getRequest, getResponse, getSession, put, servletOutputStream
 
Methods inherited from class tomp.ext.servlet.ServletAction
getPreviousServletAction, getServletApplication, getServletConfig, getServletContext
 
Methods inherited from class tomp.ext.Action
event2tree, execute, get, getApplication, getPreviousAction, hasParameter, id, init, isERROR, isOK, result, setParameter, setResult, trace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserLoggedAction

public UserLoggedAction(ServletAction previous,
                        javax.servlet.http.HttpServletRequest req,
                        javax.servlet.http.HttpServletResponse res,
                        UserInfo user)
Method Detail

getUser

public UserInfo getUser()

isAdmin

public boolean isAdmin()