Class DefaultSetupImpexAddOnService
- java.lang.Object
-
- de.hybris.platform.commerceservices.setup.impl.DefaultSetupImpexService
-
- de.hybris.platform.addonsupport.setup.impl.DefaultSetupImpexAddOnService
-
- All Implemented Interfaces:
SetupImpexService
public class DefaultSetupImpexAddOnService extends DefaultSetupImpexService
Extends theDefaultSetupImpexServicewith functionality for addons
-
-
Constructor Summary
Constructors Constructor Description DefaultSetupImpexAddOnService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildMacroHeader(java.util.Map<java.lang.String,java.lang.Object> macroParameters)protected java.io.InputStreamgetMergedInputStream(java.util.Map<java.lang.String,java.lang.Object> macroParameters, java.io.InputStream fileStream)booleanimportImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing)booleanimportImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing, boolean legacyMode)booleanimportImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing)booleanimportImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing, boolean legacyMode)protected voidimportLanguageSpecificImpexFiles(java.lang.String file, java.util.Map<java.lang.String,java.lang.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
-
-
-
-
Method Detail
-
importImpexFile
public boolean importImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.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(java.lang.String file, java.util.Map<java.lang.String,java.lang.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
protected void importLanguageSpecificImpexFiles(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean legacyMode)
-
buildMacroHeader
protected java.lang.String buildMacroHeader(java.util.Map<java.lang.String,java.lang.Object> macroParameters)
-
getMergedInputStream
protected java.io.InputStream getMergedInputStream(java.util.Map<java.lang.String,java.lang.Object> macroParameters, java.io.InputStream fileStream)
-
importImpexFile
public boolean importImpexFile(java.lang.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(java.lang.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
-
-