org.objectweb.jonas.webapp.jonasadmin
Class JonasTreeBuilder

java.lang.Object
  extended byorg.objectweb.jonas.webapp.jonasadmin.JonasTreeBuilder
All Implemented Interfaces:
org.apache.webapp.admin.TreeBuilder

public class JonasTreeBuilder
extends java.lang.Object
implements org.apache.webapp.admin.TreeBuilder

Implementation of TreeBuilder that adds the nodes required for administering the Jonas server.


Constructor Summary
JonasTreeBuilder()
           
 
Method Summary
 void buildTree(org.apache.webapp.admin.TreeControl treeControl, org.apache.webapp.admin.ApplicationServlet servlet, javax.servlet.http.HttpServletRequest request)
          Add the required nodes to the specified treeControl instance.
protected  void getAppContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources)
          Append node for all App Containers.
protected  void getContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources)
          Append node for all Containers.
protected  void getDatasources(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources)
          Append node for all deployed Datasources.
protected  void getDeploymentConnector(org.apache.webapp.admin.TreeControlNode p_NodeDeployments, MessageResources p_Resources)
          Append node for Connector deployment.
protected  void getDeploymentEar(org.apache.webapp.admin.TreeControlNode p_NodeDeployments, MessageResources p_Resources)
          Append node for Ear deployment.
protected  void getDeploymentEjb(org.apache.webapp.admin.TreeControlNode p_NodeDeployments, MessageResources p_Resources)
          Append node for Ejb deployment.
protected  void getDeploymentEjbFiles(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources)
          Append node for Ejb Files deployment.
protected  void getDeployments(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Deployments services for the specified server.
protected  void getDeploymentWebAppli(org.apache.webapp.admin.TreeControlNode p_NodeDeployments, MessageResources p_Resources)
          Append node for Web deployment.
protected  void getEjbs(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources, java.lang.String p_Filename)
          Append node for all Ejbs for a Container.
protected  void getLogging(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Logging.
protected  void getMonitoring(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Monitoring.
protected  void getResourceDatabase(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Database Resource for the specified server.
protected  void getResources(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Resources services for the specified server.
protected  void getSecurity(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for Security for the specified server.
protected  void getSecurityFactories(org.apache.webapp.admin.TreeControlNode p_SecurityNode, MessageResources p_Resources)
          Append nodes for Security factories for the specified server.
protected  void getSecurityMemoryFactory(org.apache.webapp.admin.TreeControlNode p_SecurityMemoryNode, MessageResources p_Resources, java.lang.String p_ResourceFactory)
          Append nodes for Memory Security Factory for the specified server.
protected  void getServer(org.apache.webapp.admin.TreeControlNode p_RootNode, MessageResources p_Resources)
          Append nodes for a defined Jonas server.
protected  void getServiceApp(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Ear service for the JOnAS services.
protected  void getServiceDatabase(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Database service for the JOnAS services.
protected  void getServiceEjbContainer(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for EJBContainer service for the JOnAS services.
protected  void getServiceJms(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Jms service for the JOnAS services.
protected  void getServiceMail(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Mail service for the JOnAS services.
protected  void getServiceResource(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Resource service for the JOnAS services.
protected  void getServices(org.apache.webapp.admin.TreeControlNode p_ServerNode, MessageResources p_Resources)
          Append nodes for all defined services for the specified server.
protected  void getServiceSecurity(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Security service for the JOnAS services.
protected  void getServiceTransaction(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Transaction service for the JOnAS services.
protected  void getServiceWeb(org.apache.webapp.admin.TreeControlNode p_NodeServices, MessageResources p_Resources)
          Append node for Web service for the JOnAS services.
protected  void getWebContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent, MessageResources p_Resources)
          Append node for all Web Containers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JonasTreeBuilder

public JonasTreeBuilder()
Method Detail

buildTree

public void buildTree(org.apache.webapp.admin.TreeControl treeControl,
                      org.apache.webapp.admin.ApplicationServlet servlet,
                      javax.servlet.http.HttpServletRequest request)
Add the required nodes to the specified treeControl instance.

Specified by:
buildTree in interface org.apache.webapp.admin.TreeBuilder
Parameters:
treeControl - The TreeControl to which we should add our nodes
servlet - The controller servlet for the admin application
request - The servlet request we are processing

getServer

protected void getServer(org.apache.webapp.admin.TreeControlNode p_RootNode,
                         MessageResources p_Resources)
                  throws java.lang.Exception
Append nodes for a defined Jonas server.

Parameters:
p_RootNode - Root node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getMonitoring

protected void getMonitoring(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                             MessageResources p_Resources)
                      throws java.lang.Exception
Append nodes for Monitoring.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getLogging

protected void getLogging(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                          MessageResources p_Resources)
                   throws java.lang.Exception
Append nodes for Logging.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServices

protected void getServices(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                           MessageResources p_Resources)
                    throws java.lang.Exception
Append nodes for all defined services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceApp

protected void getServiceApp(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                             MessageResources p_Resources)
                      throws java.lang.Exception
Append node for Ear service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getAppContainers

protected void getAppContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                                MessageResources p_Resources)
                         throws java.lang.Exception
Append node for all App Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceEjbContainer

protected void getServiceEjbContainer(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                                      MessageResources p_Resources)
                               throws java.lang.Exception
Append node for EJBContainer service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getContainers

protected void getContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                             MessageResources p_Resources)
                      throws java.lang.Exception
Append node for all Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getEjbs

protected void getEjbs(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                       MessageResources p_Resources,
                       java.lang.String p_Filename)
                throws java.lang.Exception
Append node for all Ejbs for a Container.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
p_Filename - Filename of container
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceDatabase

protected void getServiceDatabase(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                                  MessageResources p_Resources)
                           throws java.lang.Exception
Append node for Database service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDatasources

protected void getDatasources(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                              MessageResources p_Resources)
                       throws java.lang.Exception
Append node for all deployed Datasources.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceWeb

protected void getServiceWeb(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                             MessageResources p_Resources)
                      throws java.lang.Exception
Append node for Web service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getWebContainers

protected void getWebContainers(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                                MessageResources p_Resources)
                         throws java.lang.Exception
Append node for all Web Containers.

Parameters:
p_NodeParent - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceTransaction

protected void getServiceTransaction(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                                     MessageResources p_Resources)
                              throws java.lang.Exception
Append node for Transaction service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceJms

protected void getServiceJms(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                             MessageResources p_Resources)
                      throws java.lang.Exception
Append node for Jms service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceMail

protected void getServiceMail(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                              MessageResources p_Resources)
                       throws java.lang.Exception
Append node for Mail service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceResource

protected void getServiceResource(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                                  MessageResources p_Resources)
                           throws java.lang.Exception
Append node for Resource service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getServiceSecurity

protected void getServiceSecurity(org.apache.webapp.admin.TreeControlNode p_NodeServices,
                                  MessageResources p_Resources)
                           throws java.lang.Exception
Append node for Security service for the JOnAS services.

Parameters:
p_NodeServices - Services node for the tree control
p_Resources - The MessageResources for our localized messages messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeployments

protected void getDeployments(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                              MessageResources p_Resources)
                       throws java.lang.Exception
Append nodes for Deployments services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentEar

protected void getDeploymentEar(org.apache.webapp.admin.TreeControlNode p_NodeDeployments,
                                MessageResources p_Resources)
                         throws java.lang.Exception
Append node for Ear deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentEjb

protected void getDeploymentEjb(org.apache.webapp.admin.TreeControlNode p_NodeDeployments,
                                MessageResources p_Resources)
                         throws java.lang.Exception
Append node for Ejb deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentEjbFiles

protected void getDeploymentEjbFiles(org.apache.webapp.admin.TreeControlNode p_NodeParent,
                                     MessageResources p_Resources)
                              throws java.lang.Exception
Append node for Ejb Files deployment.

Parameters:
p_NodeParent - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentWebAppli

protected void getDeploymentWebAppli(org.apache.webapp.admin.TreeControlNode p_NodeDeployments,
                                     MessageResources p_Resources)
                              throws java.lang.Exception
Append node for Web deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getDeploymentConnector

protected void getDeploymentConnector(org.apache.webapp.admin.TreeControlNode p_NodeDeployments,
                                      MessageResources p_Resources)
                               throws java.lang.Exception
Append node for Connector deployment.

Parameters:
p_NodeDeployments - Deployment node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getResources

protected void getResources(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                            MessageResources p_Resources)
                     throws java.lang.Exception
Append nodes for Resources services for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getResourceDatabase

protected void getResourceDatabase(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                                   MessageResources p_Resources)
                            throws java.lang.Exception
Append nodes for Database Resource for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurity

protected void getSecurity(org.apache.webapp.admin.TreeControlNode p_ServerNode,
                           MessageResources p_Resources)
                    throws java.lang.Exception
Append nodes for Security for the specified server.

Parameters:
p_ServerNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurityFactories

protected void getSecurityFactories(org.apache.webapp.admin.TreeControlNode p_SecurityNode,
                                    MessageResources p_Resources)
                             throws java.lang.Exception
Append nodes for Security factories for the specified server.

Parameters:
p_SecurityNode - Security node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree

getSecurityMemoryFactory

protected void getSecurityMemoryFactory(org.apache.webapp.admin.TreeControlNode p_SecurityMemoryNode,
                                        MessageResources p_Resources,
                                        java.lang.String p_ResourceFactory)
                                 throws java.lang.Exception
Append nodes for Memory Security Factory for the specified server.

Parameters:
p_SecurityMemoryNode - Server node for the tree control
p_Resources - The MessageResources for our localized messages
Throws:
java.lang.Exception - if an exception occurs building the tree