public interface StaticAssetService
| Modifier and Type | Method and Description |
|---|---|
StaticAsset |
addStaticAsset(StaticAsset staticAsset)
Add an asset outside of Broadleaf Admin.
|
String |
convertAssetPath(String assetPath,
String contextPath,
boolean secureRequest)
Deprecated.
since 3.1.0.
|
StaticAsset |
createStaticAssetFromFile(org.springframework.web.multipart.MultipartFile file,
Map<String,String> properties)
Used when uploading a file to Broadleaf.
|
void |
deleteStaticAsset(StaticAsset staticAsset)
Delete an asset outside of Broadleaf Admin.
|
StaticAsset |
findStaticAssetByFullUrl(String fullUrl) |
StaticAsset |
findStaticAssetById(Long id) |
String |
getStaticAssetEnvironmentSecureUrlPrefix()
Deprecated.
since 3.1.0.
|
String |
getStaticAssetEnvironmentUrlPrefix()
Deprecated.
since 3.1.0.
|
String |
getStaticAssetUrlPrefix()
Deprecated.
since 3.1.0.
|
List<StaticAsset> |
readAllStaticAssets() |
StaticAsset |
updateStaticAsset(StaticAsset staticAsset)
Update an asset outside of Broadleaf Admin.
|
StaticAsset findStaticAssetById(Long id)
List<StaticAsset> readAllStaticAssets()
StaticAsset findStaticAssetByFullUrl(String fullUrl)
StaticAsset createStaticAssetFromFile(org.springframework.web.multipart.MultipartFile file, Map<String,String> properties)
StaticAssetServiceImpl has a
environment properties that determine this behavior asset.use.filesystem.storage
The properties Map allows for implementors to update other Asset properties at the
same time they are uploading a file. The default implementation uses this for an optional URL to
be specified.file - - the file being uploadedproperties - - additional meta-data propertiesIOExceptionStaticAssetServiceImplString getStaticAssetUrlPrefix()
String getStaticAssetEnvironmentUrlPrefix()
String getStaticAssetEnvironmentSecureUrlPrefix()
String convertAssetPath(String assetPath, String contextPath, boolean secureRequest)
StaticAsset addStaticAsset(StaticAsset staticAsset)
staticAsset - StaticAsset updateStaticAsset(StaticAsset staticAsset)
staticAsset - void deleteStaticAsset(StaticAsset staticAsset)
staticAsset - Copyright © 2014. All rights reserved.