Class UserNode

java.lang.Object
org.exoplatform.portal.mop.user.UserNode

public class UserNode extends Object
A navigation node as seen by a user.
Version:
$Revision$
Author:
Julien Viet
  • Method Details

    • getNavigation

      public UserNavigation getNavigation()
    • getId

      public String getId()
    • filter

      public UserNode filter()
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getURI

      public String getURI()
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getIcon

      public String getIcon()
    • setIcon

      public void setIcon(String icon)
    • getStartPublicationTime

      public long getStartPublicationTime()
    • setStartPublicationTime

      public void setStartPublicationTime(long startPublicationTime)
    • getEndPublicationTime

      public long getEndPublicationTime()
    • setEndPublicationTime

      public void setEndPublicationTime(long endPublicationTime)
    • getVisibility

      public org.exoplatform.portal.mop.Visibility getVisibility()
    • setVisibility

      public void setVisibility(org.exoplatform.portal.mop.Visibility visibility)
    • getPageRef

      public org.exoplatform.portal.mop.page.PageKey getPageRef()
    • setPageRef

      public void setPageRef(org.exoplatform.portal.mop.page.PageKey pageRef)
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getUpdatedDate

      public long getUpdatedDate()
    • getUpdatedDate

      public void getUpdatedDate(long lastUpdatedDate)
    • getResolvedLabel

      public String getResolvedLabel()
    • setResolvedLabel

      public void setResolvedLabel(String label)
    • getEncodedResolvedLabel

      public String getEncodedResolvedLabel()
    • getParent

      public UserNode getParent()
    • hasChildrenRelationship

      public boolean hasChildrenRelationship()
      Returns true if the children relationship determined.
      Returns:
      ture if node has children
    • getChildrenCount

      public int getChildrenCount()
      Returns the number of children.
      Returns:
      the number of children
    • getChildrenSize

      public int getChildrenSize()
    • getChildren

      public Collection<UserNode> getChildren()
    • getChild

      public UserNode getChild(String childName) throws NullPointerException
      Returns a child by its name or null if the child does not exist or the children relationship has not been loaded.
      Parameters:
      childName - the child name
      Returns:
      the corresponding user node
      Throws:
      NullPointerException - if the child name is null
    • getChild

      public UserNode getChild(int childIndex) throws IndexOutOfBoundsException
      Returns a child by its index or null if the children relationship has not been loaded.
      Parameters:
      childIndex - the child index
      Returns:
      the corresponding user node
      Throws:
      IndexOutOfBoundsException - if the children relationship is loaded and the index is outside of its bounds
    • addChild

      public void addChild(UserNode child)
    • addChild

      public void addChild(int index, UserNode child)
    • addChild

      public UserNode addChild(String childName)
    • removeChild

      public boolean removeChild(String childName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toString

      public String toString(int depth)