public class FileSystemBlobStoreService extends Object implements fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
Constructor and Description |
---|
FileSystemBlobStoreService() |
Modifier and Type | Method and Description |
---|---|
void |
delete(String strKey) |
String |
getBasePath()
Gets the base directory.
|
byte[] |
getBlob(String strKey) |
InputStream |
getBlobInputStream(String strKey) |
String |
getBlobUrl(String strKey) |
Integer |
getDepth()
Gets the depth.
|
IBlobStoreDownloadUrlService |
getDownloadUrlService()
Gets the downloadService.
|
String |
getFileUrl(String strKey) |
String |
getName() |
void |
setBasePath(String strBasePath)
Sets the base directory.
|
void |
setDepth(Integer depth)
Sets the depth.
|
void |
setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
Sets the downloadService
|
void |
setName(String strName) |
String |
store(byte[] blob) |
String |
storeInputStream(InputStream inputStream) |
void |
update(String strKey,
byte[] blob) |
void |
updateInputStream(String strKey,
InputStream inputStream) |
public IBlobStoreDownloadUrlService getDownloadUrlService()
public void setDownloadUrlService(IBlobStoreDownloadUrlService downloadUrlService)
downloadUrlService
- downloadServicepublic void setName(String strName)
setName
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public String getName()
getName
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public void setBasePath(String strBasePath)
strBasePath
- base pathpublic String getBasePath()
public void delete(String strKey)
delete
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public byte[] getBlob(String strKey)
getBlob
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public InputStream getBlobInputStream(String strKey)
getBlobInputStream
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public String store(byte[] blob)
store
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public String storeInputStream(InputStream inputStream)
storeInputStream
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public void update(String strKey, byte[] blob)
update
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public void updateInputStream(String strKey, InputStream inputStream)
updateInputStream
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public String getBlobUrl(String strKey)
getBlobUrl
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public String getFileUrl(String strKey)
getFileUrl
in interface fr.paris.lutece.plugins.blobstore.service.IBlobStoreService
public Integer getDepth()
public void setDepth(Integer depth)
depth
- the new depthCopyright © 2017 City of Paris. All rights reserved.