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

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.objectweb.jonas.webapp.jonasadmin.service.ejb.EjbForm
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EjbEntityForm, EjbMessageForm, EjbSessionForm

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

Author:
Michel-Ange ANTON
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
EjbForm()
           
 
Method Summary
 java.lang.String getAction()
           
 int getCacheSize()
           
 java.util.HashMap getDataSources()
           
 java.lang.String getDisplayName()
           
 java.lang.String getEjbClass()
           
 java.lang.String getEjbFileName()
           
 java.lang.String getEjbName()
           
 java.lang.String getFile()
           
 java.lang.String getFilename()
           
 java.lang.String getFullType()
           
 java.lang.String getHomeClass()
           
 java.util.HashMap getJdbcRas()
           
 java.util.ArrayList getJmsConnections()
           
 java.util.ArrayList getJmsDestinations()
           
 java.util.Hashtable getJmsDestinationsTable()
           
 java.lang.String getJndiName()
           
 java.lang.String getLocalClass()
           
 java.lang.String getLocalHomeClass()
           
 java.util.HashMap getMailMimes()
           
 java.util.HashMap getMailSessions()
           
 int getMaxCacheSize()
           
 int getMinPoolSize()
           
 java.lang.String getName()
           
 java.lang.String getObjectName()
           
 int getPoolSize()
           
 java.lang.String getRemoteClass()
           
 java.lang.String getType()
           
 boolean isDatabaseServiceActivated()
           
 boolean isDataSource()
           
 boolean isDependency()
           
 boolean isJmsConnection()
           
 boolean isJmsDestination()
           
 boolean isJmsServiceActivated()
           
 boolean isJoramResourceLoaded()
           
 boolean isMailMime()
           
 boolean isMailServiceActivated()
           
 boolean isMailSession()
           
 boolean isResourceServiceActivated()
           
protected  void numberCheck(org.apache.struts.action.ActionErrors p_Errors, java.lang.String field, java.lang.String numText, boolean rangeCheck, int min, int max)
          Helper method to check that it is a required number and is a valid integer within the given range.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to their default values.
 void setAction(java.lang.String action)
           
 void setCacheSize(int cacheSize)
           
 void setDatabaseServiceActivated(boolean databaseServiceActivated)
           
 void setDataSource(boolean dataSource)
           
 void setDataSources(java.util.HashMap dataSources)
           
 void setDependency(boolean dependency)
           
 void setDisplayName(java.lang.String displayName)
           
 void setEjbClass(java.lang.String ejbClass)
           
 void setEjbFileName(java.lang.String ejbFileName)
           
 void setEjbName(java.lang.String ejbName)
           
 void setFile(java.lang.String file)
           
 void setFullType(java.lang.String fullType)
           
 void setHomeClass(java.lang.String homeClass)
           
 void setJdbcRas(java.util.HashMap jdbcRas)
           
 void setJmsConnection(boolean jmsConnection)
           
 void setJmsConnections(java.util.ArrayList jmsConnections)
           
 void setJmsDestination(boolean jmsDestination)
           
 void setJmsDestinations(java.util.ArrayList jmsDestinations)
           
 void setJmsDestinationsTable(java.util.Hashtable jmsDestinationsTable)
           
 void setJmsServiceActivated(boolean jmsServiceActivated)
           
 void setJndiName(java.lang.String jndiName)
           
 void setJoramResourceLoaded(boolean joramResourceLoaded)
           
 void setLocalClass(java.lang.String localClass)
           
 void setLocalHomeClass(java.lang.String localHomeClass)
           
 void setMailMime(boolean mailMime)
           
 void setMailMimes(java.util.HashMap mailMimes)
           
 void setMailServiceActivated(boolean mailServiceActivated)
           
 void setMailSession(boolean mailSession)
           
 void setMailSessions(java.util.HashMap mailSessions)
           
 void setMaxCacheSize(int maxCacheSize)
           
 void setMinPoolSize(int minPoolSize)
           
 void setName(java.lang.String name)
           
 void setObjectName(java.lang.String objectName)
           
 void setPoolSize(int poolSize)
           
 void setRemoteClass(java.lang.String remoteClass)
           
 void setResourceServiceActivated(boolean resourceServiceActivated)
           
 void setType(java.lang.String type)
           
 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, toString, wait, wait, wait
 

Constructor Detail

EjbForm

public EjbForm()
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:
List of errors or null

getFile

public java.lang.String getFile()

getFilename

public java.lang.String getFilename()

getName

public java.lang.String getName()

getObjectName

public java.lang.String getObjectName()

getType

public java.lang.String getType()

setFile

public void setFile(java.lang.String file)

setName

public void setName(java.lang.String name)

setObjectName

public void setObjectName(java.lang.String objectName)

setType

public void setType(java.lang.String type)

getDisplayName

public java.lang.String getDisplayName()

getEjbClass

public java.lang.String getEjbClass()

getEjbName

public java.lang.String getEjbName()

getHomeClass

public java.lang.String getHomeClass()

getJndiName

public java.lang.String getJndiName()

getLocalClass

public java.lang.String getLocalClass()

getLocalHomeClass

public java.lang.String getLocalHomeClass()

getRemoteClass

