Package org.gatein.api.navigation

Examples of org.gatein.api.navigation.Node.filter()


        }

        Node node = getNode(NodePath.root(), true, visitor);
        boolean showAll = showAllAttribute != null && Boolean.parseBoolean(showAllAttribute);
        if (!showAll || !context.getExternalContext().isUserInRole("administrators")) {
            node = node.filter().showDefault();
        }

        return populateNavigationModel(node, scope, context);
    }
View Full Code Here


            visitor = Nodes.visitNodes(scope);
        }
        Node node = getNode(path, true, visitor);
        boolean showAll = showAllAttribute != null && Boolean.parseBoolean(showAllAttribute);
        if (showAll && context.getExternalContext().isUserInRole("administrators")) {
            node = node.filter().showDefault();
        } else {
            node = node.filter().showDefault();
        }

        // Populate the model
View Full Code Here

        Node node = getNode(path, true, visitor);
        boolean showAll = showAllAttribute != null && Boolean.parseBoolean(showAllAttribute);
        if (showAll && context.getExternalContext().isUserInRole("administrators")) {
            node = node.filter().showDefault();
        } else {
            node = node.filter().showDefault();
        }

        // Populate the model
        ModelObject model = modelProvider.newModel(ModelObject.class);
        populateNode(node, scope, model, context.getAddress());
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.