com.pow2.struts.action
Class UserValidationAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended bycom.pow2.struts.action.BaseAction
          extended bycom.pow2.struts.action.UserValidationAction

public class UserValidationAction
extends BaseAction

Base Action class with Session User validation.
If the current session does NOT provide a valid com.pow2.user.User reference, the com.pow2.struts.action.ActionServlet controller class returns the ActionForward object specified by BaseAction.KEY_INVALID_SESSION.

Version:
$Revision: 1.1.1.1 $ $Date: 2004/08/31 20:22:46 $
Author:
Luca Fossato

Field Summary
 
Fields inherited from class com.pow2.struts.action.BaseAction
cat, FWD_CANCEL, FWD_FAILURE, FWD_INVALID_SESSION, FWD_LOGIN
 
Fields inherited from class org.apache.struts.action.Action
ACTION_SERVLET_KEY, APPLICATION_KEY, DATA_SOURCE_KEY, defaultLocale, ERROR_KEY, EXCEPTION_KEY, FORM_BEANS_KEY, FORWARDS_KEY, LOCALE_KEY, MAPPING_KEY, MAPPINGS_KEY, MESSAGE_KEY, MESSAGES_KEY, MULTIPART_KEY, PLUG_INS_KEY, REQUEST_PROCESSOR_KEY, servlet, SERVLET_KEY, TRANSACTION_TOKEN_KEY
 
Constructor Summary
UserValidationAction()
           
 
Method Summary
protected  boolean validateSession(HttpServletRequest request)
          Check if the current session holds a valid com.pow2.user.User reference.
 
Methods inherited from class com.pow2.struts.action.BaseAction
failureForward, getForward, invalidSessionForward, isFailureForward, loginForward, loginForward
 
Methods inherited from class org.apache.struts.action.Action
execute, execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserValidationAction

public UserValidationAction()
Method Detail

validateSession

protected boolean validateSession(HttpServletRequest request)
Check if the current session holds a valid com.pow2.user.User reference.

Overrides:
validateSession in class BaseAction
Returns:
true if the current session is valid; false otherwise


Copyright © 2002-2004 Power Of Two S.R.L. All Rights Reserved.