|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
public abstract class MVCAdminJspBean
MVC Admin JspBean implementation let use MVC model to develop admin feature.
| Constructor Summary | |
|---|---|
MVCAdminJspBean()
|
|
| Method Summary | ||
|---|---|---|
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 |
download(byte[] data,
String strFilename,
String strContentType)
Initiates a download of a byte array |
|
protected void |
download(String strData,
String strFilename,
String strContentType)
Initiates a file download |
|
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
|
validateBean(T bean,
String strPrefix)
Validate a bean |
|
| Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean |
|---|
getPlugin, init |
| Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean |
|---|
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, populate, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MVCAdminJspBean()
| Method Detail |
|---|
public String processController(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws AccessDeniedException
request - The HTTP requestresponse - The HTTP response
AccessDeniedException - If the user's has no rightprotected void addError(String strMessage)
strMessage - The message
protected void addError(String strMessageKey,
Locale locale)
strMessageKey - The messagelocale - The localeprotected void addInfo(String strMessage)
strMessage - The message
protected 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 template
protected String getPage(String strPageTitleProperty,
String strTemplate)
strPageTitleProperty - The page title propertystrTemplate - The template
protected String getPage(String strPageTitleProperty,
String strTemplate,
Map<String,Object> model)
strPageTitleProperty - The page title propertystrTemplate - The templatemodel - The model
protected <T> boolean validateBean(T bean,
String strPrefix)
T - The bean classbean - The beanstrPrefix - The prefix
protected String getControllerJsp()
protected String getControllerPath()
protected String redirect(javax.servlet.http.HttpServletRequest request,
String strTarget)
request - the http requeststrTarget - the targeted page
protected 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 value
protected 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 value
protected 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 values
protected String redirectView(javax.servlet.http.HttpServletRequest request,
String strView)
request - the http requeststrView - the targeted view
protected String getViewUrl(String strView)
strView - The view name
protected String getViewFullUrl(String strView)
strView - The view
protected String getActionUrl(String strAction)
strAction - The view name
protected void download(String strData,
String strFilename,
String strContentType)
strData - Data of the file to downloadstrFilename - Name of filestrContentType - content type to set to the response
protected void download(byte[] data,
String strFilename,
String strContentType)
data - Data to downloadstrFilename - Name of the downloaded filestrContentType - Content type to set to the response
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||