Package fr.paris.lutece.portal.web.style
Class PortletTemplateJspBean
java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
fr.paris.lutece.portal.web.style.PortletTemplateJspBean
- All Implemented Interfaces:
Serializable
@RequestScoped
@Named
@Controller(controllerJsp="ManagePortletTemplates.jsp",
controllerPath="jsp/admin/style/",
right="CORE_PORTLET_TEMPLATE_MANAGEMENT",
securityTokenEnabled=true)
public class PortletTemplateJspBean
extends MVCAdminJspBean
Management of the portlet templates : the FreeMarker templates the portlets of each type can be rendered with. It replaces the XSL style management of
the former versions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, String strTemplatePath, BindingResult bindingResult) Creates a templatedoModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, BindingResult bindingResult) Modifies a template.doRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request) Removes a template.getConfirmRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request) Displays the removal confirmationgetCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the creation formgetManagePortletTemplates(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the templates, grouped by portlet type, optionally restricted to one portlet type.getModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the modification formMethods inherited from class fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
processControllerMethods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
getPlugin, initMethods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getSecurityTokenService, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
-
Field Details
-
RIGHT_MANAGE_PORTLET_TEMPLATES
The right of the feature- See Also:
-
CONTROLLER_JSP
The controller JSP- See Also:
-
CONTROLLER_PATH
The controller path- See Also:
-
-
Constructor Details
-
PortletTemplateJspBean
public PortletTemplateJspBean()
-
-
Method Details
-
getManagePortletTemplates
@View(value="managePortletTemplates", defaultView=true) public String getManagePortletTemplates(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the templates, grouped by portlet type, optionally restricted to one portlet type. The model tells, for each template, whether the user may modify or delete it and whether a portlet uses it : a used template cannot be deleted.- Parameters:
request- the HTTP requestmodel- the model- Returns:
- the page
-
getCreatePortletTemplate
@View("createPortletTemplate") public String getCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the creation form- Parameters:
request- the HTTP requestmodel- the model- Returns:
- the page
-
doCreatePortletTemplate
@Action("createPortletTemplate") public String doCreatePortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, String strTemplatePath, BindingResult bindingResult) Creates a template- Parameters:
request- the HTTP requestmodel- the modelstrPortletTypeId- the portlet type identifierstrDescription- the descriptionstrTemplatePath- the template pathbindingResult- the binding result- Returns:
- the redirection
-
getModifyPortletTemplate
@View("modifyPortletTemplate") public String getModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model) Displays the modification form- Parameters:
request- the HTTP requestmodel- the model- Returns:
- the page
-
doModifyPortletTemplate
@Action("modifyPortletTemplate") public String doModifyPortletTemplate(jakarta.servlet.http.HttpServletRequest request, Models model, String strPortletTypeId, String strDescription, BindingResult bindingResult) Modifies a template. The template path is never changed : a template is bound to its file, a portlet needing another file needs another template.- Parameters:
request- the HTTP requestmodel- the modelstrPortletTypeId- the portlet type identifierstrDescription- the descriptionbindingResult- the binding result- Returns:
- the redirection
-
getConfirmRemovePortletTemplate
@View(value="confirmRemovePortletTemplate", securityTokenAction="removePortletTemplate") public String getConfirmRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request) Displays the removal confirmation- Parameters:
request- the HTTP request- Returns:
- the redirection to the confirmation message
-
doRemovePortletTemplate
@Action("removePortletTemplate") public String doRemovePortletTemplate(jakarta.servlet.http.HttpServletRequest request) Removes a template. A template used by a portlet is never removed.- Parameters:
request- the HTTP request- Returns:
- the redirection
-