Class ModalInjector

    • Constructor Summary

      Constructors 
      Constructor Description
      ModalInjector()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static java.lang.String generateModalHtml​(boolean showOnLoad)  
      java.lang.String inject​(javax.servlet.http.HttpServletRequest request)
      Inject content into the current page.
      protected static boolean isPage​(java.lang.String endOfUri, javax.servlet.http.HttpServletRequest request)  
      protected static boolean isUserInAdminRole​(javax.servlet.http.HttpServletRequest request)  
      void setStateManager​(StateManager stateManager)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ModalInjector

        public ModalInjector()
    • Method Detail

      • inject

        public java.lang.String inject​(javax.servlet.http.HttpServletRequest request)
                                throws freemarker.template.TemplateException,
                                       java.io.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
        java.io.IOException
      • generateModalHtml

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

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

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

        public void setStateManager​(StateManager stateManager)