Class ModalInjector
- java.lang.Object
-
- org.opennms.features.datachoices.web.internal.ModalInjector
-
- All Implemented Interfaces:
HtmlInjector
public class ModalInjector extends java.lang.Object implements HtmlInjector
-
-
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)
-
-
-
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 interfaceHtmlInjector
- 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)
-
-