Class FolderNode
java.lang.Object
com.saperion.ngc.model.navigation.FolderNode
- All Implemented Interfaces:
NavigationItem
,NavigationNode
,Serializable
Folder nodes class.
- Author:
- mak
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFolderNode
(NavigationItem parentItem, DocumentDatabaseMetaInfo info, com.saperion.rmi.SaACLRights access, FolderClass folderClass) Constructor.FolderNode
(NavigationItem parentItem, String folderName, String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, FolderClass folderClass) Constructor.FolderNode
(NavigationItem parentItem, String folderName, String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, WorkflowNodeInfo wfInfo) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
canMove()
boolean
boolean
boolean
Returns the content stream, it will be loaded on demand.Returns the node/folder name to display on frontend.long
Returns the folder class.getId()
Returns the node/folder identifier.Returns the index form name.final String
Returns the link folder id.final String
Returns the link table.Returns the mask ddc name.getName()
getNodes()
Returns the parent navigation item (node or tree).getPath()
Returns the properties of the folder.getQuery()
Returns the query form name.com.saperion.constants.SaFolderConstants.FOLDER_TYPE
getType()
Returns folder type.long
Returns the ID of the associated ZK view element.int
hashCode()
boolean
Checks if the node is located within a private-subtree of the navigation tree.boolean
isLinked()
void
remove
(NavigationNode node) Removes the given child node.void
setContent
(InputStream contentStream) Sets the content stream.void
setDocCount
(int count) Sets the number of documents enclosed by this folder.void
Sets the ID of this node.void
setLinkingNode
(NavigationNode linking) Sets the node that is linking to this node.void
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
setViewElementId
(String elementId) Sets the ID of the associated ZK view element.void
-
Constructor Details
-
Method Details
-
getNodes
- Specified by:
getNodes
in interfaceNavigationItem
- Returns:
- Nodes
- See Also:
-
getParent
Returns the parent navigation item (node or tree).- Specified by:
getParent
in interfaceNavigationNode
- Returns:
NavigationItem
- See Also:
-
getName
- Specified by:
getName
in interfaceNavigationItem
- Returns:
- Name
- See Also:
-
getQuery
- Specified by:
getQuery
in interfaceNavigationItem
- Returns:
- Query string
- See Also:
-
getViewElementId
Returns the ID of the associated ZK view element.- Specified by:
getViewElementId
in interfaceNavigationItem
- Returns:
- view element id
- See Also:
-
setViewElementId
Sets the ID of the associated ZK view element.- Specified by:
setViewElementId
in interfaceNavigationItem
- Parameters:
elementId
- element id- See Also:
-
getId
Returns the node/folder identifier.- Specified by:
getId
in interfaceNavigationNode
- Returns:
- the navigation node's id
- See Also:
-
getType
public com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()Returns folder type.- Specified by:
getType
in interfaceNavigationNode
- Returns:
- folder type
- See Also:
-
hashCode
public int hashCode() -
equals
-
setId
Sets the ID of this node.- Specified by:
setId
in interfaceNavigationNode
- Parameters:
id
- node id- See Also:
-
setName
Sets the node name.- Specified by:
setName
in interfaceNavigationNode
- Parameters:
name
- Name- See Also:
-
getDisplayName
Returns the node/folder name to display on frontend.- Specified by:
getDisplayName
in interfaceNavigationNode
- Returns:
- the node display name
- See Also:
-
getIndexFormName
Returns the index form name.- Specified by:
getIndexFormName
in interfaceNavigationNode
- Returns:
- the index form name
- See Also:
-
getQueryFormName
Returns the query form name.- Specified by:
getQueryFormName
in interfaceNavigationNode
- Returns:
- the query form name
- See Also:
-
getMaskDDCName
Returns the mask ddc name.- Specified by:
getMaskDDCName
in interfaceNavigationNode
- Returns:
- Form DDC name
- See Also:
-
getLinkFolder
Returns the link folder id.- Specified by:
getLinkFolder
in interfaceNavigationNode
- Returns:
- the linkFolder
- See Also:
-
getLinkTable
Returns the link table.- Specified by:
getLinkTable
in interfaceNavigationNode
- Returns:
- the linkTable
- See Also:
-
getContent
Returns the content stream, it will be loaded on demand.- Specified by:
getContent
in interfaceNavigationNode
- Returns:
- content
- Throws:
BinaryUnavailableException
- BinaryUnavailableExceptionAuthenticationException
- AuthenticationException
-
setContent
Sets the content stream.- Specified by:
setContent
in interfaceNavigationNode
- Parameters:
contentStream
- content
-
getPath
- Specified by:
getPath
in interfaceNavigationNode
- Returns:
- the node path
- See Also:
-
getDocCount
public long getDocCount()- Specified by:
getDocCount
in interfaceNavigationNode
- Returns:
- Document count
- See Also:
-
setDocCount
public void setDocCount(int count) Sets the number of documents enclosed by this folder.- Specified by:
setDocCount
in interfaceNavigationNode
- Parameters:
count
- the number of documents enclosed by this folder.- See Also:
-
getUnreadCount
public long getUnreadCount()- Specified by:
getUnreadCount
in interfaceNavigationNode
- Returns:
- Document count
- See Also:
-
setUnreadCount
public void setUnreadCount(long count) Sets the number of unread documents enclosed by this folder.- Specified by:
setUnreadCount
in interfaceNavigationNode
- Parameters:
count
- the number of unread documents enclosed by this folder.- See Also:
-
canDelete
public boolean canDelete()- Specified by:
canDelete
in interfaceNavigationItem
- Returns:
- Can delete this
- See Also:
-
canRename
public boolean canRename()- Specified by:
canRename
in interfaceNavigationItem
- Returns:
- Can rename this
- See Also:
-
canAddFolder
public boolean canAddFolder()- Specified by:
canAddFolder
in interfaceNavigationItem
- Returns:
- Can add folder.
- See Also:
-
canPermissions
public boolean canPermissions()- Specified by:
canPermissions
in interfaceNavigationItem
- Returns:
- Can set permissions.
- See Also:
-
canMove
public boolean canMove()- Specified by:
canMove
in interfaceNavigationNode
- Returns:
- Can move.
- See Also:
-
getUploadInfos
- Specified by:
getUploadInfos
in interfaceNavigationNode
- Returns:
- information about the upload capabilities of the node
- See Also:
-
getFolderClass
Returns the folder class. If no class is defined, a GenericFolderClass is generated.- Specified by:
getFolderClass
in interfaceNavigationNode
- Returns:
- the folder class
- See Also:
-
getProperties
Returns the properties of the folder. The properties do not contain system properties.- Specified by:
getProperties
in interfaceNavigationNode
- Returns:
- folder properties
- See Also:
-
getWorkflowInfo
- Specified by:
getWorkflowInfo
in interfaceNavigationNode
- Returns:
- The workflow infomation's
- See Also:
-
isLinked
public boolean isLinked()- Specified by:
isLinked
in interfaceNavigationNode
- Returns:
- true if this node is linked by another node
- See Also:
-
getLinkingNode
- Specified by:
getLinkingNode
in interfaceNavigationNode
- Returns:
- the node that links to this node or null if this node is not linked
- See Also:
-
isInPrivateSubtree
public boolean isInPrivateSubtree()Checks if the node is located within a private-subtree of the navigation tree.- Specified by:
isInPrivateSubtree
in interfaceNavigationNode
- Returns:
- true if node is in private subtree
- See Also:
-