public class DefaultFileDownloadService extends Object implements IFileDownloadUrlService
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_LINK_VALIDITY_TIME |
LINK_VALIDITY_TIME| Constructor and Description |
|---|
DefaultFileDownloadService() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
buildAdditionnalDatas(String strFileId,
String strResourceId,
String strResourceType)
Build the additionnel data map to provide encryption data
|
void |
checkLinkValidity(Map<String,String> fileData)
check link validity
|
String |
getFileDownloadUrlBO(String strFileKey,
Map<String,String> additionnalData,
String strFileStorageServiceProviderName)
get Back Office user download URL
|
String |
getFileDownloadUrlBO(String strFileKey,
String strFileStorageServiceProviderName)
get Back Office user download URL
|
String |
getFileDownloadUrlFO(String strFileKey,
Map<String,String> additionnalData,
String strFileStorageServiceProviderName)
get Front Office user download URL
|
String |
getFileDownloadUrlFO(String strFileKey,
String strFileStorageServiceProviderName)
get Front Office user download URL
|
String |
getName()
get service name
|
Map<String,String> |
getRequestDataBO(javax.servlet.http.HttpServletRequest request)
get BO file data from request
|
Map<String,String> |
getRequestDataFO(javax.servlet.http.HttpServletRequest request)
get FO file data from request
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetValidityTimepublic static final String KEY_LINK_VALIDITY_TIME
public static Map<String,String> buildAdditionnalDatas(String strFileId, String strResourceId, String strResourceType)
strFileId - strResourceId - strResourceType - public String getFileDownloadUrlFO(String strFileKey, String strFileStorageServiceProviderName)
getFileDownloadUrlFO in interface IFileDownloadUrlServicestrFileKey - the file keypublic String getFileDownloadUrlFO(String strFileKey, Map<String,String> additionnalData, String strFileStorageServiceProviderName)
getFileDownloadUrlFO in interface IFileDownloadUrlServicestrFileKey - the file keyadditionnalData - the data used to build the urlpublic String getFileDownloadUrlBO(String strFileKey, String strFileStorageServiceProviderName)
getFileDownloadUrlBO in interface IFileDownloadUrlServicestrFileKey - the file keypublic String getFileDownloadUrlBO(String strFileKey, Map<String,String> additionnalData, String strFileStorageServiceProviderName)
getFileDownloadUrlBO in interface IFileDownloadUrlServicestrFileKey - the file keyadditionnalData - the data used to build the urlpublic String getName()
getName in interface IFileDownloadUrlServicepublic Map<String,String> getRequestDataBO(javax.servlet.http.HttpServletRequest request)
getRequestDataBO in interface IFileDownloadUrlServicepublic Map<String,String> getRequestDataFO(javax.servlet.http.HttpServletRequest request)
getRequestDataFO in interface IFileDownloadUrlServicepublic void checkLinkValidity(Map<String,String> fileData) throws ExpiredLinkException
checkLinkValidity in interface IFileDownloadUrlServiceExpiredLinkException - if link is invadidCopyright © 2024 City of Paris. All rights reserved.