org.ow2.jonas.webapp.jonasadmin.service.ejb
Class EditEjbAction

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
          extended by org.ow2.jonas.webapp.jonasadmin.service.ejb.EditEjbAction
Direct Known Subclasses:
EditEjbEntityAction, EditEjbMessageAction, EditEjbSessionAction

public abstract class EditEjbAction
extends JonasBaseAction

Author:
Michel-Ange ANTON

Field Summary
 
Fields inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, GLOBAL_ERROR_FORWARD, m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EditEjbAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping pMapping, org.apache.struts.action.ActionForm pForm, HttpServletRequest pRequest, HttpServletResponse pResponse)
          Execute a action.
protected  void fillEjbDependencies(boolean ejb3, EjbForm pForm, ObjectName pObjectName, String domainName, String serverName)
          Fill all dependencies of EJB in the EjbForm instance.
protected  void fillEjbGlobalInfo(boolean ejb3, EjbForm pForm, ObjectName pObjectName)
          Fill all global infos of EJB in the EjbForm instance.
protected abstract  void fillEjbInfo(boolean ejb3, EjbForm pForm, ObjectName pObjectName, String serverName)
          Fill all infos of EJB in the EjbForm instance.
protected abstract  EjbForm getEjbForm()
          Return a EjbForm instance associate to the EJB.
protected abstract  String getEjbForward()
          The global forward to go.
protected  ObjectName getEjbObjectName()
          Get a ObjectName instance for the Ejb given with the parameters of the HTPP request.
 
Methods inherited from class org.ow2.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, execute, getAttributes, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getJonasBase, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getNameForProvider, getPropsFromString, getServerItem, getShortAttribute, getStringArrayAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, invoke, isActive, refreshDomainDeployTree, refreshServicesTree, refreshTree, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setShortAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute, toStringShortAttribute
 
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

EditEjbAction

public EditEjbAction()
Method Detail

executeAction

public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping pMapping,
                                                            org.apache.struts.action.ActionForm pForm,
                                                            HttpServletRequest pRequest,
                                                            HttpServletResponse pResponse)
Execute a action.

Specified by:
executeAction in class JonasBaseAction
Parameters:
pMapping - ActionForward instance
pForm - ActionForm instance
pRequest - HttpServletRequest instance
pResponse - HttpServletResponse instance
Returns:
ActionForward instance

getEjbForward

protected abstract String getEjbForward()
The global forward to go.

Returns:
Forward

getEjbForm

protected abstract EjbForm getEjbForm()
Return a EjbForm instance associate to the EJB.

Returns:
A form instance

fillEjbInfo

protected abstract void fillEjbInfo(boolean ejb3,
                                    EjbForm pForm,
                                    ObjectName pObjectName,
                                    String serverName)
                             throws Exception
Fill all infos of EJB in the EjbForm instance.

Parameters:
pForm - Instance to fill
pObjectName - Instance to get infos
Throws:
Exception - Could not fill info

getEjbObjectName

protected ObjectName getEjbObjectName()
                               throws Exception
Get a ObjectName instance for the Ejb given with the parameters of the HTPP request.

Returns:
The ObjectName instance
Throws:
Exception - Could not construct ObjectName

fillEjbGlobalInfo

protected void fillEjbGlobalInfo(boolean ejb3,
                                 EjbForm pForm,
                                 ObjectName pObjectName)
Fill all global infos of EJB in the EjbForm instance.

Parameters:
pForm - Instance to fill
pObjectName - Instance to get infos

fillEjbDependencies

protected void fillEjbDependencies(boolean ejb3,
                                   EjbForm pForm,
                                   ObjectName pObjectName,
                                   String domainName,
                                   String serverName)
Fill all dependencies of EJB in the EjbForm instance.

Parameters:
pForm - Instance to fill
pObjectName - Instance to get infos


Copyright © 2010 OW2 Consortium. All Rights Reserved.