|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImportService
Provide services of the import manager.
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.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 interface com.elasticpath.service.EpPersistenceService |
---|
getObject, getPersistenceEngine, setPersistenceEngine |
Methods inherited from interface com.elasticpath.service.EpService |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
ImportDataType findImportDataType(java.lang.String name)
name
- the import data type name
null
.ImportJob findImportJob(java.lang.String name)
name
- the import job name
null
.ImportJob getImportJob(long importJobUid) throws EpServiceException
importJobUid
- the importJob UID, give 0 if you want to create a new import job.
EpServiceException
- -
in case of any errorsImportType getImportType(int importTypeId)
importTypeId
- the import type id
java.util.List getPreviewData(ImportJob importJob)
importJob
- the import job
ImportRunningJob getRunningJob()
java.util.List getTitleLine(ImportJob importJob)
importJob
- the import job
java.util.List listImportDataTypes()
java.util.List listImportJobs()
java.util.List listImportTypes()
java.util.List runImportJob(ImportJob importJob)
importJob
- the import job to run
void saveOrUpdateImportJob(ImportJob importJob) throws ImportJobExistException
importJob
- the importJob to save or update
ImportJobExistException
- - if the specified import job name is already in use.java.util.List validataCsvFormat(ImportJob importJob)
importJob
- the import job
java.util.List validateMappings(ImportJob importJob)
importJob
- the import job
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |