|
||||||||||
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 |
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,
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, 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 fr.paris.lutece.portal.service.admin.AccessDeniedException
request
- The HTTP requestresponse
- The HTTP response
fr.paris.lutece.portal.service.admin.AccessDeniedException
- If the user's has no rightprotected 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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |