Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.webapp.directory
Class DirectoryTreeManagerBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.directory.DirectoryTreeManagerBean
All Implemented Interfaces:
Serializable, DirectoryTreeManager

@Scope(value=CONVERSATION)
@Name(value="directoryTreeManager")
public class DirectoryTreeManagerBean
extends Object
implements DirectoryTreeManager

Manage trees defined by xvocabulary directories. Update the associated QueryModel when a node is selected and return a parameterized faces navigation case.

Author:
Olivier Grisel
See Also:
Serialized Form

Field Summary
static String NODE_SELECTED_MARKER
           
 
Constructor Summary
DirectoryTreeManagerBean()
           
 
Method Summary
 Boolean adviseNodeOpened(org.richfaces.component.UITree treeComponent)
          Returns true if node should be opened according to last selection.
 void changeExpandListener(org.richfaces.event.NodeExpandedEvent event)
          Listener for node opening/closing events.
 DirectoryTreeNode get(String treeName)
           
 List<String> getDirectoryTreeNames()
           
 List<DirectoryTreeNode> getDirectoryTrees()
           
 String getLabelFor(String directoryTreeName, String fullPath)
          Returns the internationalized label for a given path of the specified Directory tree.
 String getLabelFor(String directoryTreeName, String fullPath, boolean includeDirectoryTreeLabel)
          Returns the internationalized label for a given path of the specified Directory tree, including or not the Directory tree label.
 DirectoryTreeNode getSelectedTree()
           
 String getSelectedTreeName()
           
 boolean isInitialized()
           
 void setSelectedTreeName(String treeName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODE_SELECTED_MARKER

public static final String NODE_SELECTED_MARKER
Constructor Detail

DirectoryTreeManagerBean

public DirectoryTreeManagerBean()
Method Detail

isInitialized

public boolean isInitialized()
Specified by:
isInitialized in interface DirectoryTreeManager

get

public DirectoryTreeNode get(String treeName)
Specified by:
get in interface DirectoryTreeManager

getDirectoryTreeNames

public List<String> getDirectoryTreeNames()
Specified by:
getDirectoryTreeNames in interface DirectoryTreeManager

getDirectoryTrees

public List<DirectoryTreeNode> getDirectoryTrees()
Specified by:
getDirectoryTrees in interface DirectoryTreeManager

getSelectedTreeName

public String getSelectedTreeName()
Specified by:
getSelectedTreeName in interface DirectoryTreeManager

setSelectedTreeName

public void setSelectedTreeName(String treeName)
Specified by:
setSelectedTreeName in interface DirectoryTreeManager

getSelectedTree

public DirectoryTreeNode getSelectedTree()
Specified by:
getSelectedTree in interface DirectoryTreeManager

changeExpandListener

public void changeExpandListener(org.richfaces.event.NodeExpandedEvent event)
Description copied from interface: DirectoryTreeManager
Listener for node opening/closing events.

Used to not interfere with node state when manually changing open nodes.

Specified by:
changeExpandListener in interface DirectoryTreeManager

adviseNodeOpened

public Boolean adviseNodeOpened(org.richfaces.component.UITree treeComponent)
Description copied from interface: DirectoryTreeManager
Returns true if node should be opened according to last selection.

Specified by:
adviseNodeOpened in interface DirectoryTreeManager

getLabelFor

public String getLabelFor(String directoryTreeName,
                          String fullPath)
Description copied from interface: DirectoryTreeManager
Returns the internationalized label for a given path of the specified Directory tree. The Directory tree label is not included.

Specified by:
getLabelFor in interface DirectoryTreeManager

getLabelFor

public String getLabelFor(String directoryTreeName,
                          String fullPath,
                          boolean includeDirectoryTreeLabel)
Description copied from interface: DirectoryTreeManager
Returns the internationalized label for a given path of the specified Directory tree, including or not the Directory tree label.

Specified by:
getLabelFor in interface DirectoryTreeManager

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.