public java.lang.String getRemoteClass()

setDisplayName

public void setDisplayName(java.lang.String displayName)

setEjbClass

public void setEjbClass(java.lang.String ejbClass)

setEjbName

public void setEjbName(java.lang.String ejbName)

setHomeClass

public void setHomeClass(java.lang.String homeClass)

setJndiName

public void setJndiName(java.lang.String jndiName)

setLocalClass

public void setLocalClass(java.lang.String localClass)

setLocalHomeClass

public void setLocalHomeClass(java.lang.String localHomeClass)

setRemoteClass

public void setRemoteClass(java.lang.String remoteClass)

getEjbFileName

public java.lang.String getEjbFileName()

setEjbFileName

public void setEjbFileName(java.lang.String ejbFileName)

getFullType

public java.lang.String getFullType()

setFullType

public void setFullType(java.lang.String fullType)

getDataSources

public java.util.HashMap getDataSources()

setDataSources

public void setDataSources(java.util.HashMap dataSources)

isDataSource

public boolean isDataSource()

setDataSource

public void setDataSource(boolean dataSource)

isDependency

public boolean isDependency()

setDependency

public void setDependency(boolean dependency)

isJmsConnection

public boolean isJmsConnection()

setJmsConnection

public void setJmsConnection(boolean jmsConnection)

getJmsConnections

public java.util.ArrayList getJmsConnections()

setJmsConnections

public void setJmsConnections(java.util.ArrayList jmsConnections)

isJmsDestination

public boolean isJmsDestination()

setJmsDestination

public void setJmsDestination(boolean jmsDestination)

getJmsDestinations

public java.util.ArrayList getJmsDestinations()

setJmsDestinations

public void setJmsDestinations(java.util.ArrayList jmsDestinations)

getMailSessions

public java.util.HashMap getMailSessions()

setMailSessions

public void setMailSessions(java.util.HashMap mailSessions)

getMailMimes

public java.util.HashMap getMailMimes()

setMailMimes

public void setMailMimes(java.util.HashMap mailMimes)

isMailSession

public boolean isMailSession()

setMailSession

public void setMailSession(boolean mailSession)

isMailMime

public boolean isMailMime()

setMailMime

public void setMailMime(boolean mailMime)

isDatabaseServiceActivated

public boolean isDatabaseServiceActivated()

setDatabaseServiceActivated

public void setDatabaseServiceActivated(boolean databaseServiceActivated)

isJmsServiceActivated

public boolean isJmsServiceActivated()

setJmsServiceActivated

public void setJmsServiceActivated(boolean jmsServiceActivated)

isMailServiceActivated

public boolean isMailServiceActivated()

setMailServiceActivated

public void setMailServiceActivated(boolean mailServiceActivated)

isJoramResourceLoaded

public boolean isJoramResourceLoaded()
Returns:
Returns the joramResourceLoaded.

setJoramResourceLoaded

public void setJoramResourceLoaded(boolean joramResourceLoaded)
Parameters:
joramResourceLoaded - The joramResourceLoaded to set.

getAction

public java.lang.String getAction()
Returns:
Returns the action.

setAction

public void setAction(java.lang.String action)
Parameters:
action - The action to set.

numberCheck

protected void numberCheck(org.apache.struts.action.ActionErrors p_Errors,
                           java.lang.String field,
                           java.lang.String numText,
                           boolean rangeCheck,
                           int min,
                           int max)
Helper method to check that it is a required number and is a valid integer within the given range. (min, max).

Parameters:
field - The field name in the form for which this error occured.
numText - The string representation of the number.
rangeCheck - Boolean value set to true of reange check should be performed.
min - The lower limit of the range
max - The upper limit of the range error.webapp.setting.sessionTimeout.required

getJmsDestinationsTable

public java.util.Hashtable getJmsDestinationsTable()
Returns:
Returns the jmsDestinationsTable.

setJmsDestinationsTable

public void setJmsDestinationsTable(java.util.Hashtable jmsDestinationsTable)
Parameters:
jmsDestinationsTable - The jmsDestinationsTable to set.

getCacheSize

public int getCacheSize()
Returns:
Returns the cacheSize.

setCacheSize

public void setCacheSize(int cacheSize)
Parameters:
cacheSize - The cacheSize to set.

getMaxCacheSize

public int getMaxCacheSize()
Returns:
Returns the maxCacheSize.

setMaxCacheSize

public void setMaxCacheSize(int maxCacheSize)
Parameters:
maxCacheSize - The maxCacheSize to set.

getMinPoolSize

public int getMinPoolSize()
Returns:
Returns the minPoolSize.

setMinPoolSize

public void setMinPoolSize(int minPoolSize)
Parameters:
minPoolSize - The minPoolSize to set.

getPoolSize

public int getPoolSize()
Returns:
Returns the poolSize.

setPoolSize

public void setPoolSize(int poolSize)
Parameters:
poolSize - The poolSize to set.

isResourceServiceActivated

public boolean isResourceServiceActivated()

setResourceServiceActivated

public void setResourceServiceActivated(boolean resourceServiceActivated)

getJdbcRas

public java.util.HashMap getJdbcRas()

setJdbcRas

public void setJdbcRas(java.util.HashMap jdbcRas)