com.logicaldoc.web.document
Class DocumentNavigation

java.lang.Object
  extended by com.logicaldoc.web.navigation.NavigationBean
      extended by com.logicaldoc.web.document.DocumentNavigation

public class DocumentNavigation
extends NavigationBean

The TreeNavigation class is the backing bean for the documents navigation tree on the left hand side of the application. Each node in the tree is made up of a PageContent which is responsible for the navigation action when a tree node is selected.

When the Tree component binding takes place the tree nodes are initialised and the tree is built. Any addition to the tree navigation must be made to this class.

This bean also controls which panel is shown on the right side of the documents view

Since:
3.0
Author:
Marco Meschieri - Logical Objects

Field Summary
static java.lang.String FOLDER_VIEW_TREE
           
protected  java.util.List<MenuItem> folderItems
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
DocumentNavigation()
          Default constructor of the tree.
 
Method Summary
 void cancelFolderSelector(javax.faces.event.ActionEvent e)
           
 void closeFolderSelector(javax.faces.event.ActionEvent e)
           
protected  MenuItem createMenuItem(java.lang.String label, Directory dir)
           
protected  MenuItem createMenuItem(java.lang.String label, Directory dir, java.lang.String imageName, java.lang.String styleClass)
           
protected  void createMenuItems()
          Finds all sub dirs menus accessible by the current
 java.lang.String delete()
           
 java.lang.String deleteDirectory()
           
 java.lang.String edit()
           
 void folderSelected(javax.faces.event.ActionEvent e)
           
 java.util.List<Directory> getBreadcrumb()
           
 DirectoryTreeModel getDirectoryModel()
           
 java.lang.String getFolderExportLink()
           
 java.util.List<MenuItem> getFolderItems()
           
 java.lang.String getFolderRssLink()
           
 java.lang.String getFolderView()
           
 Directory getSelectedDir()
           
 com.icesoft.faces.component.tree.Tree getTreeComponent()
          Gets the tree component binding.
 java.lang.String getViewMode()
           
 void highlightDocument(long docId)
           
 java.lang.String history()
           
 boolean isShowFolderSelector()
           
 java.lang.String moveDirectory()
           
 java.lang.String newDirectory()
           
 void nodeClicked()
           
 void nodeClicked(javax.faces.event.ActionEvent event)
           
 void onSelectDirectory(javax.faces.event.ActionEvent event)
           
 void openFolderSelector(javax.faces.event.ActionEvent e)
           
 java.lang.String openInFolder()
          Opens the directory containing the selected search entry
 void refresh()
           
 void refresh(long docId)
           
 java.lang.String rights()
           
 java.lang.String searchInFolder()
           
 void selectDirectory(Directory directory)
           
 void selectDirectory(long directoryId)
           
 void setFolderItems(java.util.List<MenuItem> folderItems)
           
 void setShowFolderSelector(boolean showFolderSelector)
           
 void setTreeComponent(com.icesoft.faces.component.tree.Tree treeComponent)
          Sets the tree component binding.
 void setViewMode(java.lang.String viewModeP)
           
 java.lang.String showDiscussion()
          Opens the discussion containing the selected article
 java.lang.String showDocuments()
           
 
Methods inherited from class com.logicaldoc.web.navigation.NavigationBean
back, getHistorySize, getSelectedPanel, setSelectedPanel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOLDER_VIEW_TREE

public static final java.lang.String FOLDER_VIEW_TREE
See Also:
Constant Field Values

log

protected static org.apache.commons.logging.Log log

folderItems

protected java.util.List<MenuItem> folderItems
Constructor Detail

DocumentNavigation

public DocumentNavigation()
Default constructor of the tree. The root node of the tree is created at this point.

Method Detail

getDirectoryModel

public DirectoryTreeModel getDirectoryModel()

setTreeComponent

public void setTreeComponent(com.icesoft.faces.component.tree.Tree treeComponent)
Sets the tree component binding.

Parameters:
treeComponent - tree component to bind to

getTreeComponent

public com.icesoft.faces.component.tree.Tree getTreeComponent()
Gets the tree component binding.

Returns:
tree component binding

isShowFolderSelector

public boolean isShowFolderSelector()

setShowFolderSelector

public void setShowFolderSelector(boolean showFolderSelector)

setViewMode

public void setViewMode(java.lang.String viewModeP)

getViewMode

public java.lang.String getViewMode()

getFolderView

public java.lang.String getFolderView()

getFolderItems

public java.util.List<MenuItem> getFolderItems()

setFolderItems

public void setFolderItems(java.util.List<MenuItem> folderItems)

getSelectedDir

public Directory getSelectedDir()

getBreadcrumb

public java.util.List<Directory> getBreadcrumb()

refresh

public void refresh()

createMenuItems

protected void createMenuItems()
Finds all sub dirs menus accessible by the current


createMenuItem

protected MenuItem createMenuItem(java.lang.String label,
                                  Directory dir)

createMenuItem

protected MenuItem createMenuItem(java.lang.String label,
                                  Directory dir,
                                  java.lang.String imageName,
                                  java.lang.String styleClass)

onSelectDirectory

public void onSelectDirectory(javax.faces.event.ActionEvent event)

selectDirectory

public void selectDirectory(Directory directory)

selectDirectory

public void selectDirectory(long directoryId)

openInFolder

public java.lang.String openInFolder()
Opens the directory containing the selected search entry


highlightDocument

public void highlightDocument(long docId)

delete

public java.lang.String delete()

edit

public java.lang.String edit()

rights

public java.lang.String rights()

searchInFolder

public java.lang.String searchInFolder()

newDirectory

public java.lang.String newDirectory()

deleteDirectory

public java.lang.String deleteDirectory()

openFolderSelector

public void openFolderSelector(javax.faces.event.ActionEvent e)

closeFolderSelector

public void closeFolderSelector(javax.faces.event.ActionEvent e)

folderSelected

public void folderSelected(javax.faces.event.ActionEvent e)

cancelFolderSelector

public void cancelFolderSelector(javax.faces.event.ActionEvent e)

showDocuments

public java.lang.String showDocuments()

showDiscussion

public java.lang.String showDiscussion()
Opens the discussion containing the selected article


refresh

public void refresh(long docId)

getFolderExportLink

public java.lang.String getFolderExportLink()

getFolderRssLink

public java.lang.String getFolderRssLink()

history

public java.lang.String history()

nodeClicked

public void nodeClicked(javax.faces.event.ActionEvent event)

nodeClicked

public void nodeClicked()

moveDirectory

public java.lang.String moveDirectory()


Copyright © 2008-2010 Logical Objects. All Rights Reserved.