Class DocumentJspBean

  • All Implemented Interfaces:
    java.io.Serializable

    public class DocumentJspBean
    extends fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
    JspBean for document management
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentJspBean()
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String deleteDocument​(javax.servlet.http.HttpServletRequest request)
      Confirm the deletion
      java.lang.String doActionSelectionDocument​(javax.servlet.http.HttpServletRequest request)
      Processes document action for multiselection
      java.lang.String doArchiveDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the document filing
      java.lang.String doArchiveSelection​(javax.servlet.http.HttpServletRequest request)
      Unpublish and archive selected documents
      java.lang.String doChangeState​(javax.servlet.http.HttpServletRequest request)
      Perform the changing of state
      java.lang.String doConfirmArchiveDocument​(javax.servlet.http.HttpServletRequest request)
      Confirm the filing
      java.lang.String doCreateDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the creation
      java.lang.String doDeleteDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the deletion
      java.lang.String doMassArchivalDocument​(javax.servlet.http.HttpServletRequest request)
      Gets the document creation page
      java.lang.String doModifyDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the modification
      java.lang.String doMoveDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the document moving
      java.lang.String doRemoveSelection​(javax.servlet.http.HttpServletRequest request)
      Remove selection
      java.lang.String doSearchDocumentById​(javax.servlet.http.HttpServletRequest request)
      Perform a document search by Id
      java.lang.String doValidateDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the document validation
      java.lang.String getCreateDocument​(javax.servlet.http.HttpServletRequest request)
      Gets the document creation page
      java.lang.String getHomeUrl​(javax.servlet.http.HttpServletRequest request)
      java.lang.String getManageDocuments​(javax.servlet.http.HttpServletRequest request)
      Gets the document management page
      fr.paris.lutece.portal.web.pluginaction.IPluginActionResult getMassArchivalDocument​(javax.servlet.http.HttpServletRequest request)
      Gets the document creation page
      java.lang.String getModifyDocument​(javax.servlet.http.HttpServletRequest request)
      Gets the document modification page
      java.lang.String getMoveDocument​(javax.servlet.http.HttpServletRequest request)
      Perform the changing of space
      java.lang.String getPreviewDocument​(javax.servlet.http.HttpServletRequest request)
      Get the preview page
      void init​(javax.servlet.http.HttpServletRequest request, java.lang.String strRight)
      • Methods inherited from class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean

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

        getAdminPage, getAdminPage, getFeatureIcon, 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

      • RIGHT_DOCUMENT_MANAGEMENT

        public static final java.lang.String RIGHT_DOCUMENT_MANAGEMENT
        See Also:
        Constant Field Values
      • PARAMETER_SPACE_ID_FILTER

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

      • DocumentJspBean

        public DocumentJspBean()
        Constructor
    • Method Detail

      • getManageDocuments

        public java.lang.String getManageDocuments​(javax.servlet.http.HttpServletRequest request)
        Gets the document management page
        Parameters:
        request - The HTTP request
        Returns:
        The document management page
      • getCreateDocument

        public java.lang.String getCreateDocument​(javax.servlet.http.HttpServletRequest request)
        Gets the document creation page
        Parameters:
        request - The HTTP request
        Returns:
        The document creation page
      • doCreateDocument

        public java.lang.String doCreateDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the creation
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • getModifyDocument

        public java.lang.String getModifyDocument​(javax.servlet.http.HttpServletRequest request)
        Gets the document modification page
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • doModifyDocument

        public java.lang.String doModifyDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the modification
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • deleteDocument

        public java.lang.String deleteDocument​(javax.servlet.http.HttpServletRequest request)
        Confirm the deletion
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the confirmation
      • doDeleteDocument

        public java.lang.String doDeleteDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the deletion
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • doChangeState

        public java.lang.String doChangeState​(javax.servlet.http.HttpServletRequest request)
        Perform the changing of state
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • doValidateDocument

        public java.lang.String doValidateDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the document validation
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • doConfirmArchiveDocument

        public java.lang.String doConfirmArchiveDocument​(javax.servlet.http.HttpServletRequest request)
        Confirm the filing
        Parameters:
        request - The HTTP servlet Request
        Returns:
        The url of filing jsp
      • doRemoveSelection

        public java.lang.String doRemoveSelection​(javax.servlet.http.HttpServletRequest request)
        Remove selection
        Parameters:
        request - The HTTP request
        Returns:
        The forward url
      • doArchiveSelection

        public java.lang.String doArchiveSelection​(javax.servlet.http.HttpServletRequest request)
        Unpublish and archive selected documents
        Parameters:
        request - The Http request
        Returns:
        The URL to redirect to
      • doActionSelectionDocument

        public java.lang.String doActionSelectionDocument​(javax.servlet.http.HttpServletRequest request)
        Processes document action for multiselection
        Parameters:
        request - The Http request
        Returns:
        The URL to redirect to
      • doArchiveDocument

        public java.lang.String doArchiveDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the document filing
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • doSearchDocumentById

        public java.lang.String doSearchDocumentById​(javax.servlet.http.HttpServletRequest request)
        Perform a document search by Id
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • getPreviewDocument

        public java.lang.String getPreviewDocument​(javax.servlet.http.HttpServletRequest request)
        Get the preview page
        Parameters:
        request - The HTTP request
        Returns:
        The preview page
      • getMoveDocument

        public java.lang.String getMoveDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the changing of space
        Parameters:
        request - The HTTP request
        Returns:
        The document move page
      • doMoveDocument

        public java.lang.String doMoveDocument​(javax.servlet.http.HttpServletRequest request)
        Perform the document moving
        Parameters:
        request - The HTTP request
        Returns:
        The URL to go after performing the action
      • getMassArchivalDocument

        public fr.paris.lutece.portal.web.pluginaction.IPluginActionResult getMassArchivalDocument​(javax.servlet.http.HttpServletRequest request)
        Gets the document creation page
        Parameters:
        request - The HTTP request
        Returns:
        The document creation page
      • doMassArchivalDocument

        public java.lang.String doMassArchivalDocument​(javax.servlet.http.HttpServletRequest request)
                                                throws DocumentException
        Gets the document creation page
        Parameters:
        request - The HTTP request
        Returns:
        The document creation page
        Throws:
        DocumentException
      • getHomeUrl

        public java.lang.String getHomeUrl​(javax.servlet.http.HttpServletRequest request)
        Overrides:
        getHomeUrl in class fr.paris.lutece.portal.web.admin.AdminFeaturesPageJspBean
        Returns:
        Return the URL of the menu if the user come from the menu, of the URL of the main page of this feature if he comes from anywhere else
      • init

        public void init​(javax.servlet.http.HttpServletRequest request,
                         java.lang.String strRight)
                  throws fr.paris.lutece.portal.service.admin.AccessDeniedException,
                         fr.paris.lutece.portal.service.admin.PasswordResetException
        Overrides:
        init in class fr.paris.lutece.portal.web.admin.PluginAdminPageJspBean
        Throws:
        fr.paris.lutece.portal.service.admin.AccessDeniedException
        fr.paris.lutece.portal.service.admin.PasswordResetException