com.elasticpath.service.dataimport.impl
Class ImportJobRunnerCustomerImpl

java.lang.Object
  extended by com.elasticpath.service.impl.AbstractEpServiceImpl
      extended by com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
          extended by com.elasticpath.service.dataimport.impl.ImportJobRunnerCustomerImpl
All Implemented Interfaces:
ImportJobRunner, EpPersistenceService, EpService, java.lang.Runnable

public class ImportJobRunnerCustomerImpl
extends AbstractEpPersistenceServiceImpl

An import runner to import Customers.


Constructor Summary
ImportJobRunnerCustomerImpl()
           
 
Method Summary
 ImportGuidHelper getImportGuidHelper()
          Returns the import guid helper service.
 ImportService getImportService()
          Returns the imbedded import job service.
 java.lang.Object getObject(long uid)
          Not used.
 Utility getUtility()
          Returns the utility.
 void run()
          Run an import job.
 void setCustomerService(CustomerService service)
          Sets the CustomerService.
 void setEmailService(EmailService emailService)
          Set the emailService.
 void setImportGuidHelper(ImportGuidHelper importGuidHelper)
          Sets the import guid helper service.
 void setImportJob(ImportJob importJob)
          Sets the import job.
 void setImportService(ImportService importService)
          Set the import job service.
 void setUtility(Utility utility)
          Sets the utility.
 java.util.List validate()
          Validate the import job.
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from class com.elasticpath.service.impl.AbstractEpServiceImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.service.EpPersistenceService
getPersistenceEngine, setPersistenceEngine
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Constructor Detail

ImportJobRunnerCustomerImpl

public ImportJobRunnerCustomerImpl()
Method Detail

setCustomerService

public void setCustomerService(CustomerService service)
Sets the CustomerService.

Parameters:
service - the customer service

getImportGuidHelper

public ImportGuidHelper getImportGuidHelper()
Returns the import guid helper service.

Returns:
the import guid helper service

getImportService

public ImportService getImportService()
Returns the imbedded import job service.

Returns:
the imbedded import job service

getObject

public java.lang.Object getObject(long uid)
                           throws EpServiceException
Not used.

Specified by:
getObject in interface EpPersistenceService
Parameters:
uid - not used.
Returns:
nothing.
Throws:
EpServiceException - - in case of called

getUtility

public Utility getUtility()
Returns the utility.

Returns:
the utility

run

public void run()
Run an import job.

Specified by:
run in interface java.lang.Runnable

setEmailService

public void setEmailService(EmailService emailService)
Set the emailService.

Parameters:
emailService - the emailService

setImportGuidHelper

public void setImportGuidHelper(ImportGuidHelper importGuidHelper)
Sets the import guid helper service.

Parameters:
importGuidHelper - the import guid helper service

setImportJob

public void setImportJob(ImportJob importJob)
Sets the import job.

Specified by:
setImportJob in interface ImportJobRunner
Parameters:
importJob - the import job to set.

setImportService

public void setImportService(ImportService importService)
Set the import job service.

Parameters:
importService - the import job service to set

setUtility

public void setUtility(Utility utility)
Sets the utility.

Parameters:
utility - the utility to set

validate

public java.util.List validate()
Validate the import job.

Specified by:
validate in interface ImportJobRunner
Returns:
a list of ImportBadRow, or a empty list if there is no errors.