Class MenuFactory


  • public class MenuFactory
    extends java.lang.Object
    Widget Library - Menu factory class
    • 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,
                                                         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