Interface NavigationNode
-
- All Superinterfaces:
NavigationItem,java.io.Serializable
- All Known Implementing Classes:
FolderNode
public interface NavigationNode extends NavigationItem
Navigation node.- Author:
- mak
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanMove()java.io.InputStreamgetContent()Returns the content stream, it will be loaded on demand.java.lang.StringgetDisplayName()Returns the node/folder name to display on frontend.longgetDocCount()FolderClassgetFolderClass()Returns the folder class.FolderIdgetId()Returns the node/folder identifier.java.lang.StringgetIndexFormName()Returns the index form name.java.lang.StringgetLinkFolder()Returns the link folder id.NavigationNodegetLinkingNode()java.lang.StringgetLinkTable()Returns the link table.java.lang.StringgetMaskDDCName()Returns the mask ddc name.NavigationItemgetParent()Returns the parent navigation item (node or tree).java.lang.StringgetPath()java.util.Map<java.lang.String,java.lang.String>getProperties()Returns the properties of the folder.java.lang.StringgetQueryFormName()Returns the query form name.com.saperion.constants.SaFolderConstants.FOLDER_TYPEgetType()Returns folder type.longgetUnreadCount()FolderUploadInfosgetUploadInfos()WorkflowNodeInfogetWorkflowInfo()booleanisInPrivateSubtree()Checks if the node is located within a private-subtree of the navigation tree.booleanisLinked()voidsetContent(java.io.InputStream content)Sets the content stream.voidsetDocCount(int count)Sets the number of documents enclosed by this folder.voidsetId(FolderId folderId)Sets the ID of this node.voidsetLinkingNode(NavigationNode linking)Sets the node that is linking to this node.voidsetName(java.lang.String nodeName)Sets the node name.voidsetParent(NavigationItem parentItem)Sets a new parent to a Node.voidsetUnreadCount(long count)Sets the number of unread documents enclosed by this folder.voidsetWorkflowInfo(WorkflowNodeInfo info)-
Methods inherited from interface com.saperion.ngc.model.navigation.intf.NavigationItem
canAddFolder, canDelete, canPermissions, canRename, getName, getNodes, getQuery, getViewElementId, remove, setViewElementId
-
-
-
-
Method Detail
-
getParent
NavigationItem getParent()
Returns the parent navigation item (node or tree).- Returns:
NavigationItem
-
setParent
void setParent(NavigationItem parentItem)
Sets a new parent to a Node.- Parameters:
parentItem- The new parentItem.
-
getDisplayName
java.lang.String getDisplayName()
Returns the node/folder name to display on frontend.- Returns:
- the node display name
-
getQueryFormName
java.lang.String getQueryFormName()
Returns the query form name.- Returns:
- the query form name
-
getMaskDDCName
java.lang.String getMaskDDCName()
Returns the mask ddc name.- Returns:
- Form DDC name
-
getIndexFormName
java.lang.String getIndexFormName()
Returns the index form name.- Returns:
- the index form name
-
getLinkFolder
java.lang.String getLinkFolder()
Returns the link folder id.- Returns:
- the linkFolder
-
getLinkTable
java.lang.String getLinkTable()
Returns the link table.- Returns:
- the linkTable
-
getId
FolderId getId()
Returns the node/folder identifier.- Returns:
- the navigation node's id
-
setId
void setId(FolderId folderId)
Sets the ID of this node.- Parameters:
folderId- node id
-
setName
void setName(java.lang.String nodeName)
Sets the node name.- Parameters:
nodeName- Name
-
getType
com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()
Returns folder type.- Returns:
- folder type
-
getContent
java.io.InputStream getContent() throws BinaryUnavailableException, AuthenticationExceptionReturns the content stream, it will be loaded on demand.- Returns:
- content
- Throws:
AuthenticationException- AuthenticationExceptionBinaryUnavailableException- BinaryUnavailableException
-
setContent
void setContent(java.io.InputStream content)
Sets the content stream.- Parameters:
content- content
-
getPath
java.lang.String getPath()
- Returns:
- the node path
-
getDocCount
long getDocCount()
- Returns:
- Document count
-
setDocCount
void setDocCount(int count)
Sets the number of documents enclosed by this folder.- Parameters:
count- the number of documents enclosed by this folder.
-
getUnreadCount
long getUnreadCount()
- Returns:
- Document count
-
setUnreadCount
void setUnreadCount(long count)
Sets the number of unread documents enclosed by this folder.- Parameters:
count- the number of unread documents enclosed by this folder.
-
canMove
boolean canMove()
- Returns:
- Can move.
-
getUploadInfos
FolderUploadInfos getUploadInfos()
- Returns:
- information about the upload capabilities of the node
-
getFolderClass
FolderClass getFolderClass()
Returns the folder class. If no class is defined, a GenericFolderClass is generated.- Returns:
- the folder class
-
getProperties
java.util.Map<java.lang.String,java.lang.String> getProperties()
Returns the properties of the folder. The properties do not contain system properties.- Returns:
- folder properties
-
setWorkflowInfo
void setWorkflowInfo(WorkflowNodeInfo info)
- Parameters:
info- Set the workflow infomation's
-
getWorkflowInfo
WorkflowNodeInfo getWorkflowInfo()
- Returns:
- The workflow infomation's
-
isLinked
boolean isLinked()
- Returns:
- true if this node is linked by another node
-
getLinkingNode
NavigationNode getLinkingNode()
- Returns:
- the node that links to this node or null if this node is not linked
-
setLinkingNode
void setLinkingNode(NavigationNode linking)
Sets the node that is linking to this node.- Parameters:
linking- the linking node
-
isInPrivateSubtree
boolean isInPrivateSubtree()
Checks if the node is located within a private-subtree of the navigation tree.- Returns:
- true if node is in private subtree
-
-