Class FolderTree
- java.lang.Object
-
- com.saperion.ngc.model.navigation.FolderTree
-
- All Implemented Interfaces:
NavigationItem,NavigationTree,java.io.Serializable
public class FolderTree extends java.lang.Object implements NavigationTree
- Author:
- mak
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FolderTree(DocumentDatabaseMetaInfo rootFolderDocInfo, com.saperion.rmi.SaACLRights access, FolderClass rootFolderClass)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAddFolder()booleancanDelete()booleancanPermissions()booleancanRename()java.lang.StringgetName()java.util.List<NavigationNode>getNodes()java.lang.StringgetQuery()NavigationNodegetRootNode()Returns the root navigation node.java.lang.StringgetViewElementId()Returns the ID of the associated ZK view element.voidremove(NavigationNode node)Removes the given child node.voidsetViewElementId(java.lang.String id)Sets the ID of the associated ZK view element.
-
-
-
Constructor Detail
-
FolderTree
public FolderTree(DocumentDatabaseMetaInfo rootFolderDocInfo, com.saperion.rmi.SaACLRights access, FolderClass rootFolderClass) throws SystemException, AuthenticationException, UnknownFolderTypeException
Constructor.- Parameters:
rootFolderDocInfo- Document infoaccess- Access dattarootFolderClass- folder class of the root folder- Throws:
AuthenticationException- authentication exceptionSystemException- system exceptionUnknownFolderTypeException- when a folder with an unknown type is found
-
-
Method Detail
-
getRootNode
public NavigationNode getRootNode()
Returns the root navigation node.- Specified by:
getRootNodein interfaceNavigationTree- Returns:
- root node
-
getNodes
public java.util.List<NavigationNode> getNodes()
- Specified by:
getNodesin interfaceNavigationItem- Returns:
- Nodes
- See Also:
NavigationItem.getNodes()
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceNavigationItem- Returns:
- Name
- See Also:
NavigationItem.getName()
-
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)
-
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 id)
Sets the ID of the associated ZK view element.- Specified by:
setViewElementIdin interfaceNavigationItem- Parameters:
id- element id- See Also:
NavigationItem.setViewElementId(java.lang.String)
-
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()
-
canPermissions
public boolean canPermissions()
- Specified by:
canPermissionsin interfaceNavigationItem- Returns:
- Can set permissions.
- See Also:
NavigationItem.canPermissions()
-
canAddFolder
public boolean canAddFolder()
- Specified by:
canAddFolderin interfaceNavigationItem- Returns:
- Can add folder.
- See Also:
NavigationItem.canAddFolder()
-
getQuery
public java.lang.String getQuery()
- Specified by:
getQueryin interfaceNavigationItem- Returns:
- Query string
-
-