public interface ImportService extends CRUDService<ImportedFileDTO,ImportedFileData,ImportType>
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort(java.lang.Long importedFileId)
Attempts to trigger the abort process of the given import.
|
ImportedLineData |
getImportedLineData(java.lang.Long importedLineId)
Returns the imported line data
|
ImportProgressVO |
getImportProgress(java.lang.Long importedFileId)
Returns a double between 0 and 1 indicating the progress of the given import.
|
ImportedFileSearchData |
getSearchData()
Returns information to perform searches over imports.
|
void |
markAsSkipped(java.lang.Long importedFileId,
java.util.List<java.lang.Long> lineIds,
boolean skipped)
Sets if the lines should be skipped by the import process or not based on the skipped parameter.
|
void |
process(java.lang.Long importedFileId)
Starts an import
|
void |
saveDescription(java.lang.Long importedFileId,
java.lang.String description)
Saves the description for the specified imported file id.
|
void |
saveImportedLine(ImportedLineDTO importedLineDTO)
Saves the values of the imported line
|
Page<ImportedFileVO> |
search(ImportedFileQuery params)
Returns the imports that satisfy the query restrictions.
|
Page<ImportedLineVO> |
searchImportedLines(ImportedLineQuery params)
Returns the imported lines that matches the query restrictions.
|
java.lang.Long |
upload(ImportedFileDTO importedFileDTO,
SerializableInputStream input)
Uploads a file to be imported
|
getData, getDataForNew, load, remove, removeAll, saveboolean abort(@NotNull
java.lang.Long importedFileId)
throws FrameworkException
FrameworkExceptionImportedLineData getImportedLineData(@NotNull java.lang.Long importedLineId) throws FrameworkException
FrameworkExceptionImportProgressVO getImportProgress(@NotNull java.lang.Long importedFileId) throws FrameworkException
FrameworkExceptionImportedFileSearchData getSearchData() throws FrameworkException
FrameworkExceptionvoid markAsSkipped(@NotNull
java.lang.Long importedFileId,
@NotNull
java.util.List<java.lang.Long> lineIds,
boolean skipped)
throws FrameworkException
FrameworkExceptionvoid process(@NotNull
java.lang.Long importedFileId)
throws FrameworkException
FrameworkExceptionvoid saveDescription(@NotNull
java.lang.Long importedFileId,
java.lang.String description)
throws FrameworkException
FrameworkExceptionvoid saveImportedLine(@NotNull
ImportedLineDTO importedLineDTO)
throws FrameworkException
FrameworkExceptionPage<ImportedFileVO> search(@NotNull ImportedFileQuery params) throws FrameworkException
FrameworkExceptionPage<ImportedLineVO> searchImportedLines(@NotNull ImportedLineQuery params) throws FrameworkException
FrameworkExceptionjava.lang.Long upload(@NotNull
ImportedFileDTO importedFileDTO,
@NotNull
SerializableInputStream input)
throws FrameworkException
FrameworkException