Class FolderNode
- java.lang.Object
-
- com.saperion.ngc.model.navigation.FolderNode
-
- All Implemented Interfaces:
NavigationItem,NavigationNode,java.io.Serializable
public class FolderNode extends java.lang.Object implements NavigationNode
Folder nodes class.- Author:
- mak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FolderNode(NavigationItem parentItem, DocumentDatabaseMetaInfo info, com.saperion.rmi.SaACLRights access, FolderClass folderClass)Constructor.FolderNode(NavigationItem parentItem, java.lang.String folderName, java.lang.String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, FolderClass folderClass)Constructor.FolderNode(NavigationItem parentItem, java.lang.String folderName, java.lang.String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, WorkflowNodeInfo wfInfo)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAddFolder()booleancanDelete()booleancanMove()booleancanPermissions()booleancanRename()booleanequals(java.lang.Object obj)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.java.lang.StringgetName()java.util.List<NavigationNode>getNodes()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.StringgetQuery()java.lang.StringgetQueryFormName()Returns the query form name.com.saperion.constants.SaFolderConstants.FOLDER_TYPEgetType()Returns folder type.longgetUnreadCount()FolderUploadInfosgetUploadInfos()java.lang.StringgetViewElementId()Returns the ID of the associated ZK view element.WorkflowNodeInfogetWorkflowInfo()inthashCode()booleanisInPrivateSubtree()Checks if the node is located within a private-subtree of the navigation tree.booleanisLinked()voidremove(NavigationNode node)Removes the given child node.voidsetContent(java.io.InputStream contentStream)Sets the content stream.voidsetDocCount(int count)Sets the number of documents enclosed by this folder.voidsetId(FolderId id)Sets the ID of this node.voidsetLinkingNode(NavigationNode linking)Sets the node that is linking to this node.voidsetName(java.lang.String name)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.voidsetViewElementId(java.lang.String elementId)Sets the ID of the associated ZK view element.voidsetWorkflowInfo(WorkflowNodeInfo info)
-
-
-
Constructor Detail
-
FolderNode
public FolderNode(NavigationItem parentItem, java.lang.String folderName, java.lang.String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, FolderClass folderClass)
Constructor.- Parameters:
parentItem- Parent itemfolderName- Folder namefolderPath- Folder pathnodeType- node typefolderClass- folderClass
-
FolderNode
public FolderNode(NavigationItem parentItem, java.lang.String folderName, java.lang.String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, WorkflowNodeInfo wfInfo)
Constructor.- Parameters:
parentItem- Parent itemfolderName- Folder namenodeType- node typefolderPath- folder pathwfInfo- Workflow info
-
FolderNode
public FolderNode(NavigationItem parentItem, DocumentDatabaseMetaInfo info, com.saperion.rmi.SaACLRights access, FolderClass folderClass) throws SystemException, AuthenticationException, UnknownFolderTypeException
Constructor.- Parameters:
parentItem- parentinfo- Document infoaccess- Access datafolderClass- folder class for this folder- Throws:
AuthenticationException- authentication exception when reading propertiesSystemException- system exception when reading propertiesUnknownFolderTypeException- when the type of the folder is unknown
-
-
Method Detail
-
getNodes
public java.util.List<NavigationNode> getNodes()
- Specified by:
getNodesin interfaceNavigationItem- Returns:
- Nodes
- See Also:
NavigationItem.getNodes()
-
getParent
public NavigationItem getParent()
Returns the parent navigation item (node or tree).- Specified by:
getParentin interfaceNavigationNode- Returns:
NavigationItem- See Also:
NavigationNode.getParent()
-
setParent
public void setParent(NavigationItem parentItem)
Sets a new parent to a Node.- Specified by:
setParentin interfaceNavigationNode- Parameters:
parentItem- The new parentItem.- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationItem)
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNavigationItem- Returns:
- Name
- See Also:
NavigationItem.getName()
-
getQuery
public java.lang.String getQuery()
- Specified by:
getQueryin interfaceNavigationItem- Returns:
- Query string
- See Also:
NavigationItem.getQuery()
-
getViewElementId
public java.lang.String getViewElementId()
Returns the ID of the associated ZK view element.- Specified by:
getViewElementIdin interfaceNavigationItem- Returns:
- view element id
- See Also:
NavigationItem.getViewElementId()
-
setViewElementId
public void setViewElementId(java.lang.String elementId)
Sets the ID of the associated ZK view element.- Specified by:
setViewElementIdin interfaceNavigationItem- Parameters:
elementId- element id- See Also:
NavigationItem.setViewElementId(java.lang.String)
-
getId
public FolderId getId()
Returns the node/folder identifier.- Specified by:
getIdin interfaceNavigationNode- Returns:
- the navigation node's id
- See Also:
NavigationNode.getId()
-
getType
public com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()
Returns folder type.- Specified by:
getTypein interfaceNavigationNode- Returns:
- folder type
- See Also:
NavigationNode.getType()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(java.lang.Object)
-
remove
public void remove(NavigationNode node)
Removes the given child node.- Specified by:
removein interfaceNavigationItem- Parameters:
node- child node- See Also:
#remove(com.saperion.ngc.model.navigation.intf.NavigationNode)
-
setId
public void setId(FolderId id)
Sets the ID of this node.- Specified by:
setIdin interfaceNavigationNode- Parameters:
id- node id- See Also:
NavigationNode.setId(com.saperion.ngc.model.FolderId)
-
setName
public void setName(java.lang.String name)
Sets the node name.- Specified by:
setNamein interfaceNavigationNode- Parameters:
name- Name- See Also:
NavigationNode.setName(java.lang.String)
-
getDisplayName
public java.lang.String getDisplayName()
Returns the node/folder name to display on frontend.- Specified by:
getDisplayNamein interfaceNavigationNode- Returns:
- the node display name
- See Also:
NavigationNode.getDisplayName()
-
getIndexFormName
public java.lang.String getIndexFormName()
Returns the index form name.- Specified by:
getIndexFormNamein interfaceNavigationNode- Returns:
- the index form name
- See Also:
NavigationNode.getIndexFormName()
-
getQueryFormName
public java.lang.String getQueryFormName()
Returns the query form name.- Specified by:
getQueryFormNamein interfaceNavigationNode- Returns:
- the query form name
- See Also:
NavigationNode.getQueryFormName()
-
getMaskDDCName
public java.lang.String getMaskDDCName()
Returns the mask ddc name.- Specified by:
getMaskDDCNamein interfaceNavigationNode- Returns:
- Form DDC name
- See Also:
NavigationNode.getMaskDDCName()
-
getLinkFolder
public final java.lang.String getLinkFolder()
Returns the link folder id.- Specified by:
getLinkFolderin interfaceNavigationNode- Returns:
- the linkFolder
- See Also:
NavigationNode.getLinkFolder()
-
getLinkTable
public final java.lang.String getLinkTable()
Returns the link table.- Specified by:
getLinkTablein interfaceNavigationNode- Returns:
- the linkTable
- See Also:
NavigationNode.getLinkTable()
-
getContent
public java.io.InputStream getContent() throws BinaryUnavailableException, AuthenticationExceptionReturns the content stream, it will be loaded on demand.- Specified by:
getContentin interfaceNavigationNode- Returns:
- content
- Throws:
BinaryUnavailableException- BinaryUnavailableExceptionAuthenticationException- AuthenticationException
-
setContent
public void setContent(java.io.InputStream contentStream)
Sets the content stream.- Specified by:
setContentin interfaceNavigationNode- Parameters:
contentStream- content
-
getPath
public java.lang.String getPath()
- Specified by:
getPathin interfaceNavigationNode- Returns:
- the node path
- See Also:
NavigationNode.getPath()
-
getDocCount
public long getDocCount()
- Specified by:
getDocCountin interfaceNavigationNode- Returns:
- Document count
- See Also:
NavigationNode.getDocCount()
-
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:
NavigationNode.setDocCount(int)
-
getUnreadCount
public long getUnreadCount()
- Specified by:
getUnreadCountin interfaceNavigationNode- Returns:
- Document count
- See Also:
NavigationNode.getUnreadCount()
-
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:
NavigationNode.setUnreadCount(long)
-
canDelete
public boolean canDelete()
- Specified by:
canDeletein interfaceNavigationItem- Returns:
- Can delete this
- See Also:
NavigationItem.canDelete()
-
canRename
public boolean canRename()
- Specified by:
canRenamein interfaceNavigationItem- Returns:
- Can rename this
- See Also:
NavigationItem.canRename()
-
canAddFolder
public boolean canAddFolder()
- Specified by:
canAddFolderin interfaceNavigationItem- Returns:
- Can add folder.
- See Also:
NavigationItem.canAddFolder()
-
canPermissions
public boolean canPermissions()
- Specified by:
canPermissionsin interfaceNavigationItem- Returns:
- Can set permissions.
- See Also:
NavigationItem.canPermissions()
-
canMove
public boolean canMove()
- Specified by:
canMovein interfaceNavigationNode- Returns:
- Can move.
- See Also:
NavigationNode.canMove()
-
getUploadInfos
public FolderUploadInfos getUploadInfos()
- Specified by:
getUploadInfosin interfaceNavigationNode- Returns:
- information about the upload capabilities of the node
- See Also:
NavigationNode.getUploadInfos()
-
getFolderClass
public FolderClass getFolderClass()
Returns the folder class. If no class is defined, a GenericFolderClass is generated.- Specified by:
getFolderClassin interfaceNavigationNode- Returns:
- the folder class
- See Also:
NavigationNode.getFolderClass()
-
getProperties
public java.util.Map<java.lang.String,java.lang.String> getProperties()
Returns the properties of the folder. The properties do not contain system properties.- Specified by:
getPropertiesin interfaceNavigationNode- Returns:
- folder properties
- See Also:
NavigationNode.getProperties()
-
setWorkflowInfo
public void setWorkflowInfo(WorkflowNodeInfo info)
- Specified by:
setWorkflowInfoin interfaceNavigationNode- Parameters:
info- Set the workflow infomation's- See Also:
NavigationNode.setWorkflowInfo(com.saperion.ngc.model.navigation.intf.WorkflowNodeInfo)
-
getWorkflowInfo
public WorkflowNodeInfo getWorkflowInfo()
- Specified by:
getWorkflowInfoin interfaceNavigationNode- Returns:
- The workflow infomation's
- See Also:
NavigationNode.getWorkflowInfo()
-
isLinked
public boolean isLinked()
- Specified by:
isLinkedin interfaceNavigationNode- Returns:
- true if this node is linked by another node
- See Also:
NavigationNode.isLinked()
-
getLinkingNode
public NavigationNode getLinkingNode()
- Specified by:
getLinkingNodein interfaceNavigationNode- Returns:
- the node that links to this node or null if this node is not linked
- See Also:
NavigationNode.getLinkingNode()
-
setLinkingNode
public void setLinkingNode(NavigationNode linking)
Sets the node that is linking to this node.- Specified by:
setLinkingNodein interfaceNavigationNode- Parameters:
linking- the linking node- See Also:
(com.saperion.ngc.model.navigation.intf.NavigationNode)
-
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:
NavigationNode.isInPrivateSubtree()
-
-