Interface IEntryTypeService

    • Method Detail

      • getTemplateHtmlForm

        java.lang.String getTemplateHtmlForm​(Entry entry,
                                             boolean bDisplayFront)
        Get the template to display the creation or modification form of an entry of this entry type
        Parameters:
        entry - The entry
        bDisplayFront - True if the template will be used to display content in Front Office, false if it will be used to display content in back office
        Returns:
        the HtmlCode of the entry
      • getTemplateCreate

        java.lang.String getTemplateCreate​(Entry entry,
                                           boolean bDisplayFront)
        Get template create URL of the entry
        Parameters:
        entry - The entry
        bDisplayFront - True if the template will be used to display content in Front Office, false if it will be used to display content in back office
        Returns:
        template create URL of the entry
      • getTemplateModify

        java.lang.String getTemplateModify​(Entry entry,
                                           boolean bDisplayFront)
        Get the template modify URL of the entry
        Parameters:
        entry - The entry
        bDisplayFront - True if the template will be used to display content in Front Office, false if it will be used to display content in back office
        Returns:
        template modify URL of the entry
      • getRequestData

        java.lang.String getRequestData​(Entry entry,
                                        javax.servlet.http.HttpServletRequest request,
                                        java.util.Locale locale)
        Get the request data
        Parameters:
        entry - The entry
        request - HttpRequest
        locale - the locale
        Returns:
        null if all data required are in the request else the url of jsp error
      • getRequestData

        java.lang.String getRequestData​(Entry entry,
                                        javax.servlet.http.HttpServletRequest request,
                                        java.util.Locale locale,
                                        java.lang.String errorReturnUrl)
        Get the request data
        Parameters:
        entry - The entry
        request - HttpRequest
        locale - the locale
        errorReturnUrl - url to go to after displaying a message when an error occurs
        Returns:
        null if all data required are in the request else the url of jsp error
      • getResponseData

        GenericAttributeError getResponseData​(Entry entry,
                                              javax.servlet.http.HttpServletRequest request,
                                              java.util.List<Response> listResponse,
                                              java.util.Locale locale)
        Generate the list of responses associated with the given entry from the request, and saved it into the Entry object.
        Parameters:
        entry - The entry
        request - HttpRequest
        listResponse - the list of response associate to the entry. Newly created response will be inserted in this list.
        locale - the locale
        Returns:
        a GenericAttributeError object if there is an error in the response
      • getReferenceListRegularExpression

        fr.paris.lutece.util.ReferenceList getReferenceListRegularExpression​(Entry entry,
                                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the list of regular expression who is use in the template modify of the entry
        Parameters:
        entry - the entry
        plugin - the plugin
        Returns:
        the regular expression list who is use in the template modify of the entry
      • getResponseValueForExport

        java.lang.String getResponseValueForExport​(Entry entry,
                                                   javax.servlet.http.HttpServletRequest request,
                                                   Response response,
                                                   java.util.Locale locale)
        Get the response value associate to the entry to export in the file export
        Parameters:
        entry - The entry
        response - the response associate to the entry
        locale - the locale
        request - the request
        Returns:
        the response value associate to the entry to export in the file export
      • getResponseValueForRecap

        java.lang.String getResponseValueForRecap​(Entry entry,
                                                  javax.servlet.http.HttpServletRequest request,
                                                  Response response,
                                                  java.util.Locale locale)
        Get the response value associate to the entry to write in the recap
        Parameters:
        entry - The entry
        response - the response associate to the entry
        locale - the locale
        request - the request
        Returns:
        the response value associate to the entry to write in the recap
      • canUploadFiles

        GenericAttributeError canUploadFiles​(Entry entry,
                                             java.util.List<org.apache.commons.fileupload.FileItem> listUploadedFileItems,
                                             java.util.List<org.apache.commons.fileupload.FileItem> listFileItemsToUpload,
                                             java.util.Locale locale)
        Check if the file can be uploaded or not. This method will check the size of each file and the number max of files that can be uploaded.
        Parameters:
        entry - The entry
        listUploadedFileItems - the list of uploaded files
        listFileItemsToUpload - the list of files to upload
        locale - the locale
        Returns:
        The error if there is any
      • setResponseToStringValue

        void setResponseToStringValue​(Entry entry,
                                      Response response,
                                      java.util.Locale locale)
        Sets the string value of the response
        Parameters:
        entry - The entry
        response - the response
        locale - the locale - will use a default one if not specified
      • getResponseIterationValue

        int getResponseIterationValue​(javax.servlet.http.HttpServletRequest request)
        Return the iteration number for a response from the request
        Parameters:
        request - the request to retrieve the iteration number of the response from
        Returns:
        the value of the iteration number
      • getTemplateEntryReadOnly

        java.lang.String getTemplateEntryReadOnly()
        Return the template associated to an EntryType for read only uses
        Returns:
        the template associated to an EntryType for read only uses
      • getTemplateEntryReadOnly

        java.lang.String getTemplateEntryReadOnly​(boolean bDisplayFront)
        Return the template associated to an EntryType for read only uses
        Parameters:
        bDisplayFront - true
        Returns:
        the template associated to an EntryType for read only uses
      • getAnonymizationHelpMessage

        java.lang.String getAnonymizationHelpMessage​(java.util.Locale locale)
        Creates the help message for the enrty anonymisation config.
        Parameters:
        locale -
        Returns:
      • getValidWildcards

        java.util.List<IEntryAnonymizationType> getValidWildcards()
        get the list of valids wildcard for the entry
        Returns: