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 TypeMethodDescriptionvoid
addError
(String message, Serializable primaryKey) void
void
addWarning
(String message, Serializable primaryKey) int
int
boolean
Getter for doReplaceSingletonCountLinesWithSuffixOnlyGetter for errorSummariesGetter for errorTemplateGetter for otherErrorsSummaryGetter for otherWarningsSummaryint
Getter for uniqueErrorsToShowGetter for warningTemplatevoid
void
setDoReplaceSingletonCountLinesWithSuffixOnly
(boolean doReplaceSingletonCountLinesWithSuffixOnly) Setter for doReplaceSingletonCountLinesWithSuffixOnlyvoid
setErrorTemplate
(ProcessSummaryLine errorTemplate) Setter for errorTemplatevoid
setOtherErrorsSummary
(ProcessSummaryLine otherErrorsSummary) Setter for otherErrorsSummaryvoid
setOtherWarningsSummary
(ProcessSummaryLine otherWarningsSummary) Setter for otherWarningsSummaryvoid
setUniqueErrorsToShow
(int uniqueErrorsToShow) Setter for uniqueErrorsToShowvoid
setWarningTemplate
(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
-