Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.directory
Class DirectoryTreeManagerBean

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

@Scope(value=CONVERSATION)
@Name(value="directoryTreeManager")
public class DirectoryTreeManagerBean
extends java.lang.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 java.lang.String NODE_SELECTED_MARKER
           
 
Constructor Summary
DirectoryTreeManagerBean()
           
 
Method Summary
 java.lang.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.
 void destroy()
           
 DirectoryTreeNode get(java.lang.String treeName)
           
 java.util.List<java.lang.String> getDirectoryTreeNames()
           
 java.util.List<DirectoryTreeNode> getDirectoryTrees()
           
 java.lang.String getLabelFor(java.lang.String directoryTreeName, java.lang.String fullPath)
          Returns the internationalized label for a given path of the specified Directory tree.
 java.lang.String getLabelFor(java.lang.String directoryTreeName, java.lang.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()
           
 java.lang.String getSelectedTreeName()
           
 boolean isInitialized()
           
 void setSelectedTreeName(java.lang.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 java.lang.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(java.lang.String treeName)
Specified by:
get in interface DirectoryTreeManager

getDirectoryTreeNames

public java.util.List<java.lang.String> getDirectoryTreeNames()
Specified by:
getDirectoryTreeNames in interface DirectoryTreeManager

getDirectoryTrees

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

getSelectedTreeName

public java.lang.String getSelectedTreeName()
Specified by:
getSelectedTreeName in interface DirectoryTreeManager

setSelectedTreeName

public void setSelectedTreeName(java.lang.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 java.lang.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 java.lang.String getLabelFor(java.lang.String directoryTreeName,
                                    java.lang.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 java.lang.String getLabelFor(java.lang.String directoryTreeName,
                                    java.lang.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

destroy

@Destroy
public void destroy()
Specified by:
destroy in interface DirectoryTreeManager

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.