public interface IFileStoreServiceProvider extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
checkAccessRights(Map<String,String> fileData,
fr.paris.lutece.api.user.User user)
check if current user can access the file
|
void |
checkLinkValidity(Map<String,String> fileData)
check if link is valid
|
void |
delete(String strKey)
Delete a blob
|
File |
getFile(String strKey)
Get a file
|
String |
getFileDownloadUrlBO(String strKey)
Gets the file download url for Back Office admin Lutece users
|
String |
getFileDownloadUrlBO(String strKey,
Map<String,String> additionnalData)
Gets the file download url for Back Office admin Lutece users
|
String |
getFileDownloadUrlFO(String strKey)
Gets the file download url for Front Office Lutece users
|
String |
getFileDownloadUrlFO(String strKey,
Map<String,String> additionnalData)
Gets the file download url for Front Office Lutece users
|
File |
getFileFromRequestBO(javax.servlet.http.HttpServletRequest request)
get requested file from BO
|
File |
getFileFromRequestFO(javax.servlet.http.HttpServletRequest request)
get requested file from FO
|
InputStream |
getInputStream(String strKey)
Gets a blob as
InputStream |
String |
getName()
get the service name
|
boolean |
isDefault()
get the default
|
String |
storeBytes(byte[] blob)
Store a blob from a bytes array
|
String |
storeFile(File file)
Stores a file Lutece File
|
String |
storeFileItem(org.apache.commons.fileupload.FileItem fileItem)
Stores a org.apache.commons.fileupload.FileItem
|
String |
storeInputStream(InputStream inputStream)
Stores an input stream
|
String getName()
boolean isDefault()
String storeFile(File file)
file - the fileString storeFileItem(org.apache.commons.fileupload.FileItem fileItem)
fileItem - the fileItemString storeInputStream(InputStream inputStream)
inputStream - the input streamString storeBytes(byte[] blob)
blob - The blobFile getFile(String strKey)
strKey - The key of the fileInputStream getInputStream(String strKey)
InputStreamstrKey - the keyInputStreamvoid delete(String strKey)
strKey - The key of the blobString getFileDownloadUrlFO(String strKey)
strKey - theString getFileDownloadUrlFO(String strKey, Map<String,String> additionnalData)
strKey - theadditionnalData - String getFileDownloadUrlBO(String strKey)
strKey - theString getFileDownloadUrlBO(String strKey, Map<String,String> additionnalData)
strKey - theadditionnalData - File getFileFromRequestBO(javax.servlet.http.HttpServletRequest request) throws AccessDeniedException, ExpiredLinkException, UserNotSignedException
request - AccessDeniedExceptionfr.paris.lutece.portal.service.download.ExpiredLinkExceptionUserNotSignedExceptionExpiredLinkExceptionFile getFileFromRequestFO(javax.servlet.http.HttpServletRequest request) throws AccessDeniedException, ExpiredLinkException, UserNotSignedException
request - AccessDeniedExceptionfr.paris.lutece.portal.service.download.ExpiredLinkExceptionUserNotSignedExceptionExpiredLinkExceptionvoid checkAccessRights(Map<String,String> fileData, fr.paris.lutece.api.user.User user) throws AccessDeniedException, UserNotSignedException
fileData - user - the current userAccessDeniedExceptionUserNotSignedExceptionvoid checkLinkValidity(Map<String,String> fileData) throws ExpiredLinkException
fileData - ExpiredLinkExceptionCopyright © 2021 City of Paris. All rights reserved.