public class UserTreeNode extends Object
Modifier and Type | Field and Description |
---|---|
protected List<UserTreeNode> |
childrens |
protected DocumentModel |
document |
protected String |
name |
Constructor and Description |
---|
UserTreeNode(DocumentModel document) |
UserTreeNode(String name) |
Modifier and Type | Method and Description |
---|---|
void |
addChildren(UserTreeNode child) |
static List<UserTreeNode> |
constructNodes(Collection<DocumentModel> docs)
Factory method to build a collection of UserTReeNode.
|
List<UserTreeNode> |
getChildrens() |
String |
getDisplayedName()
Get the displayed name, if instantiate with a documentModel it will be the document Id
|
String |
getId() |
protected DocumentModel document
protected List<UserTreeNode> childrens
public UserTreeNode(String name)
public UserTreeNode(DocumentModel document)
public List<UserTreeNode> getChildrens()
public void addChildren(UserTreeNode child)
public String getDisplayedName()
public static List<UserTreeNode> constructNodes(Collection<DocumentModel> docs)
Copyright © 2018 Nuxeo. All rights reserved.