Package org.gatein.api.navigation

Examples of org.gatein.api.navigation.Node


    @ManagedRole("administrators")
    @ManagedOperation(name = OperationNames.UPDATE_RESOURCE, description = "Updates the navigation node")
    public ModelObject updateNode(@MappedPath("path") String path, @ManagedContext ModelObject nodeModel, @ManagedContext PathAddress address) {

        // Update node from model
        Node node = getNode(path, true);
        updateNodeFromModel(node, nodeModel);

        // Save node
        navigation.saveNode(node);
View Full Code Here


    private Node getNode(NodePath path, boolean require) {
        return getNode(path, require, Nodes.visitNone());
    }

    private Node getNode(NodePath path, boolean require, NodeVisitor visitor) {
        Node node = navigation.getNode(path, visitor);
        if (node == null && require)
            throw notFound("Cannot retrieve node", navigation.getSiteId(), path);

        return node;
    }
View Full Code Here

TOP

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

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.