Class ProductConfigRulesCPSSetup
- java.lang.Object
-
- de.hybris.platform.commerceservices.setup.AbstractSystemSetup
-
- de.hybris.platform.sap.productconfig.rules.setup.ProductConfigRulesSetup
-
- de.hybris.platform.sap.productconfig.rules.cps.setup.ProductConfigRulesCPSSetup
-
@SystemSetup(extension="sapproductconfigrulescps") public class ProductConfigRulesCPSSetup extends ProductConfigRulesSetup
This Setup implementation loads multiple language files for the CPS specific rules implementation. It is expected, that the language files are delivered as properties file, following the file name format sapproductconfigrulescps-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-sapproductconfigrulescps_languages.impex).
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.commerceservices.setup.AbstractSystemSetup
BOOLEAN_FALSE, BOOLEAN_TRUE
-
-
Constructor Summary
Constructors Constructor Description ProductConfigRulesCPSSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetExtensionName()voidprocessEssentialFiles(SystemSetupContext context)The method processes first the base definitions for the CPS rules, and updates the definitions values with the language specific property files.-
Methods inherited from class de.hybris.platform.sap.productconfig.rules.setup.ProductConfigRulesSetup
extractLocaleOutOfFileName, getBasedir, getFlexibleSearchService, getImpexImporter, getImpexParameterMap, getInitializationOptions, getListOfLanguageFiles, getLocaleFileLanguageRegex, getLocaleFileRegex, getPropertyFileAsMap, importImpex, setFlexibleSearchService, setImpexImporter
-
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
-
-
-
-
Method Detail
-
processEssentialFiles
@SystemSetup(type=ESSENTIAL, process=ALL) public void processEssentialFiles(SystemSetupContext context)
The method processes first the base definitions for the CPS 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.- Overrides:
processEssentialFilesin classProductConfigRulesSetup- Parameters:
context- System context, provided by the initialize or update run
-
getExtensionName
protected java.lang.String getExtensionName()
- Overrides:
getExtensionNamein classProductConfigRulesSetup
-
-