Class ProductConfigRulesSetup
java.lang.Object
de.hybris.platform.commerceservices.setup.AbstractSystemSetup
de.hybris.platform.sap.productconfig.rules.setup.ProductConfigRulesSetup
@SystemSetup(extension="sapproductconfigrules")
public class ProductConfigRulesSetup
extends AbstractSystemSetup
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).
-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.setup.AbstractSystemSetup
BOOLEAN_FALSE, BOOLEAN_TRUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringextractLocaleOutOfFileName(String fileName) protected Stringprotected Stringprotected FlexibleSearchServiceprotected ImpExSystemSetupprotected ImpexMacroParameterDatagetImpexParameterMap(SystemSetupContext context, Path localeFile, Map<String, String> defaultParameters) Abstract method to be implemented in subclasses.getListOfLanguageFiles(String basedir, SystemSetupContext context) protected Stringprotected StringgetPropertyFileAsMap(SystemSetupContext context, Path localeFile) protected voidimportImpex(ImpexMacroParameterData parameters) voidprocessEssentialFiles(SystemSetupContext context) The method processes first the base definitions for the CPQ rules, and updates the definitions values with the language specific property files.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetImpexImporter(ImpExSystemSetup impexImporter) Methods inherited from class de.hybris.platform.commerceservices.setup.AbstractSystemSetup
activateSolrIndexerCronJobs, createBooleanSystemSetupParameter, createContentCatalogSyncJob, createProductCatalogSyncJob, createSolrIndexerCronJobs, executeCatalogSyncJob, executeSolrIndexerCronJob, getBooleanSystemSetupParameter, getCatalogSyncJob, getCatalogVersionService, getDefaultValueForBooleanSystemSetupParameter, getEventService, getSetupImpexService, getSetupSolrIndexerService, getSetupSyncJobService, importImpexFile, importImpexFile, importImpexFile, isSyncRerunNeeded, logError, logInfo, setCatalogVersionService, setEventService, setSetupImpexService, setSetupSolrIndexerService, setSetupSyncJobService
-
Constructor Details
-
ProductConfigRulesSetup
public ProductConfigRulesSetup()
-
-
Method Details
-
processEssentialFiles
@SystemSetup(type=ESSENTIAL, process=ALL) public void processEssentialFiles(SystemSetupContext context) 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
-
importImpex
-
getImpexParameterMap
protected ImpexMacroParameterData getImpexParameterMap(SystemSetupContext context, Path localeFile, Map<String, String> defaultParameters) -
getPropertyFileAsMap
-
extractLocaleOutOfFileName
-
getListOfLanguageFiles
-
getInitializationOptions
Description copied from class:AbstractSystemSetupAbstract method to be implemented in subclasses.- Specified by:
getInitializationOptionsin classAbstractSystemSetup- Returns:
- the list of SystemSetupParameters for the SystemSetup class.
-
getLocaleFileRegex
-
getLocaleFileLanguageRegex
-
getExtensionName
-
getFlexibleSearchService
-
setFlexibleSearchService
-
getImpexImporter
-
setImpexImporter
-