Class ProcessSummaryWarningsAndErrorsRollup
java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.general.ProcessSummaryWarningsAndErrorsRollup
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(String message, Serializable primaryKey) voidvoidaddWarning(String message, Serializable primaryKey) intintbooleanGetter for doReplaceSingletonCountLinesWithSuffixOnlyGetter for errorSummariesGetter for errorTemplateGetter for otherErrorsSummaryGetter for otherWarningsSummaryintGetter for uniqueErrorsToShowGetter for warningTemplatevoidvoidsetDoReplaceSingletonCountLinesWithSuffixOnly(boolean doReplaceSingletonCountLinesWithSuffixOnly) Setter for doReplaceSingletonCountLinesWithSuffixOnlyvoidsetErrorTemplate(ProcessSummaryLine errorTemplate) Setter for errorTemplatevoidsetOtherErrorsSummary(ProcessSummaryLine otherErrorsSummary) Setter for otherErrorsSummaryvoidsetOtherWarningsSummary(ProcessSummaryLine otherWarningsSummary) Setter for otherWarningsSummaryvoidsetUniqueErrorsToShow(int uniqueErrorsToShow) Setter for uniqueErrorsToShowvoidsetWarningTemplate(ProcessSummaryLine warningTemplate) Setter for warningTemplatewithDoReplaceSingletonCountLinesWithSuffixOnly(boolean doReplaceSingletonCountLinesWithSuffixOnly) Fluent setter for doReplaceSingletonCountLinesWithSuffixOnlywithErrorTemplate(ProcessSummaryLine errorTemplate) Fluent setter for errorTemplatewithOtherErrorsSummary(ProcessSummaryLine otherErrorsSummary) Fluent setter for otherErrorsSummarywithOtherWarningsSummary(ProcessSummaryLine otherWarningsSummary) Fluent setter for otherWarningsSummarywithUniqueErrorsToShow(int uniqueErrorsToShow) Fluent setter for uniqueErrorsToShowwithWarningTemplate(ProcessSummaryLine warningTemplate) Fluent setter for warningTemplate
-
Constructor Details
-
ProcessSummaryWarningsAndErrorsRollup
public ProcessSummaryWarningsAndErrorsRollup()
-
-
Method Details
-
build
-
addToList
-
addError
-
addWarning
-
countWarnings
public int countWarnings() -
countErrors
public int countErrors() -
resetWarnings
public void resetWarnings() -
getOtherErrorsSummary
Getter for otherErrorsSummary -
setOtherErrorsSummary
Setter for otherErrorsSummary -
withOtherErrorsSummary
public ProcessSummaryWarningsAndErrorsRollup withOtherErrorsSummary(ProcessSummaryLine otherErrorsSummary) Fluent setter for otherErrorsSummary -
getOtherWarningsSummary
Getter for otherWarningsSummary -
setOtherWarningsSummary
Setter for otherWarningsSummary -
withOtherWarningsSummary
public ProcessSummaryWarningsAndErrorsRollup withOtherWarningsSummary(ProcessSummaryLine otherWarningsSummary) Fluent setter for otherWarningsSummary -
getErrorTemplate
Getter for errorTemplate -
setErrorTemplate
Setter for errorTemplate -
withErrorTemplate
Fluent setter for errorTemplate -
getWarningTemplate
Getter for warningTemplate -
setWarningTemplate
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
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
Getter for errorSummaries
-