public abstract class MVCAdminJspBean extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean implements Serializable
Constructor and Description |
---|
MVCAdminJspBean() |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(String strMessage)
Add an error message
|
protected void |
addError(String strMessageKey,
Locale locale)
Add an error message
|
protected void |
addInfo(String strMessage)
Add an info message
|
protected void |
addInfo(String strMessageKey,
Locale locale)
Add an info message
|
protected void |
fillCommons(Map<String,Object> model)
Fill the model with commons objects used in templates
|
protected String |
getActionUrl(String strAction)
Get Action URL
|
protected String |
getControllerJsp()
Return the JSP name used as controller
|
protected String |
getControllerPath()
Return the path of the JSP used as controller
|
protected Map<String,Object> |
getModel()
Get a model Object filled with default values
|
protected String |
getPage(String strTemplate)
Return the page content
|
protected String |
getPage(String strPageTitleProperty,
String strTemplate)
Return the page content
|
protected String |
getPage(String strPageTitleProperty,
String strTemplate,
Map<String,Object> model)
Return the page content
|
protected String |
getViewFullUrl(String strView)
Gets the view URL with the JSP path
|
protected String |
getViewUrl(String strView)
Get a View URL
|
String |
processController(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process request as a controller
|
protected String |
redirect(javax.servlet.http.HttpServletRequest request,
String strTarget)
Redirect to requested page
|
protected String |
redirect(javax.servlet.http.HttpServletRequest request,
String strView,
Map<String,String> additionalParameters)
Redirect to an url defined by given parameters
|
protected String |
redirect(javax.servlet.http.HttpServletRequest request,
String strView,
String strParameter,
int nValue)
Redirect to an url defined by given parameters
|
protected String |
redirect(javax.servlet.http.HttpServletRequest request,
String strView,
String strParameter1,
int nValue1,
String strParameter2,
int nValue2)
Redirect to an url defined by given parameters
|
protected String |
redirectView(javax.servlet.http.HttpServletRequest request,
String strView)
Redirect to requested view
|
protected <T> boolean |
validateBean(T bean,
String strPrefix)
Validate a bean
|
getPlugin, init
public String processController(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws fr.paris.lutece.portal.service.admin.AccessDeniedException
request
- The HTTP requestresponse
- The HTTP responsefr.paris.lutece.portal.service.admin.AccessDeniedException
- If the user's has no rightprotected void addError(String strMessage)
strMessage
- The messageprotected void addError(String strMessageKey, Locale locale)
strMessageKey
- The messagelocale
- The localeprotected void addInfo(String strMessage)
strMessage
- The messageprotected void addInfo(String strMessageKey, Locale locale)
strMessageKey
- The message keylocale
- The localeprotected void fillCommons(Map<String,Object> model)
model
- The modelprotected Map<String,Object> getModel()
protected String getPage(String strTemplate)
strTemplate
- The templateprotected String getPage(String strPageTitleProperty, String strTemplate)
strPageTitleProperty
- The page title propertystrTemplate
- The templateprotected String getPage(String strPageTitleProperty, String strTemplate, Map<String,Object> model)
strPageTitleProperty
- The page title propertystrTemplate
- The templatemodel
- The modelprotected <T> boolean validateBean(T bean, String strPrefix)
T
- The bean classbean
- The beanstrPrefix
- The prefixprotected String getControllerJsp()
protected String getControllerPath()
protected String redirect(javax.servlet.http.HttpServletRequest request, String strTarget)
request
- the http requeststrTarget
- the targeted pageprotected String redirect(javax.servlet.http.HttpServletRequest request, String strView, String strParameter, int nValue)
request
- The HTTP requeststrView
- The View namestrParameter
- The additional parameternValue
- The additional parameter's valueprotected String redirect(javax.servlet.http.HttpServletRequest request, String strView, String strParameter1, int nValue1, String strParameter2, int nValue2)
request
- The HTTP requeststrView
- The View namestrParameter1
- The first additional parameternValue1
- The first additional parameter's valuestrParameter2
- The second additionnal parameternValue2
- The second additionnal parameter's valueprotected String redirect(javax.servlet.http.HttpServletRequest request, String strView, Map<String,String> additionalParameters)
request
- The HTTP requeststrView
- The View nameadditionalParameters
- A map containing parameters to add to the
URL. Keys of the map are parameters name, and values are
parameters valuesprotected String redirectView(javax.servlet.http.HttpServletRequest request, String strView)
request
- the http requeststrView
- the targeted viewprotected String getViewUrl(String strView)
strView
- The view nameprotected String getViewFullUrl(String strView)
strView
- The viewCopyright © 2016 Mairie de Paris. All Rights Reserved.