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 java.lang.Object


Constructor Summary
SyncopeRoleTree(RolesRestClient restClient)
           
 
Method Summary
 void add(javax.swing.tree.DefaultMutableTreeNode parent, java.util.List<SyncopeTreeNode> sub)
           
 java.util.List<SyncopeTreeNode> addChildToParent(java.util.List<SyncopeTreeNode> nodes, SyncopeTreeNode child)
          Add a node child to the specific parent
 javax.swing.tree.TreeModel convertToTreeModel(java.util.List<SyncopeTreeNode> list)
           
 javax.swing.tree.TreeModel createTreeModel()
          Creates the model that feeds the tree.
 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
 
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 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 populate
child - 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.