public class FolderNode extends Object implements NavigationNode
Constructor and Description |
---|
FolderNode(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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canAddFolder() |
boolean |
canDelete() |
boolean |
canMove() |
boolean |
canPermissions() |
boolean |
canRename() |
boolean |
equals(Object obj) |
InputStream |
getContent()
Returns the content stream, it will be loaded on demand.
|
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.
|
String |
getIndexFormName()
Returns the index form name.
|
String |
getLinkFolder()
Returns the link folder id.
|
NavigationNode |
getLinkingNode() |
String |
getLinkTable()
Returns the link table.
|
String |
getMaskDDCName()
Returns the mask ddc name.
|
String |
getName() |
List<NavigationNode> |
getNodes() |
NavigationItem |
getParent()
Returns the parent navigation item (node or tree).
|
String |
getPath() |
Map<String,String> |
getProperties()
Returns the properties of the folder.
|
String |
getQuery() |
String |
getQueryFormName()
Returns the query form name.
|
com.saperion.constants.SaFolderConstants.FOLDER_TYPE |
getType()
Returns folder type.
|
long |
getUnreadCount() |
FolderUploadInfos |
getUploadInfos() |
String |
getViewElementId()
Returns the ID of the associated ZK view element.
|
WorkflowNodeInfo |
getWorkflowInfo() |
int |
hashCode() |
boolean |
isInPrivateSubtree()
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 |
setId(FolderId id)
Sets the ID of this node.
|
void |
setLinkingNode(NavigationNode linking)
Sets the node that is linking to this node.
|
void |
setName(String name)
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 |
setWorkflowInfo(WorkflowNodeInfo info) |
public FolderNode(NavigationItem parentItem, String folderName, String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, FolderClass folderClass)
parentItem
- Parent itemfolderName
- Folder namefolderPath
- Folder pathnodeType
- node typefolderClass
- folderClasspublic FolderNode(NavigationItem parentItem, String folderName, String folderPath, com.saperion.constants.SaFolderConstants.FOLDER_TYPE nodeType, WorkflowNodeInfo wfInfo)
parentItem
- Parent itemfolderName
- Folder namenodeType
- node typefolderPath
- folder pathwfInfo
- Workflow infopublic FolderNode(NavigationItem parentItem, DocumentDatabaseMetaInfo info, com.saperion.rmi.SaACLRights access, FolderClass folderClass) throws SystemException, AuthenticationException, UnknownFolderTypeException
parentItem
- parentinfo
- Document infoaccess
- Access datafolderClass
- folder class for this folderAuthenticationException
- authentication exception when reading propertiesSystemException
- system exception when reading propertiesUnknownFolderTypeException
- when the type of the folder is unknownpublic List<NavigationNode> getNodes()
getNodes
in interface NavigationItem
NavigationItem.getNodes()
public NavigationItem getParent()
getParent
in interface NavigationNode
NavigationItem
NavigationNode.getParent()
public void setParent(NavigationItem parentItem)
setParent
in interface NavigationNode
parentItem
- The new parentItem.(com.saperion.ngc.model.navigation.intf.NavigationItem)
public String getName()
getName
in interface NavigationItem
NavigationItem.getName()
public String getQuery()
getQuery
in interface NavigationItem
NavigationItem.getQuery()
public String getViewElementId()
getViewElementId
in interface NavigationItem
NavigationItem.getViewElementId()
public void setViewElementId(String elementId)
setViewElementId
in interface NavigationItem
elementId
- element idNavigationItem.setViewElementId(java.lang.String)
public FolderId getId()
getId
in interface NavigationNode
NavigationNode.getId()
public com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()
getType
in interface NavigationNode
NavigationNode.getType()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void remove(NavigationNode node)
remove
in interface NavigationItem
node
- child node#remove(com.saperion.ngc.model.navigation.intf.NavigationNode)
public void setId(FolderId id)
setId
in interface NavigationNode
id
- node idNavigationNode.setId(com.saperion.ngc.model.FolderId)
public void setName(String name)
setName
in interface NavigationNode
name
- NameNavigationNode.setName(java.lang.String)
public String getDisplayName()
getDisplayName
in interface NavigationNode
NavigationNode.getDisplayName()
public String getIndexFormName()
getIndexFormName
in interface NavigationNode
NavigationNode.getIndexFormName()
public String getQueryFormName()
getQueryFormName
in interface NavigationNode
NavigationNode.getQueryFormName()
public String getMaskDDCName()
getMaskDDCName
in interface NavigationNode
NavigationNode.getMaskDDCName()
public final String getLinkFolder()
getLinkFolder
in interface NavigationNode
NavigationNode.getLinkFolder()
public final String getLinkTable()
getLinkTable
in interface NavigationNode
NavigationNode.getLinkTable()
public InputStream getContent() throws BinaryUnavailableException, AuthenticationException
getContent
in interface NavigationNode
BinaryUnavailableException
- BinaryUnavailableExceptionAuthenticationException
- AuthenticationExceptionpublic void setContent(InputStream contentStream)
setContent
in interface NavigationNode
contentStream
- contentpublic String getPath()
getPath
in interface NavigationNode
NavigationNode.getPath()
public long getDocCount()
getDocCount
in interface NavigationNode
NavigationNode.getDocCount()
public void setDocCount(int count)
setDocCount
in interface NavigationNode
count
- the number of documents enclosed by this folder.NavigationNode.setDocCount(int)
public long getUnreadCount()
getUnreadCount
in interface NavigationNode
NavigationNode.getUnreadCount()
public void setUnreadCount(long count)
setUnreadCount
in interface NavigationNode
count
- the number of unread documents enclosed by this folder.NavigationNode.setUnreadCount(long)
public boolean canDelete()
canDelete
in interface NavigationItem
NavigationItem.canDelete()
public boolean canRename()
canRename
in interface NavigationItem
NavigationItem.canRename()
public boolean canAddFolder()
canAddFolder
in interface NavigationItem
NavigationItem.canAddFolder()
public boolean canPermissions()
canPermissions
in interface NavigationItem
NavigationItem.canPermissions()
public boolean canMove()
canMove
in interface NavigationNode
NavigationNode.canMove()
public FolderUploadInfos getUploadInfos()
getUploadInfos
in interface NavigationNode
NavigationNode.getUploadInfos()
public FolderClass getFolderClass()
getFolderClass
in interface NavigationNode
NavigationNode.getFolderClass()
public Map<String,String> getProperties()
getProperties
in interface NavigationNode
NavigationNode.getProperties()
public void setWorkflowInfo(WorkflowNodeInfo info)
setWorkflowInfo
in interface NavigationNode
info
- Set the workflow infomation'sNavigationNode.setWorkflowInfo(com.saperion.ngc.model.navigation.intf.WorkflowNodeInfo)
public WorkflowNodeInfo getWorkflowInfo()
getWorkflowInfo
in interface NavigationNode
NavigationNode.getWorkflowInfo()
public boolean isLinked()
isLinked
in interface NavigationNode
NavigationNode.isLinked()
public NavigationNode getLinkingNode()
getLinkingNode
in interface NavigationNode
NavigationNode.getLinkingNode()
public void setLinkingNode(NavigationNode linking)
setLinkingNode
in interface NavigationNode
linking
- the linking node(com.saperion.ngc.model.navigation.intf.NavigationNode)
public boolean isInPrivateSubtree()
isInPrivateSubtree
in interface NavigationNode
NavigationNode.isInPrivateSubtree()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.