org.syncope.console.wicket.markup.html.tree
Class SyncopeRoleTree
java.lang.Object
org.syncope.console.wicket.markup.html.tree.SyncopeRoleTree
public class SyncopeRoleTree
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SyncopeRoleTree
public SyncopeRoleTree(RolesRestClient restClient)
createTreeModel
public TreeModel createTreeModel()
throws org.springframework.web.client.RestClientException
- Creates the model that feeds the tree.
- Returns:
- New instance of tree model.
- Throws:
org.springframework.web.client.RestClientException
parentExists
public boolean parentExists(Long parentId,
List<Long> list)
- Check if a parent has already been inserted in the parents id list
- Parameters:
parentId - list -
- Returns:
- true if a parent id is already in the list, false otherwise
addChildToParent
public List<SyncopeTreeNode> addChildToParent(List<SyncopeTreeNode> nodes,
SyncopeTreeNode child)
- Add a node child to the specific parent
- Parameters:
nodes - list populatechild - to be added to list
- Returns:
- List
convertToTreeModel
public TreeModel convertToTreeModel(List<SyncopeTreeNode> list)
add
public void add(DefaultMutableTreeNode parent,
List<SyncopeTreeNode> sub)
Copyright © 2010. All Rights Reserved.