|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ImportService
name
- the import data type name
null
.public ImportJob findImportJob(java.lang.String name)
findImportJob
in interface ImportService
name
- the import job name
null
.public ImportJob getImportJob(long importJobUid) throws EpServiceException
getImportJob
in interface ImportService
importJobUid
- 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 ImportService
importTypeId
- the import type id
public java.lang.Object getObject(long uid) throws EpServiceException
getObject
in interface EpPersistenceService
uid
- the persistent instance uid
EpServiceException
- - in case of any errorspublic java.util.List getPreviewData(ImportJob importJob)
getPreviewData
in interface ImportService
importJob
- the import job
public ImportRunningJob getRunningJob()
getRunningJob
in interface ImportService
public java.util.List getTitleLine(ImportJob importJob)
getTitleLine
in interface ImportService
importJob
- the import job
public java.util.List listImportDataTypes()
listImportDataTypes
in interface ImportService
public java.util.List listImportJobs()
listImportJobs
in interface ImportService
public java.util.List listImportTypes()
listImportTypes
in interface ImportService
public java.util.List runImportJob(ImportJob importJob) throws AnotherImportJobRunningException
runImportJob
in interface ImportService
importJob
- the import job to run
AnotherImportJobRunningException
- when another job is still runningpublic void saveOrUpdateImportJob(ImportJob importJob) throws ImportJobExistException
saveOrUpdateImportJob
in interface ImportService
importJob
- 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 ImportService
importJob
- the import job
public java.util.List validateMappings(ImportJob importJob)
validateMappings
in interface ImportService
importJob
- the import job
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |