Package org.apache.webapp.admin

Examples of org.apache.webapp.admin.TreeControl


    public void addToTreeControlNode(ObjectName oname, String containerName,
                                    String parentName, MessageResources resources,
                                    HttpSession session)
        throws Exception {
                             
        TreeControl control = (TreeControl) session.getAttribute("treeControlTest");
        if (control != null) {
            TreeControlNode parentNode = control.findNode(parentName);
            if (parentNode != null) {
                String path = oname.getKeyProperty("path");
                String nodeLabel = "Context (" + path + ")";
                String encodedName = URLEncoder.encode(oname.toString());
                TreeControlNode childNode =
View Full Code Here


            // Look up our MBeanFactory MBean
            ObjectName fname =
                new ObjectName(TomcatTreeBuilder.FACTORY_TYPE);

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified loggers
            for (int i = 0; i < loggers.length; i++) {
                values[0] = loggers[i];
                mBServer.invoke(fname, operation,
                                values, removeLoggerTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(loggers[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         loggers[i]);
View Full Code Here

                rObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createStandardRealmTypes);
                                   
                // Add the new Realm to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    TreeControlNode parentNode = control.findNode(rform.getParentObjectName());
                    if (parentNode != null) {
                        String nodeLabel = rform.getNodeLabel();                       
                        String encodedName =
                            URLEncoder.encode(rObjectName);
                        TreeControlNode childNode =
View Full Code Here

                eObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createStandardEngineTypes);

                // Add the new Service to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName = TomcatTreeBuilder.SERVER_TYPE;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel =
                            "Service (" + sform.getServiceName() + ")";
                        String encodedName =
                            URLEncoder.encode(sObjectName);
View Full Code Here

                rObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createUserDatabaseRealmTypes);

                // Add the new Realm to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    TreeControlNode parentNode = control.findNode(rform.getParentObjectName());
                    if (parentNode != null) {
                        String nodeLabel = rform.getNodeLabel();                       
                        String encodedName =
                            URLEncoder.encode(rObjectName);
                        TreeControlNode childNode =
View Full Code Here

            // Look up our MBeanFactory MBean
            ObjectName fname =
                new ObjectName(TomcatTreeBuilder.FACTORY_TYPE);

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified services
            for (int i = 0; i < services.length; i++) {
                values[0] = services[i];
                mBServer.invoke(fname, operation,
                                values, removeServiceTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(services[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         services[i]);
View Full Code Here

        String values[] = new String[1];
        String operation = "removeConnector";
        try {

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");
               
            // Look up our MBeanFactory MBean
            ObjectName fname = null;
            String domain = null;
            TreeControlNode node = null;

            // Remove the specified connectors
            for (int i = 0; i < connectors.length; i++) {
                values[0] = connectors[i];
                if (control != null) {
                    control.selectNode(null);
                    node = control.findNode(connectors[i]);
                    domain = node.getDomain();
                    // Look up our MBeanFactory MBean
                    fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeConnectorTypes);
View Full Code Here

        String values[] = new String[1];
        String operation = "removeService";
        try {

            // Look up our tree control data structure
            TreeControl control = (TreeControl)
                session.getAttribute("treeControlTest");

            // Remove the specified services
            for (int i = 0; i < services.length; i++) {
                values[0] = services[i];
                ObjectName oname = new ObjectName(services[i]);
                String domain = oname.getDomain();
                ObjectName fname =
                        TomcatTreeBuilder.getMBeanFactory();
                mBServer.invoke(fname, operation,
                                values, removeServiceTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(services[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         services[i]);
View Full Code Here

                                    String parentName, MessageResources resources,
                                    HttpSession session, Locale locale)
        throws Exception {
                             
        String domain = oname.getDomain();
        TreeControl control = (TreeControl) session.getAttribute("treeControlTest");
        if (control != null) {
            TreeControlNode parentNode = control.findNode(parentName);
            if (parentNode != null) {
                String nodeLabel = "DefaultContext";
                String encodedName = URLEncoder.encode(oname.toString());
                TreeControlNode childNode =
                    new TreeControlNode(oname.toString(),
View Full Code Here

                    request.setAttribute("warning", "error.datasourcerealm");
                    return (mapping.findForward("Save Unsuccessful"));
                }

                // Add the new Realm to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    TreeControlNode parentNode = control.findNode(rform.getParentObjectName());
                    if (parentNode != null) {
                        String nodeLabel = rform.getNodeLabel();                       
                        String encodedName =
                            URLEncoder.encode(rObjectName);
                        TreeControlNode childNode =
View Full Code Here

TOP

Related Classes of org.apache.webapp.admin.TreeControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.