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 NavigationItemNavigationItem.getNodes()public NavigationItem getParent()
getParent in interface NavigationNodeNavigationItemNavigationNode.getParent()public void setParent(NavigationItem parentItem)
setParent in interface NavigationNodeparentItem - The new parentItem.(com.saperion.ngc.model.navigation.intf.NavigationItem)public String getName()
getName in interface NavigationItemNavigationItem.getName()public String getQuery()
getQuery in interface NavigationItemNavigationItem.getQuery()public String getViewElementId()
getViewElementId in interface NavigationItemNavigationItem.getViewElementId()public void setViewElementId(String elementId)
setViewElementId in interface NavigationItemelementId - element idNavigationItem.setViewElementId(java.lang.String)public FolderId getId()
getId in interface NavigationNodeNavigationNode.getId()public com.saperion.constants.SaFolderConstants.FOLDER_TYPE getType()
getType in interface NavigationNodeNavigationNode.getType()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public void remove(NavigationNode node)
remove in interface NavigationItemnode - child node#remove(com.saperion.ngc.model.navigation.intf.NavigationNode)public void setId(FolderId id)
setId in interface NavigationNodeid - node idNavigationNode.setId(com.saperion.ngc.model.FolderId)public void setName(String name)
setName in interface NavigationNodename - NameNavigationNode.setName(java.lang.String)public String getDisplayName()
getDisplayName in interface NavigationNodeNavigationNode.getDisplayName()public String getIndexFormName()
getIndexFormName in interface NavigationNodeNavigationNode.getIndexFormName()public String getQueryFormName()
getQueryFormName in interface NavigationNodeNavigationNode.getQueryFormName()public String getMaskDDCName()
getMaskDDCName in interface NavigationNodeNavigationNode.getMaskDDCName()public final String getLinkFolder()
getLinkFolder in interface NavigationNodeNavigationNode.getLinkFolder()public final String getLinkTable()
getLinkTable in interface NavigationNodeNavigationNode.getLinkTable()public InputStream getContent() throws BinaryUnavailableException, AuthenticationException
getContent in interface NavigationNodeBinaryUnavailableException - BinaryUnavailableExceptionAuthenticationException - AuthenticationExceptionpublic void setContent(InputStream contentStream)
setContent in interface NavigationNodecontentStream - contentpublic String getPath()
getPath in interface NavigationNodeNavigationNode.getPath()public long getDocCount()
getDocCount in interface NavigationNodeNavigationNode.getDocCount()public void setDocCount(int count)
setDocCount in interface NavigationNodecount - the number of documents enclosed by this folder.NavigationNode.setDocCount(int)public long getUnreadCount()
getUnreadCount in interface NavigationNodeNavigationNode.getUnreadCount()public void setUnreadCount(long count)
setUnreadCount in interface NavigationNodecount - the number of unread documents enclosed by this folder.NavigationNode.setUnreadCount(long)public boolean canDelete()
canDelete in interface NavigationItemNavigationItem.canDelete()public boolean canRename()
canRename in interface NavigationItemNavigationItem.canRename()public boolean canAddFolder()
canAddFolder in interface NavigationItemNavigationItem.canAddFolder()public boolean canPermissions()
canPermissions in interface NavigationItemNavigationItem.canPermissions()public boolean canMove()
canMove in interface NavigationNodeNavigationNode.canMove()public FolderUploadInfos getUploadInfos()
getUploadInfos in interface NavigationNodeNavigationNode.getUploadInfos()public FolderClass getFolderClass()
getFolderClass in interface NavigationNodeNavigationNode.getFolderClass()public Map<String,String> getProperties()
getProperties in interface NavigationNodeNavigationNode.getProperties()public void setWorkflowInfo(WorkflowNodeInfo info)
setWorkflowInfo in interface NavigationNodeinfo - Set the workflow infomation'sNavigationNode.setWorkflowInfo(com.saperion.ngc.model.navigation.intf.WorkflowNodeInfo)public WorkflowNodeInfo getWorkflowInfo()
getWorkflowInfo in interface NavigationNodeNavigationNode.getWorkflowInfo()public boolean isLinked()
isLinked in interface NavigationNodeNavigationNode.isLinked()public NavigationNode getLinkingNode()
getLinkingNode in interface NavigationNodeNavigationNode.getLinkingNode()public void setLinkingNode(NavigationNode linking)
setLinkingNode in interface NavigationNodelinking - the linking node(com.saperion.ngc.model.navigation.intf.NavigationNode)public boolean isInPrivateSubtree()
isInPrivateSubtree in interface NavigationNodeNavigationNode.isInPrivateSubtree()Copyright © 2016 SAPERION AG. All rights reserved.