Package org.apache.webapp.admin

Examples of org.apache.webapp.admin.TreeControl


                cObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createStandardConnectorTypes);
               
                // Add the new Connector to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName = serviceName;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel = resources.getMessage(locale,
                            "server.service.treeBuilder.connector") + " (" +
                            cform.getPortText() + ")";
                        String encodedName =
View Full Code Here


        String operation = "removeHost";

        try {

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

            // Remove the specified hosts
            for (int i = 0; i < hosts.length; i++) {
                values[0] = hosts[i];
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(hosts[i]);
                    String domain = node.getDomain();
                    ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeHostTypes);
                    if (node != null) {
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

                    request.setAttribute("warning", "error.userdbrealm");
                    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

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

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

            // Remove the specified realms
            for (int i = 0; i < realms.length; i++) {
                values[0] = realms[i];
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(realms[i]);
                    String domain = node.getDomain();
                    ObjectName fname =
                        TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeRealmTypes);
View Full Code Here

                hObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createStandardHostTypes);

                // Add the new Host to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName = serviceName;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel =
                            resources.getMessage(locale, "server.service.treeBuilder.host") +
                            " (" + hform.getHostName() + ")";
                        String encodedName =
View Full Code Here

        String operation = "removeContext";

        try {

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

            // Remove the specified contexts
            for (int i = 0; i < contexts.length; i++) {
                values[0] = contexts[i];
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(contexts[i]);
                    String domain = node.getDomain();
                    ObjectName fname = TomcatTreeBuilder.getMBeanFactory();
                    mBServer.invoke(fname, operation,
                                values, removeContextTypes);
                    if (node != null) {
View Full Code Here

                operation = "create" + loggerType;
                lObjectName = (String)
                    mBServer.invoke(fname, operation,
                                    values, createStandardLoggerTypes);
                // Add the new Logger to our tree control node
                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    TreeControlNode parentNode = control.findNode(lform.getParentObjectName());
                    if (parentNode != null) {
                        String nodeLabel =
                            resources.getMessage(locale,
                                "server.service.treeBuilder.loggerFor",
                                parentNode.getLabel().toString());
View Full Code Here

                    request.setAttribute("warning", "error.jdbcrealm");
                    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

                                    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 type = "Context";
                String path = "";
                String host = "";
                String name = oname.getKeyProperty("name");
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.