Class AbstractMarketplaceImpexRunnerTask
- java.lang.Object
-
- de.hybris.platform.acceleratorservices.dataimport.batch.task.AbstractImpexRunnerTask
-
- de.hybris.platform.marketplaceservices.dataimport.batch.task.AbstractMarketplaceImpexRunnerTask
-
- All Implemented Interfaces:
HeaderTask
public abstract class AbstractMarketplaceImpexRunnerTask extends AbstractImpexRunnerTask
Impex runner task for marketplace, add the functionality to create log files
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
DATE_SEPARATOR
protected static java.lang.String
LOG_DEFAULT_SUCCESS_MSG
protected static java.lang.String
LOG_DIRECTORY
-
Constructor Summary
Constructors Constructor Description AbstractMarketplaceImpexRunnerTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createLogMsg(java.util.List<ImportResult> results)
BatchHeader
execute(BatchHeader header)
Executes a task with a predefinedBatchHeader
identifying all relevant process information.protected void
log(java.util.List<ImportResult> results, java.io.File target)
protected ImportResult
process(java.io.File file, java.lang.String encoding)
-
Methods inherited from class de.hybris.platform.acceleratorservices.dataimport.batch.task.AbstractImpexRunnerTask
getImportConfig, getImportService, getSessionService, processFile, setImportService, setSessionService
-
-
-
-
Field Detail
-
DATE_SEPARATOR
protected static final java.lang.String DATE_SEPARATOR
- See Also:
- Constant Field Values
-
LOG_DIRECTORY
protected static final java.lang.String LOG_DIRECTORY
- See Also:
- Constant Field Values
-
LOG_DEFAULT_SUCCESS_MSG
protected static final java.lang.String LOG_DEFAULT_SUCCESS_MSG
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public BatchHeader execute(BatchHeader header) throws java.io.FileNotFoundException
Description copied from interface:HeaderTask
Executes a task with a predefinedBatchHeader
identifying all relevant process information.- Specified by:
execute
in interfaceHeaderTask
- Overrides:
execute
in classAbstractImpexRunnerTask
- Returns:
- the header
- Throws:
java.io.FileNotFoundException
-
process
protected ImportResult process(java.io.File file, java.lang.String encoding) throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
-
log
protected void log(java.util.List<ImportResult> results, java.io.File target)
-
createLogMsg
protected java.lang.String createLogMsg(java.util.List<ImportResult> results)
-
-