@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
TreeActionsgetTreeRoots in interface TreeActionsClientExceptionpublic List<DocumentTreeNode> getTreeRoots(String treeName) throws ClientException
ClientExceptionpublic void changeExpandListener(org.richfaces.event.NodeExpandedEvent event)
TreeActionsUsed to not interfere with node state when manually changing open nodes.
changeExpandListener in interface TreeActionspublic Boolean adviseNodeOpened(org.richfaces.component.UITree treeComponent)
TreeActionsadviseNodeOpened 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=true) public void switchToUserWorkspace()
@Observer(value="goHome", create=false) @BypassInterceptors public void switchToDocumentBase()
public String forceTreeRefresh() throws IOException
IOExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.