Class FileSystemBlobStoreService
- java.lang.Object
-
- fr.paris.lutece.plugins.blobstore.service.filesystem.FileSystemBlobStoreService
-
- All Implemented Interfaces:
fr.paris.lutece.plugins.blobstore.service.IBlobStoreService,java.io.Serializable
public class FileSystemBlobStoreService extends java.lang.Object implements fr.paris.lutece.plugins.blobstore.service.IBlobStoreServiceFileSystemBlobStoreService.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FileSystemBlobStoreService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(java.lang.String strKey)java.lang.StringgetBasePath()Gets the base directory.byte[]getBlob(java.lang.String strKey)java.io.InputStreamgetBlobInputStream(java.lang.String strKey)java.lang.StringgetBlobUrl(java.lang.String strKey)java.lang.IntegergetDepth()Gets the depth.IBlobStoreDownloadUrlServicegetDownloadUrlService()Gets the downloadService.java.lang.StringgetFileUrl(java.lang.String strKey)java.lang.StringgetName()voidsetBasePath(java.lang.String strBasePath)Sets the base directory.voidsetBasePathKey(java.lang.String key)voidsetDepth(java.lang.Integer depth)Sets the depth.voidsetDepthKey(java.lang.String key)voidsetDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)Sets the downloadServicevoidsetName(java.lang.String strName)java.lang.Stringstore(byte[] blob)java.lang.StringstoreFileItem(org.apache.commons.fileupload.FileItem fileItem)java.lang.StringstoreInputStream(java.io.InputStream inputStream)voidupdate(java.lang.String strKey, byte[] blob)voidupdateInputStream(java.lang.String strKey, java.io.InputStream inputStream)
-
-
-
Method Detail
-
getDownloadUrlService
public IBlobStoreDownloadUrlService getDownloadUrlService()
Gets the downloadService.- Returns:
- the downloadService
-
setDownloadUrlService
public void setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
Sets the downloadService- Parameters:
downloadUrlService- downloadService
-
setName
public void setName(java.lang.String strName)
- Specified by:
setNamein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
setBasePath
public void setBasePath(java.lang.String strBasePath)
Sets the base directory.- Parameters:
strBasePath- base path
-
getBasePath
public java.lang.String getBasePath()
Gets the base directory.- Returns:
- the base directory
-
delete
public void delete(java.lang.String strKey)
- Specified by:
deletein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlob
public byte[] getBlob(java.lang.String strKey)
- Specified by:
getBlobin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlobInputStream
public java.io.InputStream getBlobInputStream(java.lang.String strKey)
- Specified by:
getBlobInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
store
public java.lang.String store(byte[] blob)
- Specified by:
storein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
storeInputStream
public java.lang.String storeInputStream(java.io.InputStream inputStream)
- Specified by:
storeInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
storeFileItem
public java.lang.String storeFileItem(org.apache.commons.fileupload.FileItem fileItem)
- Specified by:
storeFileItemin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
update
public void update(java.lang.String strKey, byte[] blob)- Specified by:
updatein interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
updateInputStream
public void updateInputStream(java.lang.String strKey, java.io.InputStream inputStream)- Specified by:
updateInputStreamin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getBlobUrl
public java.lang.String getBlobUrl(java.lang.String strKey)
- Specified by:
getBlobUrlin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getFileUrl
public java.lang.String getFileUrl(java.lang.String strKey)
- Specified by:
getFileUrlin interfacefr.paris.lutece.plugins.blobstore.service.IBlobStoreService
-
getDepth
public java.lang.Integer getDepth()
Gets the depth.- Returns:
- the depth
-
setDepth
public void setDepth(java.lang.Integer depth)
Sets the depth.- Parameters:
depth- the new depth
-
setBasePathKey
public void setBasePathKey(java.lang.String key)
-
setDepthKey
public void setDepthKey(java.lang.String key)
-
-