org.ofbiz.widget.menu
Class MenuFactory

java.lang.Object
  extended by org.ofbiz.widget.menu.MenuFactory

public class MenuFactory
extends java.lang.Object

Widget Library - Menu factory class


Field Summary
static UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelMenu>> menuLocationCache
           
static UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelMenu>> menuWebappCache
           
static java.lang.String module
           
 
Constructor Summary
MenuFactory()
           
 
Method Summary
static ModelMenu getMenuFromLocation(java.lang.String resourceName, java.lang.String menuName, GenericDelegator delegator, LocalDispatcher dispatcher)
           
static ModelMenu getMenuFromWebappContext(java.lang.String resourceName, java.lang.String menuName, HttpServletRequest request)
           
static java.util.Map<java.lang.String,ModelMenu> readMenuDocument(org.w3c.dom.Document menuFileDoc, GenericDelegator delegator, LocalDispatcher dispatcher, java.lang.String menuLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

menuWebappCache

public static final UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelMenu>> menuWebappCache

menuLocationCache

public static final UtilCache<java.lang.String,java.util.Map<java.lang.String,ModelMenu>> menuLocationCache
Constructor Detail

MenuFactory

public MenuFactory()
Method Detail

getMenuFromWebappContext

public static ModelMenu getMenuFromWebappContext(java.lang.String resourceName,
                                                 java.lang.String menuName,
                                                 HttpServletRequest request)
                                          throws java.io.IOException,
                                                 org.xml.sax.SAXException,
                                                 javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException

readMenuDocument

public static java.util.Map<java.lang.String,ModelMenu> readMenuDocument(org.w3c.dom.Document menuFileDoc,
                                                                         GenericDelegator delegator,
                                                                         LocalDispatcher dispatcher,
                                                                         java.lang.String menuLocation)

getMenuFromLocation

public static ModelMenu getMenuFromLocation(java.lang.String resourceName,
                                            java.lang.String menuName,
                                            GenericDelegator delegator,
                                            LocalDispatcher dispatcher)
                                     throws java.io.IOException,
                                            org.xml.sax.SAXException,
                                            javax.xml.parsers.ParserConfigurationException
Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException