Class ProductConfigRulesSetup

java.lang.Object
de.hybris.platform.commerceservices.setup.AbstractSystemSetup
de.hybris.platform.sap.productconfig.rules.setup.ProductConfigRulesSetup

@SystemSetup(extension="sapproductconfigrules") @Deprecated(since="2211", forRemoval=true) public class ProductConfigRulesSetup extends AbstractSystemSetup
Deprecated, for removal: This API element is subject to removal in a future version.
since 22.11 release due to using of the standard essentialdata impex logic
This Setup implementation loads multiple language files for the CPQ rules implementation. It is expected, that the language files are delivered as properties file, following the file name format sapproductconfigrules-impexsupport_[two character language code].properties, and are placed in the resources/localization folder. The properties files are used as parameter sets for the essential Impex file ( essentialdata-sapproductconfigrules_languages.impex).
  • Constructor Details

    • ProductConfigRulesSetup

      public ProductConfigRulesSetup()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • processEssentialFiles

      @SystemSetup(type=ESSENTIAL, process=ALL) public void processEssentialFiles(SystemSetupContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
      The method processes first the base definitions for the CPQ rules, and updates the definitions values with the language specific property files. Each language property file will trigger an import for the language essential Impex.
      Parameters:
      context - System context, provided by the initialize or update run
    • getBasedir

      protected String getBasedir()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • importImpex

      protected void importImpex(ImpexMacroParameterData parameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getImpexParameterMap

      protected ImpexMacroParameterData getImpexParameterMap(SystemSetupContext context, Path localeFile, Map<String,String> defaultParameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getPropertyFileAsMap

      protected Map<String,String> getPropertyFileAsMap(SystemSetupContext context, Path localeFile)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • extractLocaleOutOfFileName

      protected String extractLocaleOutOfFileName(String fileName)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getListOfLanguageFiles

      protected List<Path> getListOfLanguageFiles(String basedir, SystemSetupContext context)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getInitializationOptions

      @SystemSetupParameterMethod public List<SystemSetupParameter> getInitializationOptions()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractSystemSetup
      Abstract method to be implemented in subclasses.
      Specified by:
      getInitializationOptions in class AbstractSystemSetup
      Returns:
      the list of SystemSetupParameters for the SystemSetup class.
    • getLocaleFileRegex

      protected String getLocaleFileRegex()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getLocaleFileLanguageRegex

      protected String getLocaleFileLanguageRegex()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getExtensionName

      protected String getExtensionName()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getFlexibleSearchService

      protected FlexibleSearchService getFlexibleSearchService()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFlexibleSearchService

      public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getImpexImporter

      protected ImpExSystemSetup getImpexImporter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setImpexImporter

      public void setImpexImporter(ImpExSystemSetup impexImporter)
      Deprecated, for removal: This API element is subject to removal in a future version.