Class DefaultExportService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.servicelayer.impex.impl.DefaultExportService
- All Implemented Interfaces:
ExportService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
Default implementation of export service.
- Since:
- 4.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureCronJob(ImpExExportCronJobModel cronJob, ExportConfig config) protected ExportModelexportData(ImpExExportCronJobModel cronJob, boolean synchronous) exportData(ExportConfig config) Exports platform data.exportData(ImpExResource script) Exports platform data using given impex export script.voidsetCronJobService(CronJobService cronJobService) validateExportScript(String script, ImpExValidationModeEnum validationMode) Validates export script.Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultExportService
public DefaultExportService()
-
-
Method Details
-
exportData
-
configureCronJob
-
exportData
Description copied from interface:ExportServiceExports platform data. The export is configured by given configuration object. Please pay attention for the defaults of parameters not explicitly configured. For example the export will be executed synchronous if not reconfigured. Returns a result object for accessing state of export and resulting data. If executed asynchronous the exported data can be accessed only ifExportResult.isFinished()returns true.- Specified by:
exportDatain interfaceExportService- Parameters:
config- export configuration- Returns:
- result of export
-
validateExportScript
public DefaultImpExValidationResult validateExportScript(String script, ImpExValidationModeEnum validationMode) Description copied from interface:ExportServiceValidates export script.- Specified by:
validateExportScriptin interfaceExportService- Returns:
- result of script validation
-
exportData
Description copied from interface:ExportServiceExports platform data using given impex export script. Default parameters are set as when creating an emptyExportConfig, so execution will be synchronous for example. Returns a result object where exported data can be accessed from.- Specified by:
exportDatain interfaceExportService- Parameters:
script- export script- Returns:
- result of export
-
setCronJobService
-