Interface IFileDownloadUrlService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFileDownloadService
Builds download Url. Useful when we want to share a http link, ftp link, or fylesystem link.
- See Also:
-
JSPBlobStoreDownloadUrlService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckLinkValidity(Map<String, String> fileData) check link validitygetFileDownloadUrlBO(String strFileKey, String strFileStorageServiceProviderName) get Back Office user download URLgetFileDownloadUrlBO(String strFileKey, Map<String, String> additionnalData, String strFileStorageServiceProviderName) get Back Office user download URLgetFileDownloadUrlFO(String strFileKey, String strFileStorageServiceProviderName) get Front Office user download URLgetFileDownloadUrlFO(String strFileKey, Map<String, String> additionnalData, String strFileStorageServiceProviderName) get Front Office user download URLgetName()get service namegetRequestDataBO(javax.servlet.http.HttpServletRequest request) get BO file data from requestgetRequestDataFO(javax.servlet.http.HttpServletRequest request) get FO file data from requestdefault intReturn the validity duration of a link (in minutes)
if equal to 0, there is no limit
-
Field Details
-
LINK_VALIDITY_TIME
static final int LINK_VALIDITY_TIME
-
-
Method Details
-
getFileDownloadUrlFO
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 keyadditionnalData- the data used to build the url- Returns:
- the url
-
getFileDownloadUrlBO
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 keyadditionnalData- the data used to build the url- Returns:
- the url
-
getName
String getName()get service name- Returns:
- the service name
-
getRequestDataBO
get BO file data from request- Parameters:
request-- Returns:
- the map of file data
-
getRequestDataFO
get FO file data from request- Parameters:
request-- Returns:
- the map of file data
-
checkLinkValidity
check link validity- Parameters:
fileData-- Throws:
ExpiredLinkException- if link is invadid
-
getValidityTime
default int getValidityTime()Return the validity duration of a link (in minutes)
if equal to 0, there is no limit- Returns:
-