| org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction org.objectweb.jonas.webapp.jonasadmin.xml.ApplyArchiveConfigAction
ApplyArchiveConfigAction | public class ApplyArchiveConfigAction extends JonasBaseAction (Code) | | Action to process the input when either the advanced or the form view of the
archive configuration feature is submitted.
If the user selected the 'Apply' button the action validates and saves the
updated deployment descriptor.
If the user selected the 'Switch to Form/Advanced" the input is validated
updated in the form and the user is forwarded to the other view.
author: Patrick Smith author: Gregory Lapouchnian |
executeAction | public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException(Code) | | Executes the struts action.
Parameters: p_Mapping - the struts action mapping. Parameters: p_Form - the struts action form. Parameters: p_Request - the HttpServletRequest. Parameters: p_Response - the HttpServletResponse. throws: IOException - throws: ServletException - the action forward to forward to. |
getCurrentPageForward | protected String getCurrentPageForward(ArchiveConfigForm form)(Code) | | Get the ActionForward name for the current page.
Parameters: form - Struts form ActionForward for the current page |
getSwitchForward | protected String getSwitchForward(ArchiveConfigForm form)(Code) | | Get the ActionForward name to switch views from the current page.
Parameters: form - Struts form ActionForward the user should be forwarded to if theyare switching views |
reportError | protected ActionForward reportError(String sForward, ArchiveConfigForm oForm, String errorMessage, ActionMapping p_Mapping, HttpServletRequest p_Request)(Code) | | Report an error and forward to the given JSP page.
Parameters: sForward - what JSP page to forward to Parameters: oForm - the form bean Parameters: errorMessage - the message from the exception Parameters: p_Mapping - Parameters: p_Request - ActionForward found for the given forward string |
serializeDocument | protected String serializeDocument(Document doc)(Code) | | Serialize a DOM tree into plaint text.
Parameters: doc - Document tree to convert a string representation of the DOM tree |
validateDocument | protected void validateDocument(Document doc, String serverName) throws Exception(Code) | | Validate the document using appropriate schemas.
Parameters: doc - the document that needs to be validated throws: Exception - an exception if the document is not valid |
Methods inherited from org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction | protected void addGlobalError(Throwable p_Throwable)(Code)(Java Doc) public ActionForward execute(ActionMapping p_Mapping, ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException(Code)(Java Doc) abstract public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException(Code)(Java Doc) protected boolean getBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected boolean getBooleanAttribute(Properties p_Props, String ps_AttrName)(Code)(Java Doc) protected boolean getBooleanAttribute(Properties p_Props, String ps_AttrName, boolean p_Default)(Code)(Java Doc) protected int getIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected int getIntegerAttribute(Properties p_Props, String ps_AttrName)(Code)(Java Doc) protected int getIntegerAttribute(Properties p_Props, String ps_AttrName, int p_Default)(Code)(Java Doc) protected String getJonasBase()(Code)(Java Doc) protected List getListAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected long getLongAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected long getLongAttribute(Properties p_Props, String ps_AttrName)(Code)(Java Doc) protected long getLongAttribute(Properties p_Props, String ps_AttrName, long p_Default)(Code)(Java Doc) protected Properties getPropsFromString(String ps_Props)(Code)(Java Doc) protected long getShortAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String[] getStringArrayAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String getStringAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String getStringAttribute(Properties p_Props, String ps_AttrName)(Code)(Java Doc) protected String getStringAttribute(Properties p_Props, String ps_AttrName, String p_Default)(Code)(Java Doc) protected String getTreeBranchName(int p_Width)(Code)(Java Doc) protected void initialize(HttpServletRequest p_Request)(Code)(Java Doc) protected void refreshDomainDeployTree(HttpServletRequest p_Request) throws Exception(Code)(Java Doc) protected void refreshDomainMonitoringTree(HttpServletRequest p_Request) throws Exception(Code)(Java Doc) protected void refreshServerTree(HttpServletRequest p_Request) throws Exception(Code)(Java Doc) protected static String removeChar(String string, char c)(Code)(Java Doc) protected void setBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName, boolean p_Value)(Code)(Java Doc) protected void setBooleanAttribute(Properties p_Props, String ps_AttrName, boolean p_Value)(Code)(Java Doc) protected void setIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName, int p_Value)(Code)(Java Doc) protected void setIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)(Code)(Java Doc) protected void setIntegerAttribute(Properties p_Props, String ps_AttrName, int p_Value)(Code)(Java Doc) protected void setLongAttribute(ObjectName p_ObjectName, String ps_AttrName, long p_Value)(Code)(Java Doc) protected void setLongAttribute(Properties p_Props, String ps_AttrName, long p_Value)(Code)(Java Doc) protected void setShortAttribute(ObjectName p_ObjectName, String ps_AttrName, long p_Value)(Code)(Java Doc) protected void setStringAttribute(ObjectName p_ObjectName, String ps_AttrName, String p_Value)(Code)(Java Doc) protected void setStringAttribute(Properties p_Props, String ps_AttrName, String p_Value)(Code)(Java Doc) protected void setStringAttribute(Properties p_Props, String ps_AttrName, String p_Value, String p_Default)(Code)(Java Doc) protected String toStringBooleanAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String toStringIntegerAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String toStringLongAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc) protected String toStringShortAttribute(ObjectName p_ObjectName, String ps_AttrName)(Code)(Java Doc)
|
|
|