@Scope(value=CONVERSATION) @Name(value="directoryTreeManager") public class DirectoryTreeManagerBean extends Object implements DirectoryTreeManager
| Modifier and Type | Field and Description |
|---|---|
protected DirectoryTreeService |
directoryTreeService |
protected CoreSession |
documentManager |
protected Map<String,String> |
messages |
static String |
NODE_SELECTED_MARKER |
protected NuxeoSeamHotReloader |
seamReload |
protected String |
selectedTree |
protected Map<String,DirectoryTreeNode> |
treeModels |
protected Long |
treeModelsTimestamp |
| Constructor and Description |
|---|
DirectoryTreeManagerBean() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeLabels(List<String> labels,
DirectoryTreeNode node,
String fullPath,
boolean includeDirectoryTreeLabel) |
DirectoryTreeNode |
get(String treeName) |
List<String> |
getDirectoryTreeNames() |
List<DirectoryTreeNode> |
getDirectoryTrees() |
protected DirectoryTreeService |
getDirectoryTreeService() |
String |
getLabelFor(String directoryTreeName,
String fullPath)
Returns the internationalized label for a given path of the specified Directory tree.
|
String |
getLabelFor(String directoryTreeName,
String fullPath,
boolean includeDirectoryTreeLabel)
Returns the internationalized label for a given path of the specified Directory tree, including or not the
Directory tree label.
|
DirectoryTreeNode |
getSelectedTree() |
List<DirectoryTreeNode> |
getSelectedTreeAsList() |
String |
getSelectedTreeName() |
boolean |
isInitialized() |
void |
resetCurrentTree() |
void |
setSelectedTreeName(String treeName) |
protected List<String> |
translateLabels(List<String> labels) |
public static final String NODE_SELECTED_MARKER
@In(create=true,
required=false)
protected transient CoreSession documentManager
@In(create=true) protected NuxeoSeamHotReloader seamReload
protected transient Map<String,DirectoryTreeNode> treeModels
protected Long treeModelsTimestamp
protected transient DirectoryTreeService directoryTreeService
protected String selectedTree
public DirectoryTreeManagerBean()
public boolean isInitialized()
isInitialized in interface DirectoryTreeManagerpublic DirectoryTreeNode get(String treeName)
get in interface DirectoryTreeManagerpublic List<String> getDirectoryTreeNames()
getDirectoryTreeNames in interface DirectoryTreeManagerpublic List<DirectoryTreeNode> getDirectoryTrees()
getDirectoryTrees in interface DirectoryTreeManagerpublic String getSelectedTreeName()
getSelectedTreeName in interface DirectoryTreeManagerpublic void setSelectedTreeName(String treeName)
setSelectedTreeName in interface DirectoryTreeManagerpublic List<DirectoryTreeNode> getSelectedTreeAsList()
public DirectoryTreeNode getSelectedTree()
getSelectedTree in interface DirectoryTreeManagerprotected DirectoryTreeService getDirectoryTreeService()
public String getLabelFor(String directoryTreeName, String fullPath)
DirectoryTreeManagergetLabelFor in interface DirectoryTreeManagerpublic String getLabelFor(String directoryTreeName, String fullPath, boolean includeDirectoryTreeLabel)
DirectoryTreeManagergetLabelFor in interface DirectoryTreeManagerprotected void computeLabels(List<String> labels, DirectoryTreeNode node, String fullPath, boolean includeDirectoryTreeLabel)
protected List<String> translateLabels(List<String> labels)
public void resetCurrentTree()
Copyright © 2019 Nuxeo. All rights reserved.