public interface StaticAssetStorageService
| Modifier and Type | Method and Description |
|---|---|
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 to the DB or FileSystem according to the staticAsset's StorageType.
|
void |
delete(StaticAssetStorage assetStorage)
Removes a static asset from the database.
|
StaticAssetStorage |
findStaticAssetStorageById(Long id)
Returns a StaticAssetStorage object.
|
Map<String,String> |
getCacheFileModel(String fullUrl,
Map<String,String> parameterMap) |
StaticAssetStorage |
readStaticAssetStorageByStaticAssetId(Long id)
Returns a StaticAssetStorage object using the id of a related StaticAsset.
|
StaticAssetStorage |
save(StaticAssetStorage assetStorage)
Persists a static asset to the database.
|
StaticAssetStorage findStaticAssetStorageById(Long id)
id - StaticAssetStorage create()
StaticAssetStorage readStaticAssetStorageByStaticAssetId(Long id)
id - StaticAssetStorage save(StaticAssetStorage assetStorage)
assetStorage - void delete(StaticAssetStorage assetStorage)
assetStorage - Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile) throws IOException
uploadedFile - IOExceptionMap<String,String> getCacheFileModel(String fullUrl, Map<String,String> parameterMap) throws Exception
fullUrl - sandBox - parameterMap - Exceptionvoid createStaticAssetStorageFromFile(org.springframework.web.multipart.MultipartFile file,
StaticAsset staticAsset)
throws IOException
file - id - IOExceptionCopyright © 2014. All rights reserved.