Package nl.vpro.domain.asset
Interface AssetService
-
public interface AssetService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
exists(String fileName)
default Optional<File>
get(String fileName)
File
getFile(String fileName)
default String
getFilePath(String fileName)
default String
getMimeType(String fileName)
List<File>
list()
boolean
remove(String fileName)
String
store(String fileName, Asset asset)
Stores the given assets inputstream in the local asset store and replaces the wrapped asset with a new asset source referencing the filename in the local store.
-
-
-
Method Detail
-
store
String store(String fileName, Asset asset)
Stores the given assets inputstream in the local asset store and replaces the wrapped asset with a new asset source referencing the filename in the local store.
-
remove
boolean remove(String fileName)
-
exists
default boolean exists(String fileName)
-
-