org.nuxeo.ecm.webapp.tree
Class TreeActionsBean
java.lang.Object
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
NODE_SELECTED_MARKER
public static final String NODE_SELECTED_MARKER
TreeActionsBean
public TreeActionsBean()
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
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.