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 Summary
Fields Modifier and Type Field Description static intLINK_VALIDITY_TIME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidcheckLinkValidity(Map<String,String> fileData)check link validityStringgetFileDownloadUrlBO(String strFileKey, String strFileStorageServiceProviderName)get Back Office user download URLStringgetFileDownloadUrlBO(String strFileKey, Map<String,String> additionnalData, String strFileStorageServiceProviderName)get Back Office user download URLStringgetFileDownloadUrlFO(String strFileKey, String strFileStorageServiceProviderName)get Front Office user download URLStringgetFileDownloadUrlFO(String strFileKey, Map<String,String> additionnalData, String strFileStorageServiceProviderName)get Front Office user download URLStringgetName()get service nameMap<String,String>getRequestDataBO(javax.servlet.http.HttpServletRequest request)get BO file data from requestMap<String,String>getRequestDataFO(javax.servlet.http.HttpServletRequest request)get FO file data from requestdefault intgetValidityTime()Return the validity duration of a link (in minutes)
if equal to 0, there is no limit
-
-
-
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 keyadditionnalData- 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 keyadditionnalData- 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
-
checkLinkValidity
void checkLinkValidity(Map<String,String> fileData) throws ExpiredLinkException
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:
-
-