Class DefaultImportErrorsConverter<T extends DataItemImportResult>

    • Constructor Detail

      • DefaultImportErrorsConverter

        public DefaultImportErrorsConverter()
    • Method Detail

      • toItemImportResult

        protected T toItemImportResult​(ImportResult importRes)
      • createDataItemImportResult

        protected T createDataItemImportResult()
      • setImportService

        public void setImportService​(ImportService impl)
        Injects ImportService implementation to be used by this facade.
        Parameters:
        impl - implementation of the ImportService to use.
      • getImportService

        protected ImportService getImportService()
        Getter for importService.
        Returns:
        importService
      • setErrorLimit

        public void setErrorLimit​(int errorLimit)
        The maximum number of errors to return before failing the entire publication
        Parameters:
        errorLimit - the error limit
      • getErrorLimit

        protected int getErrorLimit()
        Getter for error limit.
        Returns:
        error limit.
      • isLimited

        protected boolean isLimited()
        Return the error result with limit if errorLimit set to >=0.
        Returns:
        is limited error results