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
Modifier and TypeMethodDescriptionReturns underlyingImpExImportCronJobModelfor this result.Gets the media containing the unresolved lines csv-file.booleanChecks if import has caused unresolved value lines.booleanisError()Gets whether the import was not successfully.booleanGets whether the import is not running anymore.booleanGets whether the import is still running.booleanGets whether the import was successfully.
-
Method Details
-
isSuccessful
boolean isSuccessful()Gets whether the import was successfully.- Returns:
- true if import was successfully
- Throws:
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:
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.
-