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 TypeMethodDescriptionbooleanbooleanbooleancanMove()booleanbooleanbooleanReturns the content stream, it will be loaded on demand.Returns the node/folder name to display on frontend.longReturns the folder class.getId()Returns the node/folder identifier.Returns the index form name.final StringReturns the link folder id.final StringReturns 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_TYPEgetType()Returns folder type.longReturns the ID of the associated ZK view element.inthashCode()booleanChecks if the node is located within a private-subtree of the navigation tree.booleanisLinked()voidremove(NavigationNode node) Removes the given child node.voidsetContent(InputStream contentStream) Sets the content stream.voidsetDocCount(int count) Sets the number of documents enclosed by this folder.voidSets the ID of this node.voidsetLinkingNode(NavigationNode linking) Sets the node that is linking to this node.voidSets 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.voidsetViewElementId(String elementId) Sets the ID of the associated ZK view element.void
-
Constructor Details
-
Method Details
-
getNodes
- Specified by:
getNodesin interfaceNavigationItem- Returns:
- Nodes
- See Also:
-
getParent
Returns the parent navigation item (node or tree).- Specified by:
getParentin interfaceNavigationNode- Returns:
NavigationItem- See Also:
-
getName
- Specified by:
getNamein interfaceNavigationItem- Returns:
- Name
- See Also:
-
getQuery
- Specified by:
getQueryin interfaceNavigationItem- Returns:
- Query string
- See Also:
-
getViewElementId
Returns the ID of the associated ZK view element.- Specified by:
getViewElementIdin interfaceNavigationItem- Returns:
- view element id
- See Also:
-
setViewElementId
Sets the ID of the associated ZK view element.- Specified by:
setViewElementIdin interfaceNavigationItem- Parameters:
elementId- element id- See Also:
-
getId
Returns the node/folder identifier.- Specified by:
getIdin interfaceNavigationNode- Returns:
- the navigation node's id
- See Also:
-
getType
public com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()Returns folder type.- Specified by:
getTypein interfaceNavigationNode- Returns:
- folder type
- See Also:
-
hashCode
public int hashCode() -
equals
-
setId
Sets the ID of this node.- Specified by:
setIdin interfaceNavigationNode- Parameters:
id- node id- See Also:
-
setName
Sets the node name.- Specified by:
setNamein interfaceNavigationNode- Parameters:
name- Name- See Also:
-
getDisplayName
Returns the node/folder name to display on frontend.- Specified by:
getDisplayNamein interfaceNavigationNode- Returns:
- the node display name
- See Also:
-
getIndexFormName
Returns the index form name.- Specified by:
getIndexFormNamein interfaceNavigationNode- Returns:
- the index form name
- See Also:
-
getQueryFormName
Returns the query form name.- Specified by:
getQueryFormNamein interfaceNavigationNode- Returns:
- the query form name
- See Also:
-
getMaskDDCName
Returns the mask ddc name.- Specified by:
getMaskDDCNamein interfaceNavigationNode- Returns:
- Form DDC name
- See Also:
-
getLinkFolder
Returns the link folder id.- Specified by:
getLinkFolderin interfaceNavigationNode- Returns:
- the linkFolder
- See Also:
-
getLinkTable
Returns the link table.- Specified by:
getLinkTablein interfaceNavigationNode- Returns:
- the linkTable
- See Also:
-
getContent
Returns the content stream, it will be loaded on demand.- Specified by:
getContentin interfaceNavigationNode- Returns:
- content
- Throws:
BinaryUnavailableException- BinaryUnavailableExceptionAuthenticationException- AuthenticationException
-
setContent
Sets the content stream.- Specified by:
setContentin interfaceNavigationNode- Parameters:
contentStream- content
-
getPath
- Specified by:
getPathin interfaceNavigationNode- Returns:
- the node path
- See Also:
-
getDocCount
public long getDocCount()- Specified by:
getDocCountin interfaceNavigationNode- Returns:
- Document count
- See Also:
-
setDocCount
public void setDocCount(int count) Sets the number of documents enclosed by this folder.- Specified by:
setDocCountin interfaceNavigationNode- Parameters:
count- the number of documents enclosed by this folder.- See Also:
-
getUnreadCount
public long getUnreadCount()- Specified by:
getUnreadCountin interfaceNavigationNode- Returns:
- Document count
- See Also:
-
setUnreadCount
public void setUnreadCount(long count) Sets the number of unread documents enclosed by this folder.- Specified by:
setUnreadCountin interfaceNavigationNode- Parameters:
count- the number of unread documents enclosed by this folder.- See Also:
-
canDelete
public boolean canDelete()- Specified by:
canDeletein interfaceNavigationItem- Returns:
- Can delete this
- See Also:
-
canRename
public boolean canRename()- Specified by:
canRenamein interfaceNavigationItem- Returns:
- Can rename this
- See Also:
-
canAddFolder
public boolean canAddFolder()- Specified by:
canAddFolderin interfaceNavigationItem- Returns:
- Can add folder.
- See Also:
-
canPermissions
public boolean canPermissions()- Specified by:
canPermissionsin interfaceNavigationItem- Returns:
- Can set permissions.
- See Also:
-
canMove
public boolean canMove()- Specified by:
canMovein interfaceNavigationNode- Returns:
- Can move.
- See Also:
-
getUploadInfos
- Specified by:
getUploadInfosin 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:
getFolderClassin interfaceNavigationNode- Returns:
- the folder class
- See Also:
-
getProperties
Returns the properties of the folder. The properties do not contain system properties.- Specified by:
getPropertiesin interfaceNavigationNode- Returns:
- folder properties
- See Also:
-
getWorkflowInfo
- Specified by:
getWorkflowInfoin interfaceNavigationNode- Returns:
- The workflow infomation's
- See Also:
-
isLinked
public boolean isLinked()- Specified by:
isLinkedin interfaceNavigationNode- Returns:
- true if this node is linked by another node
- See Also:
-
getLinkingNode
- Specified by:
getLinkingNodein 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:
isInPrivateSubtreein interfaceNavigationNode- Returns:
- true if node is in private subtree
- See Also:
-