Class DefaultSetupImpexAddOnService
java.lang.Object
de.hybris.platform.commerceservices.setup.impl.DefaultSetupImpexService
de.hybris.platform.addonsupport.setup.impl.DefaultSetupImpexAddOnService
- All Implemented Interfaces:
SetupImpexService
Extends the
DefaultSetupImpexService with functionality for addons-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildMacroHeader(Map<String, Object> macroParameters) protected InputStreamgetMergedInputStream(Map<String, Object> macroParameters, InputStream fileStream) booleanimportImpexFile(String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing) booleanimportImpexFile(String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing, boolean legacyMode) booleanimportImpexFile(String file, Map<String, Object> macroParameters, boolean errorIfMissing) booleanimportImpexFile(String file, Map<String, Object> macroParameters, boolean errorIfMissing, boolean legacyMode) protected voidimportLanguageSpecificImpexFiles(String file, Map<String, Object> macroParameters, boolean legacyMode) Methods inherited from class de.hybris.platform.commerceservices.setup.impl.DefaultSetupImpexService
getCommonI18NService, getFileEncoding, getImpexExt, getImportService, importImpexFile, importImpexFile, importImpexFile, setCommonI18NService, setFileEncoding, setImpexExt, setImportService
-
Constructor Details
-
DefaultSetupImpexAddOnService
public DefaultSetupImpexAddOnService()
-
-
Method Details
-
importImpexFile
public boolean importImpexFile(String file, Map<String, Object> macroParameters, boolean errorIfMissing) - Specified by:
importImpexFilein interfaceSetupImpexService- Overrides:
importImpexFilein classDefaultSetupImpexService- Parameters:
file- the file path to importmacroParameters- the macro parameterserrorIfMissing- flag, set to true to error if the file is not found- Returns:
falsefor default implementation
-
importImpexFile
public boolean importImpexFile(String file, Map<String, Object> macroParameters, boolean errorIfMissing, boolean legacyMode) - Specified by:
importImpexFilein interfaceSetupImpexService- Overrides:
importImpexFilein classDefaultSetupImpexService- Parameters:
file- the file path to importmacroParameters- the macro parameterserrorIfMissing- flag, set to true to error if the file is not foundlegacyMode- flag, set to true to use legacy impex mode- Returns:
falsefor default implementation
-
importLanguageSpecificImpexFiles
-
buildMacroHeader
-
getMergedInputStream
protected InputStream getMergedInputStream(Map<String, Object> macroParameters, InputStream fileStream) -
importImpexFile
public boolean importImpexFile(String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing, boolean legacyMode) - Specified by:
importImpexFilein interfaceSetupImpexService- Overrides:
importImpexFilein classDefaultSetupImpexService- Parameters:
file- the file path to importmacroParameters- the macro parameterserrorIfMissing- flag, set to true to error if the file is not foundlegacyMode- flag, set to true to use legacy impex mode- Returns:
falsefor default implementation
-
importImpexFile
public boolean importImpexFile(String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing) - Specified by:
importImpexFilein interfaceSetupImpexService- Overrides:
importImpexFilein classDefaultSetupImpexService- Parameters:
file- the file path to importmacroParameters- the macro parameterserrorIfMissing- flag, set to true to error if the file is not found- Returns:
falsefor default implementation
-