public String getResolvedLabel() { String resolvedLabel = node.getResolvedLabel(); return resolvedLabel == null ? "" : resolvedLabel; }
public void setName(String name) { node.setName(name); }
public Visibility getVisibility() { return node.getVisibility(); }
public static Collection<UserNode> getUserNodes(UserNavigation nav) { UserPortal userPortall = getUserPortal(); if (nav != null) { try { UserNode rootNode = userPortall.getNode(nav, Scope.CHILDREN, toolbarFilterConfig, null); return rootNode.getChildren(); } catch (Exception exp) { LOG.warn(nav.getKey().getName() + " has been deleted"); } } return Collections.emptyList(); }
public void setUserPortal(UserPortal userPortal) throws Exception { this.userPortal = userPortal; setFilterConfig(UserNodeFilterConfig.builder().withReadWriteCheck().build()); }
public void setLabel(String label) { node.setLabel(label); }
public String getName() { return node.getName(); }
public String getURI() { return node.getURI(); }
public void addChild(TreeNode child) { TreeNode oldParent = child.getParent(); if (oldParent != null) { oldParent.children = null; } children = null; this.node.addChild(child.getNode()); }
public TreeNode rebaseNode(TreeNode treeNode, Scope scope) throws Exception { if (treeNode == null || treeNode.getNode() == null) { return null; } UserNode userNode = treeNode.getNode(); if (userNode.getId() == null) { // Transient node return treeNode; } userPortal.rebaseNode(userNode, scope, getRootNode()); // this line return null if node has been deleted return findNode(treeNode.getId()); }
public String getIcon() { return node.getIcon(); }
public long getStartPublicationTime() { return node.getStartPublicationTime(); }
public String getLabel() { return node.getLabel(); }
public void setStartPublicationTime(long startPublicationTime) { node.setStartPublicationTime(startPublicationTime); }
public void setEndPublicationTime(long endPublicationTime) { node.setEndPublicationTime(endPublicationTime); }
public int getChildrenCount() { return node.getChildrenCount(); }
public void setIcon(String icon) { node.setIcon(icon); }
public long getEndPublicationTime() { return node.getEndPublicationTime(); }
public boolean hasChildrenRelationship() { return node.hasChildrenRelationship(); }
public void setVisibility(Visibility visibility) { node.setVisibility(visibility); }