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 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 if isError() 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