Interface MediaStorageInitializer
-
- All Known Implementing Classes:
GridFSMediaStorageCleaner,LocalFileMediaStorageCleaner,S3MediaStorageCleaner,WindowsAzureBlobStorageStrategy
public interface MediaStorageInitializerAllows to prepare storage during initialization and update of the hybris system. Initialization process removes whole data, thus any binary data from the media storage cannot be managed by platform anymore. The best approach is to clear media storage on initialization completely. Please keep in mind that during initialization process hybris platform is not fully started and using any Models, Items or other services related to persistence may not be possible.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckStorageConnection()checks if communication with external media storage is possible.default booleanfailOnInitUpdateError()defines if the init or update process should stop on errors (e.g.voidonInitialize()Prepares media storage on initialization.voidonUpdate()Prepares media storage on update.
-
-
-
Method Detail
-
onInitialize
void onInitialize()
Prepares media storage on initialization.
-
onUpdate
void onUpdate()
Prepares media storage on update.
-
failOnInitUpdateError
default boolean failOnInitUpdateError()
defines if the init or update process should stop on errors (e.g. during communication with external media storage). Default is taken from the configuration - media.storage.strategy.failoninitupdaterror.- Returns:
trueif init or update proccess should stop, otherwisefalse
-
checkStorageConnection
default void checkStorageConnection()
checks if communication with external media storage is possible.- Throws:
ExternalStorageServiceException- when communication with storage doesn't work
-
-