org.syncope.console.wicket.markup.html.tree
Class SyncopeRoleTree
java.lang.Object
org.syncope.console.wicket.markup.html.tree.SyncopeRoleTree
public class SyncopeRoleTree
- extends java.lang.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 javax.swing.tree.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(java.lang.Long parentId,
java.util.List<java.lang.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 java.util.List<SyncopeTreeNode> addChildToParent(java.util.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 javax.swing.tree.TreeModel convertToTreeModel(java.util.List<SyncopeTreeNode> list)
add
public void add(javax.swing.tree.DefaultMutableTreeNode parent,
java.util.List<SyncopeTreeNode> sub)
Copyright © 2010. All Rights Reserved.