Class ModalInjector

    • Constructor Detail

      • ModalInjector

        public ModalInjector()
    • Method Detail

      • inject

        public String inject​(javax.servlet.http.HttpServletRequest request)
                      throws freemarker.template.TemplateException,
                             IOException
        Description copied from interface: HtmlInjector
        Inject content into the current page.
        Specified by:
        inject in interface HtmlInjector
        Parameters:
        request - the current HTTP request
        Returns:
        HTML content to inject, or null
        Throws:
        freemarker.template.TemplateException
        IOException
      • generateModalHtml

        protected static String generateModalHtml​(boolean showOnLoad)
                                           throws IOException,
                                                  freemarker.template.TemplateException
        Throws:
        IOException
        freemarker.template.TemplateException
      • isPage

        protected static boolean isPage​(String endOfUri,
                                        javax.servlet.http.HttpServletRequest request)
      • isUserInAdminRole

        protected static boolean isUserInAdminRole​(javax.servlet.http.HttpServletRequest request)
      • setStateManager

        public void setStateManager​(StateManager stateManager)