org.objectweb.jonas.webapp.jonasadmin.joramplatform
Class EditJoramBaseAction

java.lang.Object
  extended byorg.apache.struts.action.Action
      extended byorg.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
          extended byorg.objectweb.jonas.webapp.jonasadmin.joramplatform.EditJoramBaseAction
Direct Known Subclasses:
CreateJoramDestinationAction, CreateJoramLocalDestinationAction, EditJoramDestinationAction, EditJoramLocalQueueAction, EditJoramLocalServerAction, EditJoramLocalTopicAction, EditJoramPlatformAction, EditJoramQueueAction, EditJoramRemoteServerAction, EditJoramResourceAdapterAction, EditJoramServerAction, EditJoramTopicAction, EditJoramUserAction, ListJoramServersAction, ListLocalDestinationsAction, ListRemoteDestinationsAction

public abstract class EditJoramBaseAction
extends JonasBaseAction

Author:
Adriana Danes

Field Summary
 
Fields inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
DEPTH_DOMAIN, DEPTH_SERVER, m_Errors, m_Resources, m_Session, m_WhereAreYou
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EditJoramBaseAction()
           
 
Method Summary
protected  java.lang.String currentServerId(java.lang.String id)
          Determine the server Id from a String structure as follows: id=#x.y.z.
 ItemDestination getDestinationItem(java.lang.String joramAdminDestination)
          Create a ItemDestination object from a String structured as follows: type=queue/topic, name=destName, id=#x.y.z
protected  void getStatistics(javax.management.ObjectName destOn, MonitoringDestForm oMonitForm, DestinationForm oForm)
           
protected  ItemUser getUserItem(java.lang.String joramAdminUser)
          Create a ItemUser object from a String structured as follows: User[anonymous]:#0.0.1035
protected  boolean hasDeps(java.lang.String pDestName)
           
protected  void initRefs()
           
protected  void populateDestination(javax.management.ObjectName destOn, DestinationForm oForm)
           
 void printDestination(ItemDestination dest)
           
protected  org.apache.struts.action.ActionForward treatError(java.lang.Throwable pThrowable, org.apache.struts.action.ActionMapping pMapping, javax.servlet.http.HttpServletRequest pRequest)
          Treat specific case where Joram RAR was unloaded
 
Methods inherited from class org.objectweb.jonas.webapp.jonasadmin.JonasBaseAction
addGlobalError, execute, executeAction, getBooleanAttribute, getBooleanAttribute, getBooleanAttribute, getIntegerAttribute, getIntegerAttribute, getIntegerAttribute, getListAttribute, getLongAttribute, getLongAttribute, getLongAttribute, getPropsFromString, getShortAttribute, getStringArrayAttribute, getStringAttribute, getStringAttribute, getStringAttribute, getTreeBranchName, initialize, refreshDomainDeployTree, refreshServerTree, removeChar, setBooleanAttribute, setBooleanAttribute, setIntegerAttribute, setIntegerAttribute, setIntegerAttribute, setLongAttribute, setLongAttribute, setShortAttribute, setStringAttribute, setStringAttribute, setStringAttribute, toStringBooleanAttribute, toStringIntegerAttribute, toStringLongAttribute, toStringShortAttribute
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditJoramBaseAction

public EditJoramBaseAction()
Method Detail

treatError

protected org.apache.struts.action.ActionForward treatError(java.lang.Throwable pThrowable,
                                                            org.apache.struts.action.ActionMapping pMapping,
                                                            javax.servlet.http.HttpServletRequest pRequest)
Treat specific case where Joram RAR was unloaded

Parameters:
pMapping - provided by executeAction
pRequest - provided by executeAction
Returns:

getDestinationItem

public ItemDestination getDestinationItem(java.lang.String joramAdminDestination)
                                   throws javax.management.MalformedObjectNameException
Create a ItemDestination object from a String structured as follows: type=queue/topic, name=destName, id=#x.y.z

Parameters:
joramAdminDestination - String containing destination description
Returns:
ItemDestination containing name, type, id and ObjectName of the MBean associated to the corresponding destination
Throws:
javax.management.MalformedObjectNameException

getUserItem

protected ItemUser getUserItem(java.lang.String joramAdminUser)
                        throws javax.management.MalformedObjectNameException
Create a ItemUser object from a String structured as follows: User[anonymous]:#0.0.1035

Parameters:
joramAdminUser - String containing user description
Returns:
ItemUser containing name and ObjectName of the MBean associated to the corresponding user
Throws:
javax.management.MalformedObjectNameException

printDestination

public void printDestination(ItemDestination dest)

initRefs

protected void initRefs()

hasDeps

protected boolean hasDeps(java.lang.String pDestName)

currentServerId

protected java.lang.String currentServerId(java.lang.String id)
Determine the server Id from a String structure as follows: id=#x.y.z. The serrver id to be returned is "x"

Parameters:
id - #x.y.z
Returns:
x

populateDestination

protected void populateDestination(javax.management.ObjectName destOn,
                                   DestinationForm oForm)

getStatistics

protected void getStatistics(javax.management.ObjectName destOn,
                             MonitoringDestForm oMonitForm,
                             DestinationForm oForm)