Class ModalInjector
- java.lang.Object
-
- org.opennms.features.datachoices.web.internal.ModalInjector
-
- All Implemented Interfaces:
HtmlInjector
public class ModalInjector extends 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 StringgenerateModalHtml(boolean showOnLoad)Stringinject(javax.servlet.http.HttpServletRequest request)Inject content into the current page.protected static booleanisPage(String endOfUri, javax.servlet.http.HttpServletRequest request)protected static booleanisUserInAdminRole(javax.servlet.http.HttpServletRequest request)voidsetStateManager(StateManager stateManager)
-
-
-
Method Detail
-
inject
public String inject(javax.servlet.http.HttpServletRequest request) throws freemarker.template.TemplateException, IOException
Description copied from interface:HtmlInjectorInject content into the current page.- Specified by:
injectin interfaceHtmlInjector- Parameters:
request- the current HTTP request- Returns:
- HTML content to inject, or null
- Throws:
freemarker.template.TemplateExceptionIOException
-
generateModalHtml
protected static String generateModalHtml(boolean showOnLoad) throws IOException, freemarker.template.TemplateException
- Throws:
IOExceptionfreemarker.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)
-
-