Interface ImportResult
-
- All Known Implementing Classes:
ImportCronJobResult
public interface ImportResult
Represents 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 ImpExImportCronJobModel
getCronJob()
Returns underlyingImpExImportCronJobModel
for this result.ImpExMediaModel
getUnresolvedLines()
Gets the media containing the unresolved lines csv-file.boolean
hasUnresolvedLines()
Checks if import has caused unresolved value lines.boolean
isError()
Gets whether the import was not successfully.boolean
isFinished()
Gets whether the import is not running anymore.boolean
isRunning()
Gets whether the import is still running.boolean
isSuccessful()
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 underlyingImpExImportCronJobModel
for this result.
-
-