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 boolean
canMove()
java.io.InputStream
getContent()
Returns the content stream, it will be loaded on demand.java.lang.String
getDisplayName()
Returns the node/folder name to display on frontend.long
getDocCount()
FolderClass
getFolderClass()
Returns the folder class.FolderId
getId()
Returns the node/folder identifier.java.lang.String
getIndexFormName()
Returns the index form name.java.lang.String
getLinkFolder()
Returns the link folder id.NavigationNode
getLinkingNode()
java.lang.String
getLinkTable()
Returns the link table.java.lang.String
getMaskDDCName()
Returns the mask ddc name.NavigationItem
getParent()
Returns the parent navigation item (node or tree).java.lang.String
getPath()
java.util.Map<java.lang.String,java.lang.String>
getProperties()
Returns the properties of the folder.java.lang.String
getQueryFormName()
Returns the query form name.com.saperion.constants.SaFolderConstants.FOLDER_TYPE
getType()
Returns folder type.long
getUnreadCount()
FolderUploadInfos
getUploadInfos()
WorkflowNodeInfo
getWorkflowInfo()
boolean
isInPrivateSubtree()
Checks if the node is located within a private-subtree of the navigation tree.boolean
isLinked()
void
setContent(java.io.InputStream content)
Sets the content stream.void
setDocCount(int count)
Sets the number of documents enclosed by this folder.void
setId(FolderId folderId)
Sets the ID of this node.void
setLinkingNode(NavigationNode linking)
Sets the node that is linking to this node.void
setName(java.lang.String nodeName)
Sets the node name.void
setParent(NavigationItem parentItem)
Sets a new parent to a Node.void
setUnreadCount(long count)
Sets the number of unread documents enclosed by this folder.void
setWorkflowInfo(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, AuthenticationException
Returns 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
-
-