org.syncope.console.wicket.markup.html.tree
Class SyncopeRoleTree

java.lang.Object
  extended by org.syncope.console.wicket.markup.html.tree.SyncopeRoleTree

public class SyncopeRoleTree
extends Object


Constructor Summary
SyncopeRoleTree(RolesRestClient restClient)
           
 
Method Summary
 void add(DefaultMutableTreeNode parent, List<SyncopeTreeNode> sub)
           
 List<SyncopeTreeNode> addChildToParent(List<SyncopeTreeNode> nodes, SyncopeTreeNode child)
          Add a node child to the specific parent
 TreeModel convertToTreeModel(List<SyncopeTreeNode> list)
           
 TreeModel createTreeModel()
          Creates the model that feeds the tree.
 boolean parentExists(Long parentId, List<Long> list)
          Check if a parent has already been inserted in the parents id list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyncopeRoleTree

public SyncopeRoleTree(RolesRestClient restClient)
Method Detail

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 populate
child - 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.