public class ModalInjector extends Object implements HtmlInjector
Constructor and Description |
---|
ModalInjector() |
Modifier and Type | Method and Description |
---|---|
protected static String |
generateModalHtml(boolean showOnLoad) |
String |
inject(javax.servlet.http.HttpServletRequest request)
Inject content into the current page.
|
protected static boolean |
isPage(String endOfUri,
javax.servlet.http.HttpServletRequest request) |
protected static boolean |
isUserInAdminRole(javax.servlet.http.HttpServletRequest request) |
void |
setStateManager(StateManager stateManager) |
public String inject(javax.servlet.http.HttpServletRequest request) throws freemarker.template.TemplateException, IOException
HtmlInjector
inject
in interface HtmlInjector
request
- the current HTTP requestfreemarker.template.TemplateException
IOException
protected static String generateModalHtml(boolean showOnLoad) throws IOException, freemarker.template.TemplateException
IOException
freemarker.template.TemplateException
protected static boolean isPage(String endOfUri, javax.servlet.http.HttpServletRequest request)
protected static boolean isUserInAdminRole(javax.servlet.http.HttpServletRequest request)
public void setStateManager(StateManager stateManager)
Copyright © 2021. All rights reserved.