Package lib

Examples of lib.BreadcrumbList


            List<Node> nodes = servernodes.all();
            List<Radio> radios = Lists.newArrayList();
            radios.addAll(nodeService.radios().values());

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Inputs", routes.InputsController.index());

            return ok(views.html.system.inputs.index.render(
                    currentUser(),
                    bc,
                    globalInputs,
View Full Code Here


                    clusterEntityInputStateMap.put(node, inputState);
                    globalInputs.put(inputState.getInput(), clusterEntityInputStateMap);
                }
            }

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(node.getShortNodeId(), routes.NodesController.node(node.getNodeId()));
            bc.addCrumb("Inputs", routes.InputsController.manage(node.getNodeId()));

            return ok(views.html.system.inputs.manage.render(
                    currentUser(),
                    bc,
                    node,
View Full Code Here

                    clusterEntityInputStateMap.put(radio, inputState);
                    globalInputs.put(inputState.getInput(), clusterEntityInputStateMap);
                }
            }

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(radio.getShortNodeId(), routes.RadiosController.show(radio.getId()));
            bc.addCrumb("Inputs", routes.InputsController.manageRadio(radio.getId()));

            return ok(views.html.system.inputs.manage_radio.render(
                    currentUser(),
                    bc,
                    radio,
View Full Code Here

        }
        return redirect(routes.UsersController.index());
    }

    private BreadcrumbList breadcrumbs() {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", routes.SystemController.index(0));
        bc.addCrumb("Users", routes.UsersController.index());
        bc.addCrumb("LDAP settings", routes.LdapController.index());

        return bc;
    }
View Full Code Here

    public Result show(String id) {
        final User currentUser = currentUser();
        try {
            Dashboard dashboard = dashboardService.get(id);

            final BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("Dashboards", routes.DashboardsController.index());
            bc.addCrumb(dashboard.getTitle(), routes.DashboardsController.show(dashboard.getId()));

            return ok(views.html.dashboards.show.render(currentUser, bc, dashboard));
        } catch (APIException e) {
            if (e.getHttpCode() == NOT_FOUND || e.getHttpCode() == FORBIDDEN) {
                String msg = "The requested dashboard was deleted and no longer exists.";
View Full Code Here

            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        }
    }

    public Result newDashboard() {
        final BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("Dashboards", routes.DashboardsController.index());
        bc.addCrumb("Create", routes.DashboardsController.newDashboard());

        return ok(views.html.dashboards.new_dashboard.render(currentUser(), bc, createDashboardForm));
    }
View Full Code Here

        List<Output> outputs = streamService.getOutputs(streamId);

        List<Output> otherOutputs = outputService.list();
        otherOutputs.removeAll(outputs);

        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("Streams", routes.StreamsController.index());
        bc.addCrumb("Outputs of " + stream.getTitle(), routes.StreamOutputsController.index(stream.getId()));

        return ok(views.html.streams.outputs.index.render(currentUser(),
                bc,
                outputs,
                otherOutputs,
View Full Code Here

    @Inject
    private IndexService indexService;

    public Result index() {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", routes.SystemController.index(0));
        bc.addCrumb("Indices", routes.IndicesController.index());

        try {
            ESClusterHealth clusterHealth = clusterService.getESClusterHealth();
            DeflectorInformationResponse deflector = indexService.getDeflectorInfo();
            DeflectorConfigResponse deflectorConfig = indexService.getDeflectorConfig();
View Full Code Here

            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        }
    }

    public Result failures(Integer page) {
        BreadcrumbList bc = new BreadcrumbList();
        bc.addCrumb("System", routes.SystemController.index(0));
        bc.addCrumb("Indices", routes.IndicesController.index());
        bc.addCrumb("Failures", routes.IndicesController.failures(0));

        try {
            return ok(views.html.system.indices.failures.render(
                    currentUser(),
                    bc,
View Full Code Here

    public Result ofNode(String nodeId, String preFilter) {
        try {
            Node node = nodeService.loadNode(nodeId);

            BreadcrumbList bc = new BreadcrumbList();
            bc.addCrumb("System", routes.SystemController.index(0));
            bc.addCrumb("Nodes", routes.NodesController.nodes());
            bc.addCrumb(node.getShortNodeId(), routes.NodesController.node(node.getNodeId()));
            bc.addCrumb("Metrics", routes.MetricsController.ofNode(node.getNodeId(), ""));

            Map<String, Metric> metrics = node.getMetrics("org.graylog2");

            return ok(views.html.system.metrics.of_node.render(currentUser(), bc, node, metrics, preFilter));
        } catch (IOException e) {
View Full Code Here

TOP

Related Classes of lib.BreadcrumbList

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.