@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 DirectoryTreeManager
public DirectoryTreeNode get(String treeName)
get
in interface DirectoryTreeManager
public List<String> getDirectoryTreeNames()
getDirectoryTreeNames
in interface DirectoryTreeManager
public List<DirectoryTreeNode> getDirectoryTrees()
getDirectoryTrees
in interface DirectoryTreeManager
public String getSelectedTreeName()
getSelectedTreeName
in interface DirectoryTreeManager
public void setSelectedTreeName(String treeName)
setSelectedTreeName
in interface DirectoryTreeManager
public List<DirectoryTreeNode> getSelectedTreeAsList()
public DirectoryTreeNode getSelectedTree()
getSelectedTree
in interface DirectoryTreeManager
protected DirectoryTreeService getDirectoryTreeService()
public String getLabelFor(String directoryTreeName, String fullPath)
DirectoryTreeManager
getLabelFor
in interface DirectoryTreeManager
public String getLabelFor(String directoryTreeName, String fullPath, boolean includeDirectoryTreeLabel)
DirectoryTreeManager
getLabelFor
in interface DirectoryTreeManager
protected void computeLabels(List<String> labels, DirectoryTreeNode node, String fullPath, boolean includeDirectoryTreeLabel)
protected List<String> translateLabels(List<String> labels)
public void resetCurrentTree()
Copyright © 2016 Nuxeo SA. All rights reserved.