Package org.exoplatform.portal.mop.user
Class UserNode
java.lang.Object
org.exoplatform.portal.mop.user.UserNode
A navigation node as seen by a user.
-
Method Summary
Modifier and TypeMethodDescriptionvoidvoidfilter()getChild(int childIndex) Returns a child by its index or null if the children relationship has not been loaded.Returns a child by its name or null if the child does not exist or the children relationship has not been loaded.intReturns the number of children.intlonggetIcon()getId()getLabel()getName()org.exoplatform.portal.mop.page.PageKeylonglongvoidgetUpdatedDate(long lastUpdatedDate) getURI()org.exoplatform.portal.mop.VisibilitybooleanReturns true if the children relationship determined.booleanremoveChild(String childName) voidsetEndPublicationTime(long endPublicationTime) voidvoidvoidvoidsetPageRef(org.exoplatform.portal.mop.page.PageKey pageRef) voidsetResolvedLabel(String label) voidsetStartPublicationTime(long startPublicationTime) voidvoidsetVisibility(org.exoplatform.portal.mop.Visibility visibility) toString()toString(int depth)
-
Method Details
-
getId
-
filter
-
getName
-
setName
-
getURI
-
getLabel
-
setLabel
-
getIcon
-
setIcon
-
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
-
setTarget
-
getUpdatedDate
public long getUpdatedDate() -
getUpdatedDate
public void getUpdatedDate(long lastUpdatedDate) -
getResolvedLabel
-
setResolvedLabel
-
getEncodedResolvedLabel
-
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
-
getChild
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
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
-
addChild
-
addChild
-
removeChild
-
toString
-
toString