Class ProcessSummaryWarningsAndErrorsRollup

java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.general.ProcessSummaryWarningsAndErrorsRollup

public class ProcessSummaryWarningsAndErrorsRollup extends Object
Helper class for process steps that want to roll up error summary and/or warning summary lines. e.g., if the process might have a handful of different error messages. Will record up to 50 (configurable) unique errors, then throw the rest int an "other" errors summary.
  • Constructor Details

    • ProcessSummaryWarningsAndErrorsRollup

      public ProcessSummaryWarningsAndErrorsRollup()
  • Method Details

    • build

      public static ProcessSummaryWarningsAndErrorsRollup build(String pastTenseVerb)
    • addToList

      public void addToList(ArrayList<ProcessSummaryLineInterface> list)
    • addError

      public void addError(String message, Serializable primaryKey)
    • addWarning

      public void addWarning(String message, Serializable primaryKey)
    • countWarnings

      public int countWarnings()
    • countErrors

      public int countErrors()
    • resetWarnings

      public void resetWarnings()
    • getOtherErrorsSummary

      public ProcessSummaryLine getOtherErrorsSummary()
      Getter for otherErrorsSummary
    • setOtherErrorsSummary

      public void setOtherErrorsSummary(ProcessSummaryLine otherErrorsSummary)
      Setter for otherErrorsSummary
    • withOtherErrorsSummary

      public ProcessSummaryWarningsAndErrorsRollup withOtherErrorsSummary(ProcessSummaryLine otherErrorsSummary)
      Fluent setter for otherErrorsSummary
    • getOtherWarningsSummary

      public ProcessSummaryLine getOtherWarningsSummary()
      Getter for otherWarningsSummary
    • setOtherWarningsSummary

      public void setOtherWarningsSummary(ProcessSummaryLine otherWarningsSummary)
      Setter for otherWarningsSummary
    • withOtherWarningsSummary

      public ProcessSummaryWarningsAndErrorsRollup withOtherWarningsSummary(ProcessSummaryLine otherWarningsSummary)
      Fluent setter for otherWarningsSummary
    • getErrorTemplate

      public ProcessSummaryLine getErrorTemplate()
      Getter for errorTemplate
    • setErrorTemplate

      public void setErrorTemplate(ProcessSummaryLine errorTemplate)
      Setter for errorTemplate
    • withErrorTemplate

      public ProcessSummaryWarningsAndErrorsRollup withErrorTemplate(ProcessSummaryLine errorTemplate)
      Fluent setter for errorTemplate
    • getWarningTemplate

      public ProcessSummaryLine getWarningTemplate()
      Getter for warningTemplate
    • setWarningTemplate

      public void setWarningTemplate(ProcessSummaryLine warningTemplate)
      Setter for warningTemplate
    • withWarningTemplate

      public ProcessSummaryWarningsAndErrorsRollup withWarningTemplate(ProcessSummaryLine warningTemplate)
      Fluent setter for warningTemplate
    • getUniqueErrorsToShow

      public int getUniqueErrorsToShow()
      Getter for uniqueErrorsToShow
    • setUniqueErrorsToShow

      public void setUniqueErrorsToShow(int uniqueErrorsToShow)
      Setter for uniqueErrorsToShow
    • withUniqueErrorsToShow

      public ProcessSummaryWarningsAndErrorsRollup withUniqueErrorsToShow(int uniqueErrorsToShow)
      Fluent setter for uniqueErrorsToShow
    • getDoReplaceSingletonCountLinesWithSuffixOnly

      public boolean getDoReplaceSingletonCountLinesWithSuffixOnly()
      Getter for doReplaceSingletonCountLinesWithSuffixOnly
    • setDoReplaceSingletonCountLinesWithSuffixOnly

      public void setDoReplaceSingletonCountLinesWithSuffixOnly(boolean doReplaceSingletonCountLinesWithSuffixOnly)
      Setter for doReplaceSingletonCountLinesWithSuffixOnly
    • withDoReplaceSingletonCountLinesWithSuffixOnly

      public ProcessSummaryWarningsAndErrorsRollup withDoReplaceSingletonCountLinesWithSuffixOnly(boolean doReplaceSingletonCountLinesWithSuffixOnly)
      Fluent setter for doReplaceSingletonCountLinesWithSuffixOnly
    • getErrorSummaries

      public Map<String,ProcessSummaryLine> getErrorSummaries()
      Getter for errorSummaries