Examples of TreeControlNode


Examples of org.apache.webapp.admin.TreeControlNode

                // 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 =
                            new TreeControlNode(rObjectName,
                                                "Realm.gif",
                                                nodeLabel,
                                                "EditRealm.do?select=" +
                                                encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                TreeControl control = (TreeControl)
                    session.getAttribute("treeControlTest");
                if (control != null) {
                    String parentName =
                          TomcatTreeBuilder.SERVICE_TYPE + ",name=" + serviceName;
                    TreeControlNode parentNode = control.findNode(parentName);
                    if (parentNode != null) {
                        String nodeLabel =
                            "Host (" + hform.getHostName() + ")";
                        String encodedName =
                            URLEncoder.encode(hObjectName);
                        TreeControlNode childNode =
                            new TreeControlNode(hObjectName,
                                                "Host.gif",
                                                nodeLabel,
                                                "EditHost.do?select=" +
                                                encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                // 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 =
                            new TreeControlNode(rObjectName,
                                                "Realm.gif",
                                                nodeLabel,
                                                "EditRealm.do?select="
                                                + encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

     *  messages
     */
    protected void addSubtree(TreeControlNode root,
                              MessageResources resources) {

        TreeControlNode subtree = new TreeControlNode
            ("Global Resource Administration",
             "folder_16_pad.gif",
             resources.getMessage("resources.treeBuilder.subtreeNode"),
             null,
             "content",
             true);       
        TreeControlNode datasources = new TreeControlNode
            ("Globally Administer Data Sources",
             "Datasource.gif",
             resources.getMessage("resources.treeBuilder.datasources"),
             "resources/listDataSources.do?resourcetype=Global&forward=" +
             URLEncoder.encode("DataSources List Setup"),
             "content",
             false);
        TreeControlNode mailsessions = new TreeControlNode
            ("Globally Administer Mail Sessions ",
            "Mailsession.gif",
            resources.getMessage("resources.treeBuilder.mailsessions"),
            "resources/listMailSessions.do?resourcetype=Global&forward=" +
            URLEncoder.encode("MailSessions List Setup"),
            "content",
            false);
        TreeControlNode userdbs = new TreeControlNode
            ("Globally Administer UserDatabase Entries",
             "Realm.gif",
             resources.getMessage("resources.treeBuilder.databases"),
             "resources/listUserDatabases.do?forward=" +
             URLEncoder.encode("UserDatabases List Setup"),
             "content",
             false);
        TreeControlNode envs = new TreeControlNode
            ("Globally Administer Environment Entries",
             "EnvironmentEntries.gif",
            resources.getMessage("resources.env.entries"),
            "resources/listEnvEntries.do?resourcetype=Global&forward=" +
            URLEncoder.encode("EnvEntries List Setup"),
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                                   
                // 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 =
                            new TreeControlNode(rObjectName,
                                                "Realm.gif",
                                                nodeLabel,
                                                "EditRealm.do?select=" +
                                                encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                // 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 =
                            new TreeControlNode(rObjectName,
                                                "Realm.gif",
                                                nodeLabel,
                                                "EditRealm.do?select=" +
                                                encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                              MessageResources resources) {

        String databaseName = URLEncoder.encode
          ("Users:type=UserDatabase,database=UserDatabase");

        TreeControlNode subtree = new TreeControlNode
            ("Global User and Group Administration",
             "folder_16_pad.gif",
             resources.getMessage("users.treeBuilder.subtreeNode"),
             null,
             "content",
             true);
        TreeControlNode groups = new TreeControlNode
            ("Global Administer Groups",
             "Groups.gif",
             resources.getMessage("users.treeBuilder.groupsNode"),
             "users/listGroups.do?databaseName=" +
             URLEncoder.encode(databaseName) +
             "&forward=" +
             URLEncoder.encode("Groups List Setup"),
             "content",
             false);
        TreeControlNode roles = new TreeControlNode
            ("Global Administer Roles",
             "Roles.gif",
             resources.getMessage("users.treeBuilder.rolesNode"),
             "users/listRoles.do?databaseName=" +
             URLEncoder.encode(databaseName) +
             "&forward=" +
             URLEncoder.encode("Roles List Setup"),
             "content",
             false);
        TreeControlNode users = new TreeControlNode
            ("Global Administer Users",
             "Users.gif",
             resources.getMessage("users.treeBuilder.usersNode"),
             "users/listUsers.do?databaseName=" +
             URLEncoder.encode(databaseName) +
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                values[0] = contexts[i];
                mBServer.invoke(fname, operation,
                                values, removeContextTypes);
                if (control != null) {
                    control.selectNode(null);
                    TreeControlNode node = control.findNode(contexts[i]);
                    if (node != null) {
                        node.remove();
                    } else {
                        getServlet().log("Missing TreeControlNode for " +
                                         contexts[i]);
                    }
                } else {
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                                    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 =
                           "Logger for " + parentNode.getLabel();
                        String encodedName =
                            URLEncoder.encode(lObjectName);
                        TreeControlNode childNode =
                            new TreeControlNode(lObjectName,
                                                "Logger.gif",
                                                nodeLabel,
                                                "EditLogger.do?select=" +
                                                encodedName,
                                                "content",
View Full Code Here

Examples of org.apache.webapp.admin.TreeControlNode

                                    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 =
                    new TreeControlNode(oname.toString(),
                                        "Context.gif",
                                        nodeLabel,
                                        "EditContext.do?select=" +
                                        encodedName,
                                        "content",
                                        true);
                parentNode.addChild(childNode);
                // FIXME - force a redisplay
                String type = oname.getKeyProperty("type");
                if (type == null) {
                    type = "";
                }
                if (path == null) {
                    path = "";
                }       
                String host = oname.getKeyProperty("host");
                if (host == null) {
                    host = "";
                }       
                String service = oname.getKeyProperty("service");
                TreeControlNode subtree = new TreeControlNode
                    ("Context Resource Administration " + containerName,
                    "folder_16_pad.gif",
                    resources.getMessage("resources.treeBuilder.subtreeNode"),
                    null,
                    "content",
                    true);       
                childNode.addChild(subtree);
                TreeControlNode datasources = new TreeControlNode
                    ("Context Data Sources " + containerName,
                    "Datasource.gif",
                    resources.getMessage("resources.treeBuilder.datasources"),
                    "resources/listDataSources.do?resourcetype=" +
                    URLEncoder.encode(type) + "&path=" +
                    URLEncoder.encode(path) + "&host=" +
                    URLEncoder.encode(host) + "&service=" +
                    URLEncoder.encode(service) + "&forward=" +
                    URLEncoder.encode("DataSources List Setup"),
                    "content",
                    false);
                TreeControlNode mailsessions = new TreeControlNode
                    ("Context Mail Sessions " + containerName,
                    "Mailsession.gif",
                    resources.getMessage("resources.treeBuilder.mailsessions"),
                    "resources/listMailSessions.do?resourcetype=" +
                    URLEncoder.encode(type) + "&path=" +
                    URLEncoder.encode(path) + "&host=" +
                    URLEncoder.encode(host) + "&service=" +
                    URLEncoder.encode(service) + "&forward=" +
                    URLEncoder.encode("MailSessions List Setup"),
                    "content",
                    false);
                TreeControlNode resourcelinks = new TreeControlNode
                    ("Resource Links " + containerName,
                    "ResourceLink.gif",
                    resources.getMessage("resources.treeBuilder.resourcelinks"),
                    "resources/listResourceLinks.do?resourcetype=" +
                    URLEncoder.encode(type) + "&path=" +
                    URLEncoder.encode(path) + "&host=" +
                    URLEncoder.encode(host) + "&service=" +
                    URLEncoder.encode(service) + "&forward=" +
                    URLEncoder.encode("ResourceLinks List Setup"),
                    "content",
                    false);
                TreeControlNode envs = new TreeControlNode
                    ("Context Environment Entries "+ containerName,
                    "EnvironmentEntries.gif",
                    resources.getMessage("resources.env.entries"),
                    "resources/listEnvEntries.do?resourcetype=" +
                    URLEncoder.encode(type) + "&path=" +
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.