Interface SetupImpexService
-
- All Known Implementing Classes:
DefaultSetupImpexAddOnService
,DefaultSetupImpexService
public interface SetupImpexService
Service that handles importing impex files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
importImpexFile(java.lang.String file, boolean errorIfMissing)
Import impex file.void
importImpexFile(java.lang.String file, boolean errorIfMissing, boolean legacyMode)
Import impex file.boolean
importImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing)
boolean
importImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing, boolean legacyMode)
boolean
importImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing)
boolean
importImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing, boolean legacyMode)
-
-
-
Method Detail
-
importImpexFile
void importImpexFile(java.lang.String file, boolean errorIfMissing, boolean legacyMode)
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:
file
- the file path to importerrorIfMissing
- flag, set to true to error if the file is not foundlegacyMode
- flag, set to true to use legacy impex mode
-
importImpexFile
void importImpexFile(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. By default this method imports the impex data with legacy mode set to false.- Parameters:
file
- the file path to importerrorIfMissing
- flag, set to true to error if the file is not found
-
importImpexFile
boolean importImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing, boolean legacyMode)
- 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:
false
for default implementation
-
importImpexFile
boolean importImpexFile(java.lang.String file, java.util.Map<java.lang.String,java.lang.Object> macroParameters, boolean errorIfMissing)
- Parameters:
file
- the file path to importmacroParameters
- the macro parameterserrorIfMissing
- flag, set to true to error if the file is not found- Returns:
false
for default implementation
-
importImpexFile
boolean importImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing, boolean legacyMode)
- 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:
false
for default implementation
-
importImpexFile
boolean importImpexFile(java.lang.String file, ImpexMacroParameterData macroParameters, boolean errorIfMissing)
- Parameters:
file
- the file path to importmacroParameters
- the macro parameterserrorIfMissing
- flag, set to true to error if the file is not found- Returns:
false
for default implementation
-
-