Class LocalDatabaseFileService
java.lang.Object
fr.paris.lutece.portal.service.file.implementation.LocalDatabaseFileService
- All Implemented Interfaces:
IFileStoreService
@ApplicationScoped
@Named("localDatabaseFileService")
public class LocalDatabaseFileService
extends Object
implements IFileStoreService
Database file Service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidget file from databasegetFileMetaData(String strKey, String strProviderName) getInputStream(String strKey, String strProviderName) storeBytes(byte[] blob, String strProviderName) storeFileItem(fr.paris.lutece.portal.service.upload.MultipartItem fileItem, String strProviderName) storeInputStream(InputStream inputStream, String strProviderName) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.portal.service.file.IFileStoreService
healthCheck
-
Constructor Details
-
LocalDatabaseFileService
public LocalDatabaseFileService()
-
-
Method Details
-
delete
- Specified by:
deletein interfaceIFileStoreService
-
getFile
- Specified by:
getFilein interfaceIFileStoreService
-
getFileMetaData
- Specified by:
getFileMetaDatain interfaceIFileStoreService
-
getFile
get file from database- Parameters:
strKey-withPhysicalFile-- Returns:
- the file with the physical file content if withPhysicalFile is true, null otherwise
-
storeBytes
- Specified by:
storeBytesin interfaceIFileStoreService
-
storeInputStream
- Specified by:
storeInputStreamin interfaceIFileStoreService
-
storeFileItem
public String storeFileItem(fr.paris.lutece.portal.service.upload.MultipartItem fileItem, String strProviderName) - Specified by:
storeFileItemin interfaceIFileStoreService
-
storeFile
- Specified by:
storeFilein interfaceIFileStoreService
-
getInputStream
- Specified by:
getInputStreamin interfaceIFileStoreService
-