| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.elasticpath.service.impl.AbstractEpServiceImpl
com.elasticpath.service.impl.AbstractEpPersistenceServiceImpl
com.elasticpath.service.dataimport.impl.ImportServiceImpl
public class ImportServiceImpl
A defautl implementation of ImportService.
| Constructor Summary | |
|---|---|
ImportServiceImpl()
 | 
|
| Method Summary | |
|---|---|
 ImportDataType | 
findImportDataType(java.lang.String name)
Find an import data type by name.  | 
 ImportJob | 
findImportJob(java.lang.String name)
Find an import job by name.  | 
 ImportJob | 
getImportJob(long importJobUid)
Get the import job with the given UID.  | 
 ImportType | 
getImportType(int importTypeId)
Returns the import type with the given id.  | 
 java.lang.Object | 
getObject(long uid)
Returns an import job.  | 
 java.util.List | 
getPreviewData(ImportJob importJob)
Returns the preview data of the import data file.  | 
 ImportRunningJob | 
getRunningJob()
Returns the running import job.  | 
 java.util.List | 
getTitleLine(ImportJob importJob)
Returns the title line of the import csv data file.  | 
 java.util.List | 
listImportDataTypes()
List all import data types.  | 
 java.util.List | 
listImportJobs()
List all saved import jobs.  | 
 java.util.List | 
listImportTypes()
List all import types.  | 
 java.util.List | 
runImportJob(ImportJob importJob)
Run the import job.  | 
 void | 
saveOrUpdateImportJob(ImportJob importJob)
Save or update the given importjob.  | 
 java.util.List | 
validataCsvFormat(ImportJob importJob)
Validate the csv format of the import data file.  | 
 java.util.List | 
validateMappings(ImportJob importJob)
Validate the import mappings specified in the importjob.  | 
| 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 | 
|---|
public ImportServiceImpl()
| Method Detail | 
|---|
public ImportDataType findImportDataType(java.lang.String name)
findImportDataType in interface ImportServicename - the import data type name
null.public ImportJob findImportJob(java.lang.String name)
findImportJob in interface ImportServicename - the import job name
null.
public ImportJob getImportJob(long importJobUid)
                       throws EpServiceException
getImportJob in interface ImportServiceimportJobUid - the importJob UID, give 0 if you want to create a new import job.
EpServiceException - - in case of any errorspublic ImportType getImportType(int importTypeId)
getImportType in interface ImportServiceimportTypeId - the import type id
public java.lang.Object getObject(long uid)
                           throws EpServiceException
getObject in interface EpPersistenceServiceuid - the persistent instance uid
EpServiceException - - in case of any errorspublic java.util.List getPreviewData(ImportJob importJob)
getPreviewData in interface ImportServiceimportJob - the import job
public ImportRunningJob getRunningJob()
getRunningJob in interface ImportServicepublic java.util.List getTitleLine(ImportJob importJob)
getTitleLine in interface ImportServiceimportJob - the import job
public java.util.List listImportDataTypes()
listImportDataTypes in interface ImportServicepublic java.util.List listImportJobs()
listImportJobs in interface ImportServicepublic java.util.List listImportTypes()
listImportTypes in interface ImportService
public java.util.List runImportJob(ImportJob importJob)
                            throws AnotherImportJobRunningException
runImportJob in interface ImportServiceimportJob - the import job to run
AnotherImportJobRunningException - when another job is still running
public void saveOrUpdateImportJob(ImportJob importJob)
                           throws ImportJobExistException
saveOrUpdateImportJob in interface ImportServiceimportJob - the importJob to save or update
ImportJobExistException - - if the specified import job name is already in use.public java.util.List validataCsvFormat(ImportJob importJob)
validataCsvFormat in interface ImportServiceimportJob - the import job
public java.util.List validateMappings(ImportJob importJob)
validateMappings in interface ImportServiceimportJob - the import job
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||