Class ResourceExtenderJspBean
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.plugins.extend.web.ResourceExtenderJspBean
- All Implemented Interfaces:
Serializable
@SessionScoped
@Named
@Controller(controllerJsp="ManageResourceExtendersByResource.jsp",
controllerPath="jsp/admin/plugins/extend/",
right="RESOURCE_EXTENDER_MANAGEMENT",
securityTokenEnabled=true)
public class ResourceExtenderJspBean
extends fr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean
Back office controller of the resource extenders.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe action creating an extender on a default resource.static final StringThe action creating an extender.static final StringThe action disabling an extender.static final StringThe action enabling an extender.static final StringThe action modifying the default configuration of an extender type.static final StringThe action modifying the configuration of an extender.static final StringThe action removing an extender.static final StringThe path of the JSP of this controller.static final StringThe JSP of this controller.static final StringThe right to manage the resource extenders.static final StringThe view confirming the creation of an extender requested from a resource.static final StringThe view confirming the deactivation of an extender.static final StringThe view confirming the activation of an extender.static final StringThe view confirming the removal of an extender.static final StringThe view and action creating an extender on a default resource.static final StringThe view and action creating an extender.static final StringThe view showing the history of an extender.static final StringThe view showing the information of an extender.static final StringThe view listing the extenders by resource.static final StringThe view listing the extenders by resource type.static final StringThe view and action modifying the default configuration of an extender type.static final StringThe view and action modifying the configuration of an extender. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCreateDefaultResourceExtender(jakarta.servlet.http.HttpServletRequest request) Creates a default resource and its extender.doCreateResourceExtender(jakarta.servlet.http.HttpServletRequest request) Creates an extender.doDisableExtender(jakarta.servlet.http.HttpServletRequest request) Disables an extender.doEnableExtender(jakarta.servlet.http.HttpServletRequest request) Enables an extender.doModifyDefaultConfig(jakarta.servlet.http.HttpServletRequest request) Saves the default configuration of an extender type.doModifyExtenderConfig(jakarta.servlet.http.HttpServletRequest request) Saves the configuration of an extender.doRemoveResourceExtender(jakarta.servlet.http.HttpServletRequest request) Removes an extender, its add-on and its history, then the default resource it leaves alone.getConfirmCreateResourceExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the creation of an extender requested from a resource.getConfirmDisableExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the deactivation of an extender.getConfirmEnableExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the activation of an extender.getConfirmRemoveResourceExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the removal of an extender.getCreateDefaultResourceExtender(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the form naming the default resource of a new extender.getCreateResourceExtender(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the form creating an extender.getManageResourceExtendersByResource(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the extenders by resource, or runs the plugin action the request invokes.getManageResourceExtendersByResourceType(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the extenders by resource type, or runs the plugin action the request invokes.getModifyDefaultConfig(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the default configuration form of an extender type.getModifyExtenderConfig(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the configuration form of an extender.getViewExtenderHistory(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the history of an extender.getViewExtenderInfo(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the information of an extender.processController(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods 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_RESOURCE_EXTENDER
The right to manage the resource extenders.- See Also:
-
JSP_MANAGE_RESOURCE_EXTENDERS
The JSP of this controller.- See Also:
-
CONTROLLER_PATH
The path of the JSP of this controller.- See Also:
-
VIEW_MANAGE_RESOURCE_EXTENDERS_BY_RESOURCE
The view listing the extenders by resource.- See Also:
-
VIEW_MANAGE_RESOURCE_EXTENDERS_BY_RESOURCE_TYPE
The view listing the extenders by resource type.- See Also:
-
VIEW_CREATE_RESOURCE_EXTENDER
The view and action creating an extender.- See Also:
-
VIEW_CONFIRM_CREATE_RESOURCE_EXTENDER
The view confirming the creation of an extender requested from a resource.- See Also:
-
VIEW_CREATE_DEFAULT_RESOURCE_EXTENDER
The view and action creating an extender on a default resource.- See Also:
-
VIEW_CONFIRM_REMOVE_RESOURCE_EXTENDER
The view confirming the removal of an extender.- See Also:
-
VIEW_MODIFY_EXTENDER_CONFIG
The view and action modifying the configuration of an extender.- See Also:
-
VIEW_MODIFY_DEFAULT_CONFIG
The view and action modifying the default configuration of an extender type.- See Also:
-
VIEW_CONFIRM_DISABLE_EXTENDER
The view confirming the deactivation of an extender.- See Also:
-
VIEW_CONFIRM_ENABLE_EXTENDER
The view confirming the activation of an extender.- See Also:
-
VIEW_EXTENDER_INFO
The view showing the information of an extender.- See Also:
-
VIEW_EXTENDER_HISTORY
The view showing the history of an extender.- See Also:
-
ACTION_CREATE_RESOURCE_EXTENDER
The action creating an extender.- See Also:
-
ACTION_CREATE_DEFAULT_RESOURCE_EXTENDER
The action creating an extender on a default resource.- See Also:
-
ACTION_REMOVE_RESOURCE_EXTENDER
The action removing an extender.- See Also:
-
ACTION_MODIFY_EXTENDER_CONFIG
The action modifying the configuration of an extender.- See Also:
-
ACTION_MODIFY_DEFAULT_CONFIG
The action modifying the default configuration of an extender type.- See Also:
-
ACTION_DISABLE_EXTENDER
The action disabling an extender.- See Also:
-
ACTION_ENABLE_EXTENDER
The action enabling an extender.- See Also:
-
-
Constructor Details
-
ResourceExtenderJspBean
public ResourceExtenderJspBean()
-
-
Method Details
-
processController
public String processController(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws fr.paris.lutece.portal.service.admin.AccessDeniedException - Overrides:
processControllerin classfr.paris.lutece.portal.util.mvc.admin.MVCAdminJspBean- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException
-
getManageResourceExtendersByResource
@View(value="manageResourceExtendersByResource", defaultView=true) public String getManageResourceExtendersByResource(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Displays the extenders by resource, or runs the plugin action the request invokes.- Parameters:
model- the modelrequest- the request- Returns:
- the page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- if the plugin action refuses the user
-
getManageResourceExtendersByResourceType
@View("manageResourceExtendersByResourceType") public String getManageResourceExtendersByResourceType(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) throws fr.paris.lutece.portal.service.admin.AccessDeniedException Displays the extenders by resource type, or runs the plugin action the request invokes.- Parameters:
model- the modelrequest- the request- Returns:
- the page
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedException- if the plugin action refuses the user
-
getCreateResourceExtender
@View("createResourceExtender") public String getCreateResourceExtender(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the form creating an extender.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-
getConfirmCreateResourceExtender
@View(value="confirmCreateResourceExtender", securityTokenAction="createResourceExtender") public String getConfirmCreateResourceExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the creation of an extender requested from a resource.- Parameters:
request- the request- Returns:
- the confirmation message
-
doCreateResourceExtender
@Action("createResourceExtender") public String doCreateResourceExtender(jakarta.servlet.http.HttpServletRequest request) Creates an extender.- Parameters:
request- the request- Returns:
- the next page
-
getCreateDefaultResourceExtender
@View("createDefaultResourceExtender") public String getCreateDefaultResourceExtender(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the form naming the default resource of a new extender.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-
doCreateDefaultResourceExtender
@Action("createDefaultResourceExtender") public String doCreateDefaultResourceExtender(jakarta.servlet.http.HttpServletRequest request) Creates a default resource and its extender.- Parameters:
request- the request- Returns:
- the next page
-
getConfirmRemoveResourceExtender
@View(value="confirmRemoveResourceExtender", securityTokenAction="removeResourceExtender") public String getConfirmRemoveResourceExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the removal of an extender.- Parameters:
request- the request- Returns:
- the confirmation message
-
doRemoveResourceExtender
@Action("removeResourceExtender") public String doRemoveResourceExtender(jakarta.servlet.http.HttpServletRequest request) Removes an extender, its add-on and its history, then the default resource it leaves alone.- Parameters:
request- the request- Returns:
- the next page
-
getConfirmDisableExtender
@View(value="confirmDisableExtender", securityTokenAction="disableExtender") public String getConfirmDisableExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the deactivation of an extender.- Parameters:
request- the request- Returns:
- the confirmation message
-
doDisableExtender
@Action("disableExtender") public String doDisableExtender(jakarta.servlet.http.HttpServletRequest request) Disables an extender.- Parameters:
request- the request- Returns:
- the next page
-
getConfirmEnableExtender
@View(value="confirmEnableExtender", securityTokenAction="enableExtender") public String getConfirmEnableExtender(jakarta.servlet.http.HttpServletRequest request) Asks the user to confirm the activation of an extender.- Parameters:
request- the request- Returns:
- the confirmation message
-
doEnableExtender
@Action("enableExtender") public String doEnableExtender(jakarta.servlet.http.HttpServletRequest request) Enables an extender.- Parameters:
request- the request- Returns:
- the next page
-
getModifyExtenderConfig
@View("modifyExtenderConfig") public String getModifyExtenderConfig(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the configuration form of an extender.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-
doModifyExtenderConfig
@Action("modifyExtenderConfig") public String doModifyExtenderConfig(jakarta.servlet.http.HttpServletRequest request) Saves the configuration of an extender.- Parameters:
request- the request- Returns:
- the next page
-
getModifyDefaultConfig
@View("modifyDefaultConfig") public String getModifyDefaultConfig(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the default configuration form of an extender type.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-
doModifyDefaultConfig
@Action("modifyDefaultConfig") public String doModifyDefaultConfig(jakarta.servlet.http.HttpServletRequest request) Saves the default configuration of an extender type.- Parameters:
request- the request- Returns:
- the next page
-
getViewExtenderInfo
@View("viewExtenderInfo") public String getViewExtenderInfo(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the information of an extender.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-
getViewExtenderHistory
@View("viewExtenderHistory") public String getViewExtenderHistory(fr.paris.lutece.portal.web.cdi.mvc.Models model, jakarta.servlet.http.HttpServletRequest request) Displays the history of an extender.- Parameters:
model- the modelrequest- the request- Returns:
- the page
-