com.silverpeas.treeMenu.process
Class TreeBuilder

java.lang.Object
  extended by com.silverpeas.treeMenu.process.TreeBuilder

public class TreeBuilder
extends Object

Allows the level menu building

Author:
david derigent

Method Summary
static MenuItem buildLevelMenu(TreeFilter filter, MenuItem father, String userId, String language, OrganisationController controller)
          Build one level of menu according to the parameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildLevelMenu

public static MenuItem buildLevelMenu(TreeFilter filter,
                                      MenuItem father,
                                      String userId,
                                      String language,
                                      OrganisationController controller)
Build one level of menu according to the parameters

Parameters:
filter - determines what type of node and/or component must be display in the menu
father - the father of menu level to build
userId - the user identifier to display only the authorized item menu
language - the user language to display the label menu in the correct language
controller - OrganizatioCnontroller object used to get the data from the database
Returns:
a level of the menu
Throws:
RemoteException - throws if a error occurred during a ejb call


Copyright © 2016 Silverpeas. All Rights Reserved.