Interface IFileDownloadUrlService

  • All Superinterfaces:
    Serializable
    All Known Implementing Classes:
    DefaultFileDownloadService

    public interface IFileDownloadUrlService
    extends Serializable
    Builds download Url. Useful when we want to share a http link, ftp link, or fylesystem link.
    See Also:
    JSPBlobStoreDownloadUrlService
    • Field Detail

      • LINK_VALIDITY_TIME

        static final int LINK_VALIDITY_TIME
    • Method Detail

      • getFileDownloadUrlFO

        String getFileDownloadUrlFO​(String strFileKey,
                                    String strFileStorageServiceProviderName)
        get Front Office user download URL
        Parameters:
        strFileKey - the file key
        Returns:
        the url
      • getFileDownloadUrlFO

        String getFileDownloadUrlFO​(String strFileKey,
                                    Map<String,​String> additionnalData,
                                    String strFileStorageServiceProviderName)
        get Front Office user download URL
        Parameters:
        strFileKey - the file key
        additionnalData - the data used to build the url
        Returns:
        the url
      • getFileDownloadUrlBO

        String getFileDownloadUrlBO​(String strFileKey,
                                    String strFileStorageServiceProviderName)
        get Back Office user download URL
        Parameters:
        strFileKey - the file key
        Returns:
        the url
      • getFileDownloadUrlBO

        String getFileDownloadUrlBO​(String strFileKey,
                                    Map<String,​String> additionnalData,
                                    String strFileStorageServiceProviderName)
        get Back Office user download URL
        Parameters:
        strFileKey - the file key
        additionnalData - the data used to build the url
        Returns:
        the url
      • getName

        String getName()
        get service name
        Returns:
        the service name
      • getRequestDataBO

        Map<String,​String> getRequestDataBO​(javax.servlet.http.HttpServletRequest request)
        get BO file data from request
        Parameters:
        request -
        Returns:
        the map of file data
      • getRequestDataFO

        Map<String,​String> getRequestDataFO​(javax.servlet.http.HttpServletRequest request)
        get FO file data from request
        Parameters:
        request -
        Returns:
        the map of file data
      • getValidityTime

        default int getValidityTime()
        Return the validity duration of a link (in minutes)
        if equal to 0, there is no limit
        Returns: