Class AdminPageJspBean

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

@SessionScoped @Named public class AdminPageJspBean extends AdminFeaturesPageJspBean
This class provides the admin interface to manage administration of site
See Also:
  • Field Details

  • Constructor Details

    • AdminPageJspBean

      public AdminPageJspBean()
  • Method Details

    • getAdminPage

      public String getAdminPage(jakarta.servlet.http.HttpServletRequest request)
      Displays the page which contains the management forms of a skin page whose identifier is specified in parameter
      Parameters:
      request - The identifier of the page
      Returns:
      The html code of the management forms of a page
    • getAdminPagePreview

      public String getAdminPagePreview(jakarta.servlet.http.HttpServletRequest request) throws UserNotSignedException, SiteMessageException
      Returns the html code for displaying the page whose identifier is specified in parameter from the administration unit.
      That is useful to make a preview of the page.
      Parameters:
      request - The http request
      Returns:
      The html code of the page
      Throws:
      UserNotSignedException - The UserNotSignedException
      SiteMessageException - occurs when a site message need to be displayed
    • doModifyPage

      public String doModifyPage(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes of the modification of the page informations
      Parameters:
      request - The http request
      Returns:
      The jsp url result of the process
      Throws:
      AccessDeniedException - if the security token is invalid
    • doMovePage

      public String doMovePage(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Moves a page in the tree of the site, dragged in the tree of the site administration: it takes a place among the child pages of a parent, the other child pages keeping their order around it. The place is told by a sister page, the page going before it (before_id) or after it (after_id), or by none, the page going last: the tree the user sees leaves out the pages the user may not view, a place counted in it would not be the place among all the child pages. A missing, negative or out of range number is refused, and so is an unknown page (it loads with the identifier 0)
      Parameters:
      request - The http request, with the page, its parent and the sister page it goes before or after, if any
      Returns:
      The url of the page in the site administration, or of an error message
      Throws:
      AccessDeniedException - if the security token is invalid, or if the user may not manage the page or its new parent
    • getRemovePage

      public String getRemovePage(jakarta.servlet.http.HttpServletRequest request)
      Display the confirm page for the delete of a page
      Parameters:
      request - The http request
      Returns:
      The url of the confirm page
    • doRemovePage

      public String doRemovePage(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the deletion of a page
      Parameters:
      request - The http request
      Returns:
      The jsp url result of the process
      Throws:
      AccessDeniedException - if the security token is invalid
    • doCreateChildPage

      public String doCreateChildPage(jakarta.servlet.http.HttpServletRequest request) throws AccessDeniedException
      Processes the creation of a child page to the page whose identifier is stored in the http request
      Parameters:
      request - The http request
      Returns:
      The jsp url result of the process
      Throws:
      AccessDeniedException - If the security token is invalid
    • getResourceImagePage

      public String getResourceImagePage(Page page, String strPageId)
      Management of the image associated to the page
      Parameters:
      page - The Page Object
      strPageId - The page identifier
      Returns:
      The url