@Test(expected = EntityAlreadyExistsException.class) public void addChildExisting() { createNavigationChildren(); Node node = navigation.getRootNode(Nodes.visitAll()); node.getChild("parent").addChild("child"); }
@Override public Node getRootNode(NodeVisitor visitor) { NodeContext<ApiNode> ctx = loadNodeContext(visitor); return (ctx == null) ? null : ctx.getNode(); }
NavigationImpl implements Navigation { @Override public Node getRootNode(NodeVisitor visitor) { NodeContext<ApiNode> ctx = loadNodeContext(visitor); return (ctx == null) ? null : ctx.getNode(); } }
NavigationImpl implements Navigation { @Override public Node getRootNode(NodeVisitor visitor) { NodeContext<ApiNode> ctx = loadNodeContext(visitor); return (ctx == null) ? null : ctx.getNode(); } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); }
NavigationImpl implements Navigation { @Override public Node getRootNode(NodeVisitor visitor) { NodeContext<ApiNode> ctx = loadNodeContext(visitor); return (ctx == null) ? null : ctx.getNode(); } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); @Override boolean removeNode(NodePath path); @Override Node getNode(String... nodePath); @Override Node getNode(NodePath nodePath); @Override Node getNode(NodePath nodePath, NodeVisitor visitor); @Override int getPriority(); @Override SiteId getSiteId(); @Override Node getRootNode(NodeVisitor visitor); @Override void refreshNode(Node node); @Override void refreshNode(Node node, NodeVisitor visitor); @Override void saveNode(Node node); @Override void setPriority(int priority); }
NavigationImpl implements Navigation { @Override public Node getRootNode(NodeVisitor visitor) { NodeContext<ApiNode> ctx = loadNodeContext(visitor); return (ctx == null) ? null : ctx.getNode(); } NavigationImpl(SiteId siteId, NavigationService navigationService, NavigationContext navCtx, DescriptionService descriptionService,
            ResourceBundleManager bundleManager);   NavigationImpl(SiteId siteId); @Override boolean removeNode(NodePath path); @Override Node getNode(String... nodePath); @Override Node getNode(NodePath nodePath); @Override Node getNode(NodePath nodePath, NodeVisitor visitor); @Override int getPriority(); @Override SiteId getSiteId(); @Override Node getRootNode(NodeVisitor visitor); @Override void refreshNode(Node node); @Override void refreshNode(Node node, NodeVisitor visitor); @Override void saveNode(Node node); @Override void setPriority(int priority);  }