org.ow2.petals.tools.webadmin.ui.infra.action
Class AuthentifiedAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.ow2.petals.tools.webadmin.ui.infra.action.AuthentifiedAction
Direct Known Subclasses:
AdminAction, AuthentifiedActionForward, GetServers, GetServiceAssembly, JuddiAction, MonitoringAction, ShowPortlet, ShowQueues, UploadAndInstallFile

public abstract class AuthentifiedAction
extends org.apache.struts.action.Action

Extends each action to this class for an automatic authentification check system

Author:
mcarpentier - EBM Websourcing

Field Summary
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
AuthentifiedAction()
           
 
Method Summary
 boolean checkMandatoryParameters(javax.servlet.http.HttpServletRequest req, java.lang.String[] parameters, java.lang.String actionTitle)
           
 org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping iActionMapping, org.apache.struts.action.ActionForm iActionForm, javax.servlet.http.HttpServletRequest iServletRequest, javax.servlet.http.HttpServletResponse iServletResponse)
           
abstract  org.apache.struts.action.ActionForward executeAuthentified(org.apache.struts.action.ActionMapping iActionMapping, org.apache.struts.action.ActionForm iActionForm, javax.servlet.http.HttpServletRequest iServletRequest, javax.servlet.http.HttpServletResponse iServletResponse)
           
 void fillInfoBean(AdminSession adminSession, java.lang.String message, int type)
           
 void fillInfoBeanWithExceptionMessage(AdminSession session, java.lang.String actionTitle, java.lang.String exceptionMessage)
           
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthentifiedAction

public AuthentifiedAction()
Method Detail

execute

public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping iActionMapping,
                                                      org.apache.struts.action.ActionForm iActionForm,
                                                      javax.servlet.http.HttpServletRequest iServletRequest,
                                                      javax.servlet.http.HttpServletResponse iServletResponse)
                                               throws java.lang.Exception
Overrides:
execute in class org.apache.struts.action.Action
Throws:
java.lang.Exception

executeAuthentified

public abstract org.apache.struts.action.ActionForward executeAuthentified(org.apache.struts.action.ActionMapping iActionMapping,
                                                                           org.apache.struts.action.ActionForm iActionForm,
                                                                           javax.servlet.http.HttpServletRequest iServletRequest,
                                                                           javax.servlet.http.HttpServletResponse iServletResponse)
                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

fillInfoBean

public void fillInfoBean(AdminSession adminSession,
                         java.lang.String message,
                         int type)

fillInfoBeanWithExceptionMessage

public void fillInfoBeanWithExceptionMessage(AdminSession session,
                                             java.lang.String actionTitle,
                                             java.lang.String exceptionMessage)

checkMandatoryParameters

public boolean checkMandatoryParameters(javax.servlet.http.HttpServletRequest req,
                                        java.lang.String[] parameters,
                                        java.lang.String actionTitle)


Copyright © 2005-2008 OW2 Consortium. All Rights Reserved.