|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StaticAssetStorageService
| Method Summary | |
|---|---|
StaticAssetStorage |
create()
Deprecated. Use createStaticAssetStorageFromFile instead. |
Blob |
createBlob(org.springframework.web.multipart.MultipartFile uploadedFile)
Deprecated. Use createStaticAssetStorageFromFile instead. |
void |
createStaticAssetStorageFromFile(org.springframework.web.multipart.MultipartFile file,
StaticAsset staticAsset)
Persists the file being based in according to the staticAsset's StorageType. |
void |
delete(StaticAssetStorage assetStorage)
|
StaticAssetStorage |
findStaticAssetStorageById(Long id)
|
String |
generateStorageFileName(StaticAsset staticAsset)
By default, delegates a call to generateStorageFileName(String) using staticAsset.getFullUrl()
as the passed in argument. |
String |
generateStorageFileName(String fullUrl)
Stores the file on the filesystem by performing an MD5 hash of the the staticAsset.fullUrl. |
Map<String,String> |
getCacheFileModel(String fullUrl,
SandBox sandBox,
Map<String,String> parameterMap)
|
StaticAssetStorage |
readStaticAssetStorageByStaticAssetId(Long id)
|
StaticAssetStorage |
save(StaticAssetStorage assetStorage)
|
| Method Detail |
|---|
StaticAssetStorage findStaticAssetStorageById(Long id)
StaticAssetStorage create()
StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
StaticAssetStorage save(StaticAssetStorage assetStorage)
void delete(StaticAssetStorage assetStorage)
Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile)
throws IOException
uploadedFile -
IOExceptionString generateStorageFileName(String fullUrl)
fullUrl - The URL used to represent an asset for which a name on the fileSystem is desired.
String generateStorageFileName(StaticAsset staticAsset)
generateStorageFileName(String) using staticAsset.getFullUrl()
as the passed in argument.
staticAsset - StaticAsset for which a filename is desired.
Map<String,String> getCacheFileModel(String fullUrl,
SandBox sandBox,
Map<String,String> parameterMap)
throws Exception
Exception
void createStaticAssetStorageFromFile(org.springframework.web.multipart.MultipartFile file,
StaticAsset staticAsset)
throws IOException
file - id -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||