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

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

public abstract class EditEjbAction
extends JonasBaseAction

Author:
Michel-Ange ANTON

Field Summary
protected  java.lang.String ms_ObjectName
           
protected  java.lang.String ms_ParamFile
           
protected  java.lang.String ms_ParamName
           
protected  java.lang.String ms_ParamType
           
 
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, domainName, m_Errors, m_Resources, m_Session, m_WhereAreYou, serverName
 
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
EditEjbAction()
           
 
Method Summary
 org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping, org.apache.struts.action.ActionForm p_Form, javax.servlet.http.HttpServletRequest p_Request, javax.servlet.http.HttpServletResponse p_Response)
          Execute a action.
protected  void fillEjbDependencies(EjbForm p_Form, javax.management.ObjectName p_ObjectName)
          Fill all dependencies of EJB in the EjbForm instance.
protected  void fillEjbGlobalInfo(EjbForm p_Form, javax.management.ObjectName p_ObjectName)
          Fill all global infos of EJB in the EjbForm instance.
protected abstract  void fillEjbInfo(EjbForm p_Form, javax.management.ObjectName p_ObjectName)
          Fill all infos of EJB in the EjbForm instance.
protected abstract  EjbForm getEjbForm()
          Return a EjbForm instance associate to the EJB.
protected abstract  java.lang.String getEjbForward()
          The global forward to go.
protected  javax.management.ObjectName getEjbObjectName()
          Get a ObjectName instance for the Ejb given with the parameters of the HTPP request.
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, perform, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute
 
Methods inherited from class org.apache.struts.action.Action
execute, execute, generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, 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
 

Field Detail

ms_ParamType

protected java.lang.String ms_ParamType

ms_ParamName

protected java.lang.String ms_ParamName

ms_ParamFile

protected java.lang.String ms_ParamFile

ms_ObjectName

protected java.lang.String ms_ObjectName
Constructor Detail

EditEjbAction

public EditEjbAction()
Method Detail

executeAction

public org.apache.struts.action.ActionForward executeAction(org.apache.struts.action.ActionMapping p_Mapping,
                                                            org.apache.struts.action.ActionForm p_Form,
                                                            javax.servlet.http.HttpServletRequest p_Request,
                                                            javax.servlet.http.HttpServletResponse p_Response)
                                                     throws java.io.IOException,
                                                            javax.servlet.ServletException
Execute a action.

Specified by:
executeAction in class JonasBaseAction
Parameters:
p_Mapping - ActionForward instance
p_Form - ActionForm instance
p_Request - HttpServletRequest instance
p_Response - HttpServletResponse instance
Returns:
ActionForward instance
Throws:
java.io.IOException
javax.servlet.ServletException

getEjbForward

protected abstract java.lang.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(EjbForm p_Form,
                                    javax.management.ObjectName p_ObjectName)
                             throws java.lang.Exception
Fill all infos of EJB in the EjbForm instance.

Parameters:
p_Form - Instance to fill
p_ObjectName - Instance to get infos
Throws:
java.lang.Exception

getEjbObjectName

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

Returns:
The ObjectName instance
Throws:
java.lang.Exception

fillEjbGlobalInfo

protected void fillEjbGlobalInfo(EjbForm p_Form,
                                 javax.management.ObjectName p_ObjectName)
                          throws java.lang.Exception
Fill all global infos of EJB in the EjbForm instance.

Parameters:
p_Form - Instance to fill
p_ObjectName - Instance to get infos
Throws:
java.lang.Exception

fillEjbDependencies

protected void fillEjbDependencies(EjbForm p_Form,
                                   javax.management.ObjectName p_ObjectName)
                            throws java.lang.Exception
Fill all dependencies of EJB in the EjbForm instance.

Parameters:
p_Form - Instance to fill
p_ObjectName - Instance to get infos
Throws:
java.lang.Exception