Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webapp.tree
Class TreeActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.webapp.tree.TreeActionsBean
All Implemented Interfaces:
Serializable, TreeActions
Direct Known Subclasses:
ReducedTreeActionsBean

@Scope(value=CONVERSATION)
@Name(value="treeActions")
@Install(precedence=10)
public class TreeActionsBean
extends Object
implements TreeActions, Serializable

Manages the navigation tree.

Author:
Razvan Caraghin, Anahide Tchertchian
See Also:
Serialized Form

Field Summary
static String NODE_SELECTED_MARKER
           
 
Fields inherited from interface org.nuxeo.ecm.webapp.tree.TreeActions
DEFAULT_TREE_PLUGIN_NAME
 
Constructor Summary
TreeActionsBean()
           
 
Method Summary
 Boolean adviseNodeOpened(org.richfaces.component.UITree treeComponent)
          Returns true if node should be opened according to current document.
 void changeExpandListener(org.richfaces.event.NodeExpandedEvent event)
          Listener for node opening/closing events.
 void destroy()
           
 String forceTreeRefresh()
           
 List<DocumentTreeNode> getTreeRoots()
          Returns tree roots according to current document first accessible parent.
 List<DocumentTreeNode> getTreeRoots(String treeName)
           
 void reset()
           
 void resetCurrentDocumentData()
           
 void switchToDocumentBase()
           
 void switchToUserWorkspace()
           
 
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

TreeActionsBean

public TreeActionsBean()
Method Detail

getTreeRoots

public List<DocumentTreeNode> getTreeRoots()
                                    throws ClientException
Description copied from interface: TreeActions
Returns tree roots according to current document first accessible parent.

Specified by:
getTreeRoots in interface TreeActions
Throws:
ClientException

getTreeRoots

public List<DocumentTreeNode> getTreeRoots(String treeName)
                                    throws ClientException
Throws:
ClientException

changeExpandListener

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

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

Specified by:
changeExpandListener in interface TreeActions

adviseNodeOpened

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

Specified by:
adviseNodeOpened in interface TreeActions

resetCurrentDocumentData

@Observer(value="userAllDocumentTypesSelectionChanged",
          create=false)
@BypassInterceptors
public void resetCurrentDocumentData()
Specified by:
resetCurrentDocumentData in interface TreeActions

reset

@Observer(value={"goHome","domainSelectionChanged","documentChanged","documentSecurityChanged","documentChildrenChanged"},
          create=false)
@BypassInterceptors
public void reset()
Specified by:
reset in interface TreeActions

destroy

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

switchToUserWorkspace

@Observer(value="personnalWorkspace",
          create=false)
public void switchToUserWorkspace()

switchToDocumentBase

@Observer(value={"goHome","domainSelectionChanged"},
          create=false)
@BypassInterceptors
public void switchToDocumentBase()

forceTreeRefresh

public String forceTreeRefresh()
                        throws IOException
Throws:
IOException

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.