|
||||||||||||
| 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.File
Contains information corresponding to a file on the server's filesystem.
This object, based on Node, can be part of either a Site
object's rootPageList, or a Page object's
childNodeList
| 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 |
File()
Does nothing, used nowhere, but eliminates JDO complie-time warning about not having a zero-args constructor. |
|
File(java.lang.String name,
java.lang.String shortDesc,
java.lang.String fileName)
Creates a new File object. |
| Method Summary | |
|---|---|
boolean |
canBreed()
Indicates if this object can have children, which it never will. |
java.lang.String |
getFileName()
|
java.lang.String |
getName()
Get this object's descriptive name. |
java.lang.String |
getShortDesc()
Get this object's short description. |
java.lang.String |
getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
Get this object's URI. |
boolean |
hasChildren()
Indicates if this object has children, which it never will. |
boolean |
isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
Used to check if child links are editable. |
boolean |
isChildLinkViewable(UserValueObject userVo,
boolean isParentViewable)
Used to check if child links are editable. |
void |
setFileName(java.lang.String fileName)
Set this object's filesystem filename. |
void |
setName(java.lang.String name)
Set this object's descriptive name. |
void |
setShortDesc(java.lang.String shortDesc)
Set this object's short description. |
| Methods inherited from class com.nurelm.nucontent.model.Node |
|---|
getId, 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 File()
public File(java.lang.String name,
java.lang.String shortDesc,
java.lang.String fileName)
File object.
name - This object's name.shortDesc - A short description of this file.fileName - The name of the actual file on the filesystem.| Method Detail |
public void setFileName(java.lang.String fileName)
fileName - The name of the actual file on the filesystem.public java.lang.String getFileName()
public void setName(java.lang.String name)
setName in class Nodename - This file's descriptive name.public java.lang.String getName()
getName in class Nodepublic void setShortDesc(java.lang.String shortDesc)
setShortDesc in class NodeshortDesc - A short description of this file.public java.lang.String getShortDesc()
getShortDesc in class Node
public java.lang.String getURI(java.lang.String parentTemplateFile,
java.lang.String contextPath)
getURI in class NodeparentTemplateFile - DOCUMENT ME!contextPath - The current webapp's context path as returned from
request.getContextPath().
public boolean isChildLinkEditable(UserValueObject userVo,
boolean isParentEditable)
isChildLinkEditable in class NodeuserVo - DOCUMENT ME!isParentEditable - DOCUMENT ME!
public boolean isChildLinkViewable(UserValueObject userVo,
boolean isParentViewable)
isChildLinkViewable in class NodeuserVo - DOCUMENT ME!isParentViewable - DOCUMENT ME!
public boolean hasChildren()
hasChildren in class NodeFile objects never have
children.public boolean canBreed()
canBreed in class NodeFile objects never have
children.
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||