|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.nurelm.nucontent.model.Node
The parent object of Page, Link, and
File objects.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_NAME
|
static java.lang.String |
DEFAULT_SHORT_DESC
|
protected java.lang.String |
id
|
protected boolean |
isNewWindow
|
protected Site |
site
|
protected int |
transientGeneration
|
protected boolean |
transientIsBottomChildNode
|
protected boolean |
transientIsChildNode
|
protected boolean |
transientIsSelected
|
protected boolean |
transientIsTopChildNode
|
protected int |
version
|
| Constructor Summary | |
|---|---|
protected |
Node()
|
protected |
Node(boolean dummy)
This constructor does nothing. |
protected |
Node(java.lang.String id)
The id (pk) is set to the supplied value. |
| Method Summary | |
|---|---|
abstract boolean |
canBreed()
Returns true if the node can generate child nodes. |
java.lang.String |
getId()
Returns this object's unique NuContent ID. |
boolean |
getIsNewWindow()
Determines if this object will open in new window. |
abstract java.lang.String |
getName()
Gets this Node's name. |
abstract java.lang.String |
getShortDesc()
Gets this Node's short description. |
int |
getTransientGeneration()
The transient variables are not stored in the db. |
boolean |
getTransientIsBottomChildNode()
|
boolean |
getTransientIsChildNode()
|
boolean |
getTransientIsSelected()
|
boolean |
getTransientIsTopChildNode()
|
java.lang.String |
getURI(java.lang.String parentTemplateFile)
Same as getURI(parentTemplateFile, "") |
abstract java.lang.String |
getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
Gets this Node's URI. |
int |
getVersion()
Gets this object's version. |
abstract boolean |
hasChildren()
Returns true if this Node has children nodes. |
abstract boolean |
isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
Returns true if the user represented by the supplied UserValueObject can edit a link to this node. |
abstract boolean |
isChildLinkViewable(UserValueObject userVo,
boolean isParentEditable)
Returns true if the user represented by the supplied UserValueObject can view a link to this node. |
void |
setIsNewWindow(boolean isNewWindow)
Sets new window property. |
abstract void |
setName(java.lang.String name)
Sets this Node's name. |
abstract void |
setShortDesc(java.lang.String shortDesc)
Sets this Node's short description. |
void |
setTransientGeneration(int transientGeneration)
|
void |
setTransientIsBottomChildNode(boolean transientIsBottomChildNode)
|
void |
setTransientIsChildNode(boolean transientIsChildNode)
|
void |
setTransientIsSelected(boolean transientIsSelected)
|
void |
setTransientIsTopChildNode(boolean transientIsTopChildNode)
|
void |
setVersion(int version)
Sets this object's version number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_NAME
public static final java.lang.String DEFAULT_SHORT_DESC
protected java.lang.String id
protected int version
protected boolean isNewWindow
protected Site site
protected transient int transientGeneration
protected transient boolean transientIsSelected
protected transient boolean transientIsChildNode
protected transient boolean transientIsTopChildNode
protected transient boolean transientIsBottomChildNode
| Constructor Detail |
protected Node(boolean dummy)
protected Node()
protected Node(java.lang.String id)
id - A unique NuContent ID.| Method Detail |
public java.lang.String getId()
public int getVersion()
public void setVersion(int version)
public boolean getIsNewWindow()
public void setIsNewWindow(boolean isNewWindow)
isNewWindow - True if this Node object should open in
a new window.public abstract java.lang.String getName()
Node's name.
Node's name.public abstract void setName(java.lang.String name)
Node's name.
name - This Node's name.public abstract java.lang.String getShortDesc()
Node's short description.
Node's short description.public abstract void setShortDesc(java.lang.String shortDesc)
Node's short description.
shortDesc - This Node's short description.
public abstract java.lang.String getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
Node's URI.
parentTemplateFile - 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 java.lang.String getURI(java.lang.String parentTemplateFile)
public abstract boolean hasChildren()
Node has children nodes.
Node has children.
public abstract boolean isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
userVo - Represents the user who will be editing children.isParentEditable - True if parent is editable.
User
public abstract boolean isChildLinkViewable(UserValueObject userVo,
boolean isParentEditable)
userVo - Represents the user who will be editing children.isParentEditable - True if parent is editable.
Userpublic abstract boolean canBreed()
public int getTransientGeneration()
public void setTransientGeneration(int transientGeneration)
public boolean getTransientIsSelected()
public void setTransientIsSelected(boolean transientIsSelected)
public boolean getTransientIsChildNode()
public void setTransientIsChildNode(boolean transientIsChildNode)
public boolean getTransientIsTopChildNode()
public void setTransientIsTopChildNode(boolean transientIsTopChildNode)
public boolean getTransientIsBottomChildNode()
public void setTransientIsBottomChildNode(boolean transientIsBottomChildNode)
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||