@Scope(value=CONVERSATION) @Name(value="treeActions") @Install(precedence=10) public class TreeActionsBean extends Object implements TreeActions, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentDocumentPath |
protected String |
currentPersonalWorkspacePath |
protected CoreSession |
documentManager |
protected String |
firstAccessibleParentPath |
protected Boolean |
isUserWorkspace |
protected NavigationContext |
navigationContext |
static String |
NODE_SELECTED_MARKER |
protected boolean |
showingGlobalRoot |
protected TreeInvalidatorBean |
treeInvalidator |
protected Map<String,List<DocumentTreeNode>> |
trees |
protected String |
userWorkspacePath |
DEFAULT_TREE_PLUGIN_NAME| Constructor and Description |
|---|
TreeActionsBean() |
public static final String NODE_SELECTED_MARKER
@In(create=true,
required=false)
protected transient CoreSession documentManager
@In(create=true) protected transient NavigationContext navigationContext
protected Map<String,List<DocumentTreeNode>> trees
protected String currentDocumentPath
@In(create=true,
required=false)
protected Boolean isUserWorkspace
@In(create=true,
required=false)
protected String currentPersonalWorkspacePath
protected String userWorkspacePath
protected String firstAccessibleParentPath
protected boolean showingGlobalRoot
@In(create=true) protected TreeInvalidatorBean treeInvalidator
public TreeActionsBean()
public List<DocumentTreeNode> getTreeRoots()
TreeActionsgetTreeRoots in interface TreeActionspublic List<DocumentTreeNode> getTreeRoots(String treeName)
protected List<DocumentTreeNode> getTreeRoots(boolean showRoot, String treeName)
protected List<DocumentTreeNode> getTreeRoots(boolean showRoot)
protected List<DocumentTreeNode> getTreeRoots(boolean showRoot, DocumentModel currentDocument)
protected List<DocumentTreeNode> getTreeRoots(boolean showRoot, DocumentModel currentDocument, String treeName)
protected DocumentTreeNode newDocumentTreeNode(DocumentModel doc, String treeName)
@Deprecated public void changeExpandListener(org.richfaces.event.CollapsibleSubTableToggleEvent event)
public String getCurrentDocumentPath()
getCurrentDocumentPath in interface TreeActionsprotected String getUserWorkspacePath()
protected String findFarthestContainerPath(String documentPath)
@Observer(value="userAllDocumentTypesSelectionChanged",
create=false)
@BypassInterceptors
public void resetCurrentDocumentData()
resetCurrentDocumentData in interface TreeActionsprotected boolean checkIfTreeInvalidationNeeded()
@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
IOExceptionpublic void toggleListener()
toggleListener in interface TreeActionspublic boolean isNodeExpandEvent()
isNodeExpandEvent in interface TreeActionsCopyright © 2019 Nuxeo. All rights reserved.