@Scope(value=CONVERSATION) @Name(value="treeActions") @Install(precedence=10) public class TreeActionsBean extends Object implements TreeActions, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
NODE_SELECTED_MARKER |
DEFAULT_TREE_PLUGIN_NAME
Constructor and Description |
---|
TreeActionsBean() |
Modifier and Type | Method and Description |
---|---|
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.
|
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() |
public static final String NODE_SELECTED_MARKER
public List<DocumentTreeNode> getTreeRoots() throws ClientException
TreeActions
getTreeRoots
in interface TreeActions
ClientException
public List<DocumentTreeNode> getTreeRoots(String treeName) throws ClientException
ClientException
public void changeExpandListener(org.richfaces.event.NodeExpandedEvent event)
TreeActions
Used to not interfere with node state when manually changing open nodes.
changeExpandListener
in interface TreeActions
public Boolean adviseNodeOpened(org.richfaces.component.UITree treeComponent)
TreeActions
adviseNodeOpened
in interface TreeActions
@Observer(value="userAllDocumentTypesSelectionChanged", create=false) @BypassInterceptors public void resetCurrentDocumentData()
resetCurrentDocumentData
in interface TreeActions
@Observer(value={"goHome","domainSelectionChanged","documentChanged","documentSecurityChanged","documentChildrenChanged"}, create=false) @BypassInterceptors public void reset()
reset
in interface TreeActions
@Observer(value="personnalWorkspace", create=false) public void switchToUserWorkspace()
@Observer(value={"goHome","domainSelectionChanged"}, create=false) @BypassInterceptors public void switchToDocumentBase()
public String forceTreeRefresh() throws IOException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.