public interface StaticAssetStorageService
| Modifier and Type | Method and Description |
|---|---|
StaticAssetStorage |
create()
Deprecated.
Use createStaticAssetStorageFromFile instead.
|
java.sql.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(java.lang.Long id) |
java.lang.String |
generateStorageFileName(StaticAsset staticAsset,
boolean useSharedPath)
By default, delegates a call to
#generateStorageFileName(String) using staticAsset.getFullUrl()
as the passed in argument. |
java.lang.String |
generateStorageFileName(java.lang.String fullUrl,
boolean useSharedPath)
Stores the file on the filesystem by performing an MD5 hash of the
the staticAsset.fullUrl.
|
java.util.Map<java.lang.String,java.lang.String> |
getCacheFileModel(java.lang.String fullUrl,
SandBox sandBox,
java.util.Map<java.lang.String,java.lang.String> parameterMap) |
StaticAssetStorage |
readStaticAssetStorageByStaticAssetId(java.lang.Long id) |
StaticAssetStorage |
save(StaticAssetStorage assetStorage) |
StaticAssetStorage findStaticAssetStorageById(java.lang.Long id)
StaticAssetStorage create()
StaticAssetStorage readStaticAssetStorageByStaticAssetId(java.lang.Long id)
StaticAssetStorage save(StaticAssetStorage assetStorage)
void delete(StaticAssetStorage assetStorage)
java.sql.Blob createBlob(org.springframework.web.multipart.MultipartFile uploadedFile)
throws java.io.IOException
uploadedFile - java.io.IOExceptionjava.lang.String generateStorageFileName(java.lang.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.java.lang.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.java.util.Map<java.lang.String,java.lang.String> getCacheFileModel(java.lang.String fullUrl,
SandBox sandBox,
java.util.Map<java.lang.String,java.lang.String> parameterMap)
throws java.lang.Exception
java.lang.Exceptionvoid createStaticAssetStorageFromFile(org.springframework.web.multipart.MultipartFile file,
StaticAsset staticAsset)
throws java.io.IOException
file - id - java.io.IOExceptionCopyright © 2018. All Rights Reserved.