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

java.lang.Object
  extended byAction
      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
See Also:
Serialized Form

Field Summary
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
m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Constructor Summary
EditEjbAction()
           
 
Method Summary
 ActionForward executeAction(ActionMapping p_Mapping, 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 abstract  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, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, perform, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute
 
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
Constructor Detail

EditEjbAction

public EditEjbAction()
Method Detail

executeAction

public ActionForward executeAction(ActionMapping p_Mapping,
                                   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 abstract 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