org.objectweb.jonas.webapp.jonasadmin.xml
Class ArchiveConfigForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.objectweb.jonas.webapp.jonasadmin.xml.ArchiveConfigForm
All Implemented Interfaces:
java.io.Serializable

public class ArchiveConfigForm
extends org.apache.struts.action.ActionForm

Struts form used by the archive configuration pages.

Author:
Patrick Smith, Gregory Lapouchnian
See Also:
Serialized Form

Field Summary
static int ADVANCED
          Advanced mode was used.
static int FORM
          The form was used.
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
ArchiveConfigForm()
           
 
Method Summary
 java.lang.String getArchiveName()
          Returns the archive name in the form.
 java.lang.String getCancel()
          The target of the cancel op.
 java.util.Map getChildren()
          Return the map of children
 int getConfigType()
          Returns the config type.
 java.util.ArrayList getDeployable()
          The list of deployable archives.
 org.w3c.dom.Document getDocument()
          Returns the document.
 boolean getIsDomain()
          Return if the action is a domain management operation.
 java.lang.String getJonasBase()
           
 java.util.Map getMapping()
          Returns the map.
 java.lang.String getPathName()
          Returns the path of the XML file.
 java.lang.String getSubmit()
          What submission form was done.
 java.lang.String getSwitchTo()
          The target of switching done.
 java.lang.Object getValues(java.lang.String key)
          Returns the object at key's spot of the mapping.
 java.util.Map getValuesMap()
          Returns the values map.
 java.lang.String getXml()
          Return the XML document as a string.
 void reset()
          Resets this form.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to their default values.
 void setArchiveName(java.lang.String archiveName)
          Sets the archive name for the form.
 void setCancel(java.lang.String cancel)
          Sets the cancel string
 void setChildren(java.util.Map childValues)
          Sets the children map.
 void setConfigType(int configType)
          Sets the config type.
 void setDeployable(java.util.ArrayList deployable)
          Sets the list of deployable archives.
 void setDocument(org.w3c.dom.Document document)
          Sets the document of this form
 void setIsDomain(boolean isDomain)
          Sets if the action is a domain management operation.
 void setJonasBase(java.lang.String jonasBase)
           
 void setMapping(java.util.Map mapping)
          Sets the map.
 void setPathName(java.lang.String pathName)
          Sets the path.
 void setSubmit(java.lang.String submit)
          Sets the submission.
 void setSwitchTo(java.lang.String switchTo)
          Sets the target of switching
 void setValues(java.lang.String key, java.lang.Object value)
          Sets a value within the values map.
 void setValuesMap(java.util.Map values)
          Sets the values map.
 void setXml(java.lang.String xml)
          Sets the XML string.
 java.lang.String toString()
          Returns a String represetnation of the values.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FORM

public static int FORM
The form was used.


ADVANCED

public static int ADVANCED
Advanced mode was used.

Constructor Detail

ArchiveConfigForm

public ArchiveConfigForm()
Method Detail

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values.

Overrides:
reset in class org.apache.struts.action.ActionForm
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.

Overrides:
validate in class org.apache.struts.action.ActionForm
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing
Returns:
the errors.

toString

public java.lang.String toString()
Returns a String represetnation of the values.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the values.

reset

public void reset()
Resets this form.


getDocument

public org.w3c.dom.Document getDocument()
Returns the document.

Returns:
the document.

setDocument

public void setDocument(org.w3c.dom.Document document)
Sets the document of this form

Parameters:
document - the value to set.

setValues

public void setValues(java.lang.String key,
                      java.lang.Object value)
Sets a value within the values map.

Parameters:
key - the key of the mapping.
value - the value of the mapping.

getValues

public java.lang.Object getValues(java.lang.String key)
Returns the object at key's spot of the mapping.

Parameters:
key - the key for the mapping.
Returns:
the value in the map that matches key.

setValuesMap

public void setValuesMap(java.util.Map values)
Sets the values map.


getValuesMap

public java.util.Map getValuesMap()
Returns the values map.

Returns:
the values map.

setMapping

public void setMapping(java.util.Map mapping)
Sets the map.

Parameters:
mapping - the value to set.

getMapping

public java.util.Map getMapping()
Returns the map.

Returns:
the map.

getXml

public java.lang.String getXml()
Return the XML document as a string.

Returns:
the XML document as a string.

setXml

public void setXml(java.lang.String xml)
Sets the XML string.

Parameters:
xml - the value to set.

getSubmit

public java.lang.String getSubmit()
What submission form was done.

Returns:
the of submission.

setSubmit

public void setSubmit(java.lang.String submit)
Sets the submission.

Parameters:
submit - the submission to set.

getConfigType

public int getConfigType()
Returns the config type.

Returns:
the config type.

setConfigType

public void setConfigType(int configType)
Sets the config type.

Parameters:
configType - the type to set.

getSwitchTo

public java.lang.String getSwitchTo()
The target of switching done.

Returns:
the target of switching.

setSwitchTo

public void setSwitchTo(java.lang.String switchTo)
Sets the target of switching

Parameters:
switchTo - the target to set.

getArchiveName

public java.lang.String getArchiveName()
Returns the archive name in the form.

Returns:
the archive name.

setArchiveName

public void setArchiveName(java.lang.String archiveName)
Sets the archive name for the form.

Parameters:
archiveName - the archive name to set.

getPathName

public java.lang.String getPathName()
Returns the path of the XML file.

Returns:
the path of the XML file.

setPathName

public void setPathName(java.lang.String pathName)
Sets the path.

Parameters:
pathName - the path to set.

getDeployable

public java.util.ArrayList getDeployable()
The list of deployable archives.

Returns:
the list of deployable archives.

setDeployable

public void setDeployable(java.util.ArrayList deployable)
Sets the list of deployable archives.

Parameters:
deployable - the list to set.

getCancel

public java.lang.String getCancel()
The target of the cancel op.

Returns:
the target of the cancel op.

setCancel

public void setCancel(java.lang.String cancel)
Sets the cancel string

Parameters:
cancel - the string to set.

getChildren

public java.util.Map getChildren()
Return the map of children

Returns:
the map of children.

setChildren

public void setChildren(java.util.Map childValues)
Sets the children map.

Parameters:
childValues - the map to set.

getIsDomain

public boolean getIsDomain()
Return if the action is a domain management operation.

Returns:
if the action is a domain management operation.

setIsDomain

public void setIsDomain(boolean isDomain)
Sets if the action is a domain management operation.

Parameters:
isDomain - if the action is a domain management operation.

getJonasBase

public java.lang.String getJonasBase()

setJonasBase

public void setJonasBase(java.lang.String jonasBase)