|
||||||||||
| 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,
boolean useSharedPath)
By default, delegates a call to #generateStorageFileName(String) using staticAsset.getFullUrl()
as the passed in argument. |
String |
generateStorageFileName(String fullUrl,
boolean useSharedPath)
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 -
IOException
String generateStorageFileName(String fullUrl,
boolean useSharedPath)
fullUrl - The URL used to represent an asset for which a name on the fileSystem is desired.useSharedPath - If false, the system will generate a path using Site information if available.
String generateStorageFileName(StaticAsset staticAsset,
boolean useSharedPath)
#generateStorageFileName(String) using staticAsset.getFullUrl()
as the passed in argument.
staticAsset - StaticAsset for which a filename is desired.useSharedPath - If false, the system will generate a path using Site information if available.
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 | |||||||||