Package org.opencms.report.wrapper
Class CmsReportWrapper
java.lang.Object
org.opencms.report.wrapper.CmsReportWrapper
Wrapper for writing reports.
It allows to write the same messages to multiple reports and has high-level interface for writing.
- Since:
- 12.0.0
- Version:
- $Revision: 1.0 $
- Author:
- Daniel Seidel
-
Constructor Summary
ConstructorDescriptionCmsReportWrapper
(I_CmsMessageBundle messages, Collection<I_CmsReport> reports) Constructor for the wrapper.CmsReportWrapper
(I_CmsMessageBundle messages, I_CmsReport... report) Constructor for the wrapper. -
Method Summary
Modifier and TypeMethodDescriptionvoid
reportAddWarning
(Object warning) Adds a warning to the report (invisible in the GUI).void
reportDefault
(String message, Object... params) Print a message in default style.void
reportDefaultNoBreak
(String message, Object... params) Print a message in default style without linebreak.void
reportFailed
(boolean withDots) Report failed.void
reportFailed
(String message, Object... params) Report failed.void
reportHeadline
(String message, Object... params) Print a message as headline.void
reportHeadlineNoBreak
(String message, Object... params) Print a message as headline.void
Prints an empty line.void
reportNote
(String message, Object... params) Print a message as note.void
reportNoteNoBreak
(String message, Object... params) Print a message as note without linebreak.void
reportOk
(boolean withDots) Report ok.void
Report ok.void
reportSkipped
(boolean withDots) Report ok.void
reportSkipped
(String message, Object... params) Report skipped.void
reportWarning
(String message, Object... params) Print a message in warning style.void
reportWarningNoBreak
(String message, Object... params) Print a message in warning style.
-
Constructor Details
-
CmsReportWrapper
Constructor for the wrapper.- Parameters:
messages
- the message bundle to read the printed messages from.reports
- the reports to write to.
-
CmsReportWrapper
Constructor for the wrapper.- Parameters:
messages
- the message bundle to read the printed messages from.report
- a sequence of reports to write the messages to.
-
-
Method Details
-
reportAddWarning
Adds a warning to the report (invisible in the GUI).- Parameters:
warning
- the warning to add.
-
reportDefault
Print a message in default style.- Parameters:
message
- the messageparams
- the parameters
-
reportDefaultNoBreak
Print a message in default style without linebreak.- Parameters:
message
- the messageparams
- the parameters
-
reportFailed
Report failed.- Parameters:
withDots
- with dots or only the word.
-
reportFailed
Report failed.- Parameters:
message
- the message to printparams
- parameters of the message
-
reportHeadline
Print a message as headline.- Parameters:
message
- the messageparams
- the parameters
-
reportHeadlineNoBreak
Print a message as headline.- Parameters:
message
- the messageparams
- the parameters
-
reportNewline
Prints an empty line. -
reportNote
Print a message as note.- Parameters:
message
- the messageparams
- the parameters
-
reportNoteNoBreak
Print a message as note without linebreak.- Parameters:
message
- the messageparams
- the parameters
-
reportOk
Report ok.- Parameters:
withDots
- with dots or only the word.
-
reportOk
Report ok.- Parameters:
message
- the message to printparams
- parameters of the message
-
reportSkipped
Report ok.- Parameters:
withDots
- with dots or only the word.
-
reportSkipped
Report skipped.- Parameters:
message
- the message to printparams
- parameters of the message
-
reportWarning
Print a message in warning style.- Parameters:
message
- the messageparams
- the parameters
-
reportWarningNoBreak
Print a message in warning style.- Parameters:
message
- the messageparams
- the parameters
-