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