Class DocumentServiceJspBean

java.lang.Object
fr.paris.lutece.portal.web.insert.InsertServiceJspBean
fr.paris.lutece.plugins.document.web.DocumentServiceJspBean
All Implemented Interfaces:
fr.paris.lutece.portal.web.insert.InsertServiceSelectionBean, Serializable

@RequestScoped @Named public class DocumentServiceJspBean extends fr.paris.lutece.portal.web.insert.InsertServiceJspBean implements fr.paris.lutece.portal.web.insert.InsertServiceSelectionBean
This class provides the user interface to insert a link to a document
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    doInsertUrl(jakarta.servlet.http.HttpServletRequest request)
    Insert the specified url into HTML content
    doSelectPage(jakarta.servlet.http.HttpServletRequest request)
    Select and validate the specified Page
    doSelectPortlet(jakarta.servlet.http.HttpServletRequest request)
    Select and validate the specified Portlet
    getInsertServiceSelectorUI(jakarta.servlet.http.HttpServletRequest request)
    Entry point of the insert service
    getSelectDocument(jakarta.servlet.http.HttpServletRequest request)
    Return the html form for document selection.
    getSelectPage(jakarta.servlet.http.HttpServletRequest request)
    Return the html form for page selection.
    getSelectPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
    Return the html form for page selection, or redirect to a stop message when the input is missing.
    getSelectPortlet(jakarta.servlet.http.HttpServletRequest request)
    Return the html form for portlet selection.
    fr.paris.lutece.util.ReferenceList
    Gets the filter for the document type.
    void
    init(jakarta.servlet.http.HttpServletRequest request)
    Initialize data
    void
    setTypeFilter(String strTypeFilter)
    Sets the filter for the document type.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DocumentServiceJspBean

      public DocumentServiceJspBean()
  • Method Details

    • init

      public void init(jakarta.servlet.http.HttpServletRequest request)
      Initialize data
      Parameters:
      request - The HTTP request
    • getSubCategories

      public fr.paris.lutece.util.ReferenceList getSubCategories()
      Overrides:
      getSubCategories in class fr.paris.lutece.portal.web.insert.InsertServiceJspBean
    • getInsertServiceSelectorUI

      public String getInsertServiceSelectorUI(jakarta.servlet.http.HttpServletRequest request)
      Entry point of the insert service
      Specified by:
      getInsertServiceSelectorUI in interface fr.paris.lutece.portal.web.insert.InsertServiceSelectionBean
      Parameters:
      request - The Http Request
      Returns:
      The html form.
    • getSelectPage

      public String getSelectPage(jakarta.servlet.http.HttpServletRequest request)
      Return the html form for page selection.
      Parameters:
      request - The HTTP request
      Returns:
      The html form of the page selection page
    • getSelectPage

      public String getSelectPage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException
      Return the html form for page selection, or redirect to a stop message when the input is missing.
      Parameters:
      request - The HTTP request
      response - The HTTP response
      Returns:
      The html form of the page selection page, or null if the response has been redirected
      Throws:
      IOException - if the redirection fails
    • doSelectPage

      public String doSelectPage(jakarta.servlet.http.HttpServletRequest request)
      Select and validate the specified Page
      Parameters:
      request - The http request
      Returns:
      The url of the portlet selection page
    • getSelectPortlet

      public String getSelectPortlet(jakarta.servlet.http.HttpServletRequest request)
      Return the html form for portlet selection.
      Parameters:
      request - The HTTP request
      Returns:
      The html form of the portlet selection page
    • doSelectPortlet

      public String doSelectPortlet(jakarta.servlet.http.HttpServletRequest request)
      Select and validate the specified Portlet
      Parameters:
      request - The http request
      Returns:
      The url of the document selection page if porlet id is valid
    • getSelectDocument

      public String getSelectDocument(jakarta.servlet.http.HttpServletRequest request)
      Return the html form for document selection.
      Parameters:
      request - The HTTP request
      Returns:
      The html form of the document selection page
    • doInsertUrl

      public String doInsertUrl(jakarta.servlet.http.HttpServletRequest request)
      Insert the specified url into HTML content
      Parameters:
      request - The HTTP request
      Returns:
      The url
    • getTypeFilter

      public String getTypeFilter()
      Gets the filter for the document type.
      Returns:
      the document type, empty string otherwise.
    • setTypeFilter

      public void setTypeFilter(String strTypeFilter)
      Sets the filter for the document type.
      Parameters:
      strTypeFilter - the document type, empty string otherwise.