Class Files2DocsJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    public class Files2DocsJspBean
    extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
    Files2Docs JSP Bean class
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Files2DocsJspBean()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String doCreateDocuments​(javax.servlet.http.HttpServletRequest request)
      Performs the fields validation and creates documents
      java.lang.String doCreateSpace​(javax.servlet.http.HttpServletRequest request)
      Perform the space creation
      java.lang.String doSelectFiles​(javax.servlet.http.HttpServletRequest request)
      Performs the selection of the document type and destination space
      java.lang.String getCreateDocuments​(javax.servlet.http.HttpServletRequest request)
      Gets the create document(s) form(s) page
      java.lang.String getImportResult​(javax.servlet.http.HttpServletRequest request)
      Gets the import result page
      java.lang.String getJsonResponse​(javax.servlet.http.HttpServletRequest request, java.lang.String fileName, long fileLength)
      return a JSON report
      java.lang.String getSelectFiles​(javax.servlet.http.HttpServletRequest request)
      Gets the selection of the document type, files and destination space page
      java.lang.String upload​(javax.servlet.http.HttpServletRequest request)
      Performs the upload of selected files
      • Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

        getPlugin, init
      • Methods inherited from class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean

        getAdminPage, getAdminPage, getFeatureIcon, getHomeUrl, getLocale, getPageTitle, getUser, setFeatureGroup, setFeatureIcon, setPageTitleProperty, validate, validate, validate
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FILES2DOCS_MANAGEMENT

        public static final java.lang.String FILES2DOCS_MANAGEMENT
        See Also:
        Constant Field Values
    • Constructor Detail

      • Files2DocsJspBean

        public Files2DocsJspBean()
        Constructor
    • Method Detail

      • getSelectFiles

        public java.lang.String getSelectFiles​(javax.servlet.http.HttpServletRequest request)
        Gets the selection of the document type, files and destination space page
        Parameters:
        request - The HTTP request
        Returns:
        The selection of the document type, files and destination space page
      • doCreateSpace

        public java.lang.String doCreateSpace​(javax.servlet.http.HttpServletRequest request)
        Perform the space creation
        Parameters:
        request - The HTTP request
        Returns:
        The Feature Home Page
      • doSelectFiles

        public java.lang.String doSelectFiles​(javax.servlet.http.HttpServletRequest request)
        Performs the selection of the document type and destination space
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • upload

        public java.lang.String upload​(javax.servlet.http.HttpServletRequest request)
        Performs the upload of selected files
        Parameters:
        request - The HTTP request
        Returns:
        null if the upload is complete, otherwise an error message
      • getJsonResponse

        public java.lang.String getJsonResponse​(javax.servlet.http.HttpServletRequest request,
                                                java.lang.String fileName,
                                                long fileLength)
        return a JSON report
        Parameters:
        request - The HTTP request
        String - the name of the uploaded file
        long - the length of the file
        Returns:
        The json result
      • getCreateDocuments

        public java.lang.String getCreateDocuments​(javax.servlet.http.HttpServletRequest request)
        Gets the create document(s) form(s) page
        Parameters:
        request - The HTTP request
        Returns:
        The create document(s) form(s) page
      • doCreateDocuments

        public java.lang.String doCreateDocuments​(javax.servlet.http.HttpServletRequest request)
        Performs the fields validation and creates documents
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • getImportResult

        public java.lang.String getImportResult​(javax.servlet.http.HttpServletRequest request)
        Gets the import result page
        Parameters:
        request - The HTTP request
        Returns:
        The import result page