Interface ImportResult
-
- All Known Implementing Classes:
ImportCronJobResult
public interface ImportResultRepresents a result of an import. Provides methods for getting the state and eventually error analysis stuff of the import.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImpExImportCronJobModelgetCronJob()Returns underlyingImpExImportCronJobModelfor this result.ImpExMediaModelgetUnresolvedLines()Gets the media containing the unresolved lines csv-file.booleanhasUnresolvedLines()Checks if import has caused unresolved value lines.booleanisError()Gets whether the import was not successfully.booleanisFinished()Gets whether the import is not running anymore.booleanisRunning()Gets whether the import is still running.booleanisSuccessful()Gets whether the import was successfully.
-
-
-
Method Detail
-
isSuccessful
boolean isSuccessful()
Gets whether the import was successfully.- Returns:
- true if import was successfully
- Throws:
java.lang.IllegalStateException- in case import is still running.
-
isError
boolean isError()
Gets whether the import was not successfully.- Returns:
- true if import was not successfully
- Throws:
java.lang.IllegalStateException- in case import is still running.
-
isRunning
boolean isRunning()
Gets whether the import is still running.- Returns:
- true if import is still running
-
isFinished
boolean isFinished()
Gets whether the import is not running anymore.- Returns:
- true if import is not running
-
hasUnresolvedLines
boolean hasUnresolvedLines()
Checks if import has caused unresolved value lines. Can only occur ifisError()returns true.- Returns:
- true if there were unresolved lines
-
getUnresolvedLines
ImpExMediaModel getUnresolvedLines()
Gets the media containing the unresolved lines csv-file. Returns null if no unresolved lines have occurred.- Returns:
- media with unresolved lines or null
-
getCronJob
ImpExImportCronJobModel getCronJob()
Returns underlyingImpExImportCronJobModelfor this result.
-
-