org.jaffa.components.menu
Class MainMenu

java.lang.Object
  extended byorg.jaffa.components.menu.MainMenu

public class MainMenu
extends Object

MainMenu Class - Reads the XML file containing the Menu Groups and Options and builds a LinkedHashMap of Groups / Options that the User logged in has security access to.

Version:
1.0
Author:
MegS

Constructor Summary
MainMenu()
          Default constructor.
 
Method Summary
 void determineComp(HttpServletRequest request, PageContext pageContext)
          Builds the HashMap of the Menu Groups / Options the User logged in has security access to, if the HashMap hasnt already been built.
 Map getComponents()
          Return Map containing list of Groups / Options User logged in has access.
static void main(String[] args)
          Test that the menu can be read ok
 void reset()
          Reset the HashMap to null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainMenu

public MainMenu()
Default constructor.

Method Detail

determineComp

public void determineComp(HttpServletRequest request,
                          PageContext pageContext)
Builds the HashMap of the Menu Groups / Options the User logged in has security access to, if the HashMap hasnt already been built.

Parameters:
request - The web server request to use for context

reset

public void reset()
Reset the HashMap to null


getComponents

public Map getComponents()
Return Map containing list of Groups / Options User logged in has access.

Returns:
Map - Groups and Options User has access to.

main

public static void main(String[] args)
Test that the menu can be read ok



Copyright © 2002-2004 JAFFA Project.