Package org.gatein.api.navigation

Examples of org.gatein.api.navigation.Navigation


    public List<String> loadRedirectNodes() {
        try {
            ArrayList<String> nodes = new ArrayList<String>();
            if (this.pr.getRedirectSite() != null) {
                Navigation nav = PortalRequest.getInstance().getPortal().getNavigation(new SiteId(this.pr.getRedirectSite()));
                if (nav != null) {
                    Node n = nav.getRootNode(Nodes.visitAll());
                    for (Node node : Nodes.asList(n)) {
                        nodes.add(node.getNodePath().toString());
                    }
                }
            }
View Full Code Here


    private void outputSite(Site site, PrintWriter writer) throws IOException {
        writer.println("<h2>" + site.getDisplayName() + "</h2>");
        writer.println("<ul>");

        Navigation navigation = PortalRequest.getInstance().getPortal().getNavigation(site.getId());
        if (navigation != null) {
            for (Node node : navigation.getRootNode(Nodes.visitAll())) {
                outputNode(node, writer);
            }
        } else {
            writer.println("<h3>NULL or EMPTY Navigation</h3>");
        }
View Full Code Here

        return navigationResource(id, context);
    }

    private NavigationManagementResource navigationResource(SiteId siteId, OperationContext context) {
        requireSite(siteId, context);
        Navigation navigation = portal.getNavigation(siteId);
        if (navigation == null) {
            throw new ResourceNotFoundException("Navigation does not exist for site " + siteId);
        }

        return new NavigationManagementResource(navigation, modelProvider);
View Full Code Here

TOP

Related Classes of org.gatein.api.navigation.Navigation

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.