Package org.apache.ofbiz.widget.model
Class MenuFactory
- java.lang.Object
-
- org.apache.ofbiz.widget.model.MenuFactory
-
public class MenuFactory extends java.lang.Object
Widget Library - Menu factory class
-
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description MenuFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ModelMenu
getMenuFromLocation(java.lang.String resourceName, java.lang.String menuName, VisualTheme visualTheme)
static ModelMenu
getMenuFromWebappContext(java.lang.String resourceName, java.lang.String menuName, javax.servlet.http.HttpServletRequest request)
static java.util.Map<java.lang.String,ModelMenu>
readMenuDocument(org.w3c.dom.Document menuFileDoc, java.lang.String menuLocation, VisualTheme visualTheme)
-
-
-
Method Detail
-
getMenuFromWebappContext
public static ModelMenu getMenuFromWebappContext(java.lang.String resourceName, java.lang.String menuName, javax.servlet.http.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, java.lang.String menuLocation, VisualTheme visualTheme)
-
getMenuFromLocation
public static ModelMenu getMenuFromLocation(java.lang.String resourceName, java.lang.String menuName, VisualTheme visualTheme) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
- Throws:
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
-
-