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:
java.io.Serializable, TreeActions
Direct Known Subclasses:
ReducedTreeActionsBean

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

Manages the navigation tree.

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

Field Summary
static java.lang.String NODE_SELECTED_MARKER
           
 
Fields inherited from interface org.nuxeo.ecm.webapp.tree.TreeActions
DEFAULT_TREE_PLUGIN_NAME
 
Constructor Summary
TreeActionsBean()
           
 
Method Summary
 java.lang.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()
           
 java.lang.String forceTreeRefresh()
           
 java.util.List<DocumentTreeNode> getTreeRoots()
          Returns tree roots according to current document first accessible parent.
 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 java.lang.String NODE_SELECTED_MARKER
Constructor Detail

TreeActionsBean

public TreeActionsBean()
Method Detail

getTreeRoots

public java.util.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

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 java.lang.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 java.lang.String forceTreeRefresh()
                                  throws java.io.IOException
Throws:
java.io.IOException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.