|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.nucontent.model.Node
com.nurelm.nucontent.model.Link
Represents a NuContent link.
Corresponds to the tag
| Field Summary | |
|---|---|
protected java.lang.String |
name
|
protected java.lang.String |
shortDesc
|
| Fields inherited from class com.nurelm.nucontent.model.Node |
|---|
DEFAULT_NAME, DEFAULT_SHORT_DESC, id, isNewWindow, site, transientGeneration, transientIsBottomChildNode, transientIsChildNode, transientIsSelected, transientIsTopChildNode, version |
| Constructor Summary | |
|---|---|
protected |
Link()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor. |
|
Link(java.lang.String name,
java.lang.String shortDesc,
java.lang.String link)
Creates a new Link object. |
| Method Summary | |
|---|---|
boolean |
canBreed()
Returns true if the node can generate child nodes. |
java.lang.String |
getId()
Gets the NuContent ID associated with this link. |
java.lang.String |
getLink()
Gets the URL associated with this link. |
java.lang.String |
getName()
Gets the name of this link. |
java.lang.String |
getShortDesc()
Gets this link's short description. |
java.lang.String |
getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
Gets this Node's URI. |
boolean |
hasChildren()
Indicates if this link (which extends Node has children,
which it never does (links don't have sublinks, unlike Page
objects. |
boolean |
isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
Returns true if the user represented by the supplied UserValueObject can edit a link to this node. |
boolean |
isChildLinkViewable(UserValueObject userVo,
boolean isParentViewable)
Returns true if the user represented by the supplied UserValueObject can view a link to this node. |
void |
setLink(java.lang.String link)
Sets the URL associated with this link. |
void |
setName(java.lang.String name)
Sets the name of this link. |
void |
setShortDesc(java.lang.String shortDesc)
Sets this link's short description. |
| Methods inherited from class com.nurelm.nucontent.model.Node |
|---|
getIsNewWindow, getTransientGeneration, getTransientIsBottomChildNode, getTransientIsChildNode, getTransientIsSelected, getTransientIsTopChildNode, getURI, getVersion, setIsNewWindow, setTransientGeneration, setTransientIsBottomChildNode, setTransientIsChildNode, setTransientIsSelected, setTransientIsTopChildNode, setVersion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String name
protected java.lang.String shortDesc
| Constructor Detail |
protected Link()
public Link(java.lang.String name,
java.lang.String shortDesc,
java.lang.String link)
name - Name of the link, which is displayed when the link is shown
in a list of subsections.shortDesc - Displayed when the link is shown in a long list of
subsections.link - The URL of the link.| Method Detail |
public void setLink(java.lang.String link)
link - The URL corresponding to this link.public java.lang.String getLink()
public java.lang.String getId()
getId in class Nodepublic void setName(java.lang.String name)
setName in class Nodename - The name to be set.public java.lang.String getName()
getName in class Nodepublic void setShortDesc(java.lang.String shortDesc)
setShortDesc in class NodeshortDesc - This link's short description.public java.lang.String getShortDesc()
getShortDesc in class Node
public java.lang.String getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
NodeNode's URI.
getURI in class NodeparentTemplateFile - The URI of the parent document's template file,
with no context path included.contextPath - The current webapp's context path as returned from
request.getContextPath().
Node's URI.public boolean hasChildren()
Node has children,
which it never does (links don't have sublinks, unlike Page
objects.
hasChildren in class Node
public boolean isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
Node
isChildLinkEditable in class NodeuserVo - Represents the user who will be editing children.isParentEditable - True if parent is editable.
User
public boolean isChildLinkViewable(UserValueObject userVo,
boolean isParentViewable)
Node
isChildLinkViewable in class NodeuserVo - Represents the user who will be editing children.isParentViewable - True if parent is editable.
Userpublic boolean canBreed()
Node
canBreed in class Node
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||