Class CommerceServicesSystemSetup
- java.lang.Object
-
- de.hybris.platform.commerceservices.setup.CommerceServicesSystemSetup
-
- Direct Known Subclasses:
ConfigurableBundleServicesSystemSetup,SubscriptionBundleServicesSystemSetup,SubscriptionServicesSystemSetup
@SystemSetup(extension="commerceservices") public class CommerceServicesSystemSetup extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CommerceServicesSystemSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateEssentialData(SystemSetupContext context)This method will be called by system creator during initialization and system update.protected CommonI18NServicegetCommonI18NService()protected java.lang.StringgetFileEncoding()protected java.lang.StringgetImpexExt()protected ImportServicegetImportService()protected voidimportImpexFile(SystemSetupContext context, java.lang.String file, boolean errorIfMissing)Import impex file.protected voidimportImpexFile(java.lang.String file, java.io.InputStream stream)voidsetCommonI18NService(CommonI18NService commonI18NService)voidsetFileEncoding(java.lang.String fileEncoding)voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetImpexExt(java.lang.String impexExt)voidsetImportService(ImportService importService)voidsetModelService(ModelService modelService)voidupdateSolrIndexedPropertyVisibleFlag(SystemSetupContext context)
-
-
-
Method Detail
-
getCommonI18NService
protected CommonI18NService getCommonI18NService()
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
getImportService
protected ImportService getImportService()
-
setImportService
public void setImportService(ImportService importService)
-
getFileEncoding
protected java.lang.String getFileEncoding()
-
setFileEncoding
public void setFileEncoding(java.lang.String fileEncoding)
-
getImpexExt
protected java.lang.String getImpexExt()
-
setImpexExt
public void setImpexExt(java.lang.String impexExt)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
setModelService
public void setModelService(ModelService modelService)
-
updateSolrIndexedPropertyVisibleFlag
@SystemSetup(type=ESSENTIAL, process=UPDATE) public void updateSolrIndexedPropertyVisibleFlag(SystemSetupContext context)
-
createEssentialData
@SystemSetup(type=ESSENTIAL, process=ALL) public void createEssentialData(SystemSetupContext context)
This method will be called by system creator during initialization and system update. Be sure that this method can be called repeatedly.- Parameters:
context- the context provides the selected parameters and values
-
importImpexFile
protected void importImpexFile(SystemSetupContext context, java.lang.String file, boolean errorIfMissing)
Import impex file. The file is looked up from the classpath. If the file does not exist then an info message is logged. The file should used the ".impex" file extension. Any language specific files are found with the same root file name then they are also imported. Language specific files have the language iso code appended to the file name using an underscore as a separator. For example if the file /path/file.impex is imported and the language specific file /path/file_de.impex exists, then it will also be imported. Only files for languages that exist in the hybris system will be imported.- Parameters:
context- the context provides the selected parameters and valuesfile- the file path to importerrorIfMissing- flag, set to true to error if the file is not found
-
importImpexFile
protected void importImpexFile(java.lang.String file, java.io.InputStream stream)
-
-