Class AdminPagePortletJspBean

java.lang.Object
fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
fr.paris.lutece.portal.web.admin.AdminPagePortletJspBean
All Implemented Interfaces:
Serializable

@RequestScoped @Named public class AdminPagePortletJspBean extends AdminFeaturesPageJspBean
This class provides the admin interface to manage administration of portlet on the pages
See Also:
  • Field Details

    • RIGHT_MANAGE_ADMIN_SITE

      public static final String RIGHT_MANAGE_ADMIN_SITE
      See Also:
    • JSP_DO_MODIFY_STATUS

      public static final String JSP_DO_MODIFY_STATUS
      The action of the security token of a status change, from the toolbar of the preview or the switch of the portlet form
      See Also:
    • JSP_DO_MODIFY_POSITION

      public static final String JSP_DO_MODIFY_POSITION
      The action of the security token of a portlet move, from the toolbar of the preview, the preview or the portlets tab
      See Also:
  • Constructor Details

    • AdminPagePortletJspBean

      public AdminPagePortletJspBean()
  • Method Details

    • doModifyPortlet

      public String doModifyPortlet(jakarta.servlet.http.HttpServletRequest request)
      Processes the modification of a portlet whose identifier is stored in the http request
      Parameters:
      request - The http request
      Returns:
      The jsp url of the process result
    • doCreatePortlet

      public String doCreatePortlet(jakarta.servlet.http.HttpServletRequest request)
      Redirects towards the url of the process creation of a portlet according to its type or null if the portlet type doesn't exist.
      Parameters:
      request - The http request
      Returns:
      The jsp url of the portlet type process creation
    • getRemovePortlet

      public String getRemovePortlet(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Displays the confirm message for deleting the portlet
      Parameters:
      request - The http request
      Returns:
      The confirm page
      Throws:
      AccessDeniedException - if the user is not authorized to manage the portlet
    • doRemovePortlet

      public String doRemovePortlet(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the removal of the portlet
      Parameters:
      request - The http request
      Returns:
      The Jsp URL of the process result
      Throws:
      AccessDeniedException - if the user is not authorized to manage the portlet
    • getModifyPortletStatus

      public String getModifyPortletStatus(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Displays the portlet status modification page
      Parameters:
      request - The http request
      Returns:
      The confirm page
      Throws:
      AccessDeniedException - if the user is not authorized to manage the portlet
    • doModifyPortletStatus

      public String doModifyPortletStatus(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the status definition for portlet : suspended or activated
      Parameters:
      request - The http request
      Returns:
      The Jsp URL of the process result
      Throws:
      AccessDeniedException - if the user is not authorized to manage the portlet
    • doUpdatePortletPosition

      public String doUpdatePortletPosition(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the Order and Column Update of the portlet
      Parameters:
      request - The http request
      Returns:
      The Jsp URL of the process result
      Throws:
      AccessDeniedException - if the security token is invalid or if the user is not authorized to manage the portlet
    • doUpdatePortletPositionJson

      public String doUpdatePortletPositionJson(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the Order and Column Update of the portlet called by a script, which saves several moves one after the other: the security token is used once, the answer gives the one of the next move
      Parameters:
      request - The http request
      Returns:
      The JSON answer: whether the move is saved, and the security token of the next move
      Throws:
      AccessDeniedException - if the security token is invalid, or if the user is not authorized to manage the portlet
    • doModifyPortletStatusJson

      public String doModifyPortletStatusJson(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the status change of the portlet called by a script, from the switch of the portlet form: the security token is used once, the answer gives the one of the next change
      Parameters:
      request - The http request
      Returns:
      The JSON answer: whether the status is saved, and the security token of the next change
      Throws:
      AccessDeniedException - if the security token is invalid, or if the user is not authorized to manage the portlet