org.broadleafcommerce.cms.file.service
Interface StaticAssetService

All Known Implementing Classes:
StaticAssetServiceImpl

public interface StaticAssetService

Created by bpolster.


Method Summary
 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.
 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()
           
 

Method Detail

findStaticAssetById

StaticAsset findStaticAssetById(Long id)

readAllStaticAssets

List<StaticAsset> readAllStaticAssets()

findStaticAssetByFullUrl

StaticAsset findStaticAssetByFullUrl(String fullUrl)

createStaticAssetFromFile

StaticAsset createStaticAssetFromFile(org.springframework.web.multipart.MultipartFile file,
                                      Map<String,String> properties)
Used when uploading a file to Broadleaf. This method will create the corresponding asset. Depending on the the implementation, the actual asset may be saved to the DB or to the file system. The default implementation 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.

Parameters:
file - - the file being uploaded
properties - - additional meta-data properties
Returns:
Throws:
IOException
See Also:
StaticAssetServiceImpl

getStaticAssetUrlPrefix

String getStaticAssetUrlPrefix()
Deprecated. since 3.1.0.

See Also:
StaticAssetPathService.getStaticAssetUrlPrefix()

getStaticAssetEnvironmentUrlPrefix

String getStaticAssetEnvironmentUrlPrefix()
Deprecated. since 3.1.0.

See Also:
StaticAssetPathService.getStaticAssetEnvironmentUrlPrefix()

getStaticAssetEnvironmentSecureUrlPrefix

String getStaticAssetEnvironmentSecureUrlPrefix()
Deprecated. since 3.1.0.

See Also:
StaticAssetPathService.getStaticAssetEnvironmentSecureUrlPrefix()

convertAssetPath

String convertAssetPath(String assetPath,
                        String contextPath,
                        boolean secureRequest)
Deprecated. since 3.1.0.

See Also:
StaticAssetPathService.convertAssetPath(String, String, boolean)


Copyright © 2013. All Rights Reserved.