Class CockpitConfigurationMediaSystemSetup
- java.lang.Object
-
- de.hybris.platform.cockpit.systemsetup.CockpitConfigurationMediaSystemSetup
-
@SystemSetup(extension="catalog") public class CockpitConfigurationMediaSystemSetup extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CockpitConfigurationMediaSystemSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustCockpitConfigurationMedias()CAUTION: we assume that cockpit configuration medias that will be converted are not referenced from other entities.voidsetCatalogService(CatalogService catalogService)voidsetConfigurationService(ConfigurationService configurationService)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetItemModelCloneCreator(ItemModelCloneCreator itemModelCloneCreator)voidsetModelService(ModelService modelService)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
adjustCockpitConfigurationMedias
@SystemSetup(process=ALL, type=ESSENTIAL) public void adjustCockpitConfigurationMedias()
CAUTION: we assume that cockpit configuration medias that will be converted are not referenced from other entities. If this can not be guaranteed in your project disable this method and try manual migration process.
Does conversion of all media files that represent cockpit configurations in the default catalog version into CockpitUIConfigurationMedia and deletes all cockpit configurations from other versions of the catalog. Medias are deleted because if by chance the default catalog version was synchronized media codes were duplicated (cockpit configuration search is catalog version unaware!). After conversion the catalog version is set tonullwhich is the default value for CockpitUIConfigurationMedia.
By default:- Default:Staged catalog is used as the default catalog in which cockpit configurations should be stored (medias in this catalog version are converted if needed) and cockpit-related medias in other versions of the Default catalog will be removed.
- Medias are searched with flexible queries using the following OR-connected conditions against code: %ui_config, %ui_config2, %jasperMediaconfig.
- catalog.migration.ui.config.default.catalog - for default catalog, eg. =MyDefaultCatalog
- catalog.migration.ui.config.default.catalog.version - for default catalog version, eg. =Staged
- catalog.migration.ui.config.code.patterns - for code patterns, eg. =%ui_config,%ui_config_xml
- catalog.migration.ui.config.mime.types - for mime types (OR-related to the code rules), eg. =text/xml
- Since:
- 4.5
- See Also:
CockpitUIConfigurationMediaModel
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
-
setCatalogService
public void setCatalogService(CatalogService catalogService)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
setModelService
public void setModelService(ModelService modelService)
-
setItemModelCloneCreator
public void setItemModelCloneCreator(ItemModelCloneCreator itemModelCloneCreator)
-
setTypeService
public void setTypeService(TypeService typeService)
-
-