Class CockpitConfigurationMediaSystemSetup


  • @SystemSetup(extension="catalog")
    public class CockpitConfigurationMediaSystemSetup
    extends java.lang.Object
    • Constructor Detail

      • CockpitConfigurationMediaSystemSetup

        public CockpitConfigurationMediaSystemSetup()
    • 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 to null which 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.
        Defaults can be overwritten using the following properties:
        • 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)