Class CockpitConfigurationMediaSystemSetup
java.lang.Object
de.hybris.platform.cockpit.systemsetup.CockpitConfigurationMediaSystemSetup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCAUTION: 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)
-
Constructor Details
-
CockpitConfigurationMediaSystemSetup
public CockpitConfigurationMediaSystemSetup()
-
-
Method Details
-
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:
-
setConfigurationService
-
setCatalogService
-
setFlexibleSearchService
-
setModelService
-
setItemModelCloneCreator
-
setTypeService
-