|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.opencms.report.A_CmsReport
org.opencms.report.CmsHtmlReport
org.opencms.report.CmsPrintStreamReport
org.opencms.publish.CmsPublishReport
public class CmsPublishReport
Report class used for the publish operations.
It stores nothing. It just prints everything to a temporary file.
| Field Summary | |
|---|---|
protected java.io.ByteArrayOutputStream |
m_outputStream
The output stream. |
| Fields inherited from class org.opencms.report.CmsHtmlReport |
|---|
LINEBREAK, LINEBREAK_TRADITIONAL |
| Fields inherited from interface org.opencms.report.I_CmsReport |
|---|
FORMAT_DEFAULT, FORMAT_ERROR, FORMAT_HEADLINE, FORMAT_NOTE, FORMAT_OK, FORMAT_WARNING, REPORT_TYPE_EXTENDED, REPORT_TYPE_SIMPLE |
| Constructor Summary | |
|---|---|
protected |
CmsPublishReport(java.util.Locale locale)
Constructs a new publish report using the provided locale for the output language. |
| Method Summary | |
|---|---|
void |
addError(java.lang.Object obj)
Adds an error object to the list of errors that occurred during the report. |
void |
addWarning(java.lang.Object obj)
Adds a warning object to the list of warnings that occurred during the report. |
protected static CmsPrintStreamReport |
decorate(I_CmsReport report)
Returns a publish report instance that writes to the given report as well as to the given temporary file. |
byte[] |
getContents()
Returns the contents of the publish report as byte array. |
java.util.List |
getErrors()
Returns a list of all errors that occurred during the report. |
java.lang.String |
getReportUpdate()
Updates this report, this processes all new output added since the last call to this method. |
java.util.List |
getWarnings()
Returns a list of all warnings that occurred during the report. |
void |
print(CmsMessageContainer container)
Prints a localized message to the report. |
void |
print(CmsMessageContainer container,
int format)
Prints a localized message to the report, using the indicated formatting. |
void |
println()
Adds a line break to the report. |
void |
println(CmsMessageContainer container)
Prints a localized message to the report. |
void |
println(CmsMessageContainer container,
int format)
Prints a localized message to the report, using the indicated formatting. |
void |
println(java.lang.Throwable t)
Adds an Exception to the report, ensuring that the Exception content is processed to generate a valid output esp. for HTML pages. |
void |
printMessageWithParam(CmsMessageContainer container,
java.lang.Object param)
Prints a localized message followed by a parametera and dots to the report. |
void |
printMessageWithParam(int m,
int n,
CmsMessageContainer container,
java.lang.Object param)
Convenience method to print a localized message, followed by a parameter and dots to the report. |
void |
resetRuntime()
Resets the runtime to 0 milliseconds. |
| Methods inherited from class org.opencms.report.CmsPrintStreamReport |
|---|
close, finish, getLineBreak, print, start |
| Methods inherited from class org.opencms.report.CmsHtmlReport |
|---|
isWriteHtml |
| Methods inherited from class org.opencms.report.A_CmsReport |
|---|
formatRuntime, getLastEntryTime, getLocale, getMessages, getRuntime, getSiteRoot, hasError, hasWarning, init, print, println, println, removeSiteRoot, setLastEntryTime |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.io.ByteArrayOutputStream m_outputStream
| Constructor Detail |
|---|
protected CmsPublishReport(java.util.Locale locale)
locale - the locale to use for the output language| Method Detail |
|---|
protected static CmsPrintStreamReport decorate(I_CmsReport report)
report - the report to decorate
public void addError(java.lang.Object obj)
I_CmsReport
addError in interface I_CmsReportaddError in class A_CmsReportobj - the error objectA_CmsReport.addError(java.lang.Object)public void addWarning(java.lang.Object obj)
I_CmsReport
addWarning in interface I_CmsReportaddWarning in class A_CmsReportobj - the error objectA_CmsReport.addWarning(java.lang.Object)public byte[] getContents()
public java.util.List getErrors()
I_CmsReport
getErrors in interface I_CmsReportgetErrors in class A_CmsReportA_CmsReport.getErrors()public java.lang.String getReportUpdate()
I_CmsReportThis is only required in case the output is written to a HTML page, if the shell output is used, this will just return an empty String.
getReportUpdate in interface I_CmsReportgetReportUpdate in class CmsPrintStreamReportCmsPrintStreamReport.getReportUpdate()public java.util.List getWarnings()
I_CmsReport
getWarnings in interface I_CmsReportgetWarnings in class A_CmsReportA_CmsReport.getWarnings()public void print(CmsMessageContainer container)
I_CmsReport
print in interface I_CmsReportprint in class A_CmsReportcontainer - the String to addA_CmsReport.print(org.opencms.i18n.CmsMessageContainer)
public void print(CmsMessageContainer container,
int format)
I_CmsReport
Use the contants starting with FORMAT from this interface
to indicate which formatting to use.
print in interface I_CmsReportprint in class A_CmsReportcontainer - the String to addformat - the formatting to use for the outputA_CmsReport.print(org.opencms.i18n.CmsMessageContainer, int)public void println()
I_CmsReport
println in interface I_CmsReportprintln in class CmsPrintStreamReportCmsPrintStreamReport.println()public void println(CmsMessageContainer container)
I_CmsReport
println in interface I_CmsReportprintln in class A_CmsReportcontainer - the message container to addA_CmsReport.println(org.opencms.i18n.CmsMessageContainer)
public void println(CmsMessageContainer container,
int format)
I_CmsReport
Use the contants starting with FORMAT from this interface
to indicate which formatting to use.
println in interface I_CmsReportprintln in class A_CmsReportcontainer - the message container to addformat - the formatting to use for the outputA_CmsReport.println(org.opencms.i18n.CmsMessageContainer, int)public void println(java.lang.Throwable t)
I_CmsReportThe exception will be stored and the output will later be processed in a special way.
println in interface I_CmsReportprintln in class CmsPrintStreamReportt - the exception to addCmsPrintStreamReport.println(java.lang.Throwable)
public void printMessageWithParam(CmsMessageContainer container,
java.lang.Object param)
I_CmsReport
printMessageWithParam in interface I_CmsReportprintMessageWithParam in class A_CmsReportcontainer - the Message to addparam - the Parameter to addA_CmsReport.printMessageWithParam(org.opencms.i18n.CmsMessageContainer, java.lang.Object)
public void printMessageWithParam(int m,
int n,
CmsMessageContainer container,
java.lang.Object param)
I_CmsReportThe output follows the pattern: ( 3 / 8 ) Deleting filename.txt ...
printMessageWithParam in interface I_CmsReportprintMessageWithParam in class A_CmsReportm - the number of the report outputn - the total number of report outputscontainer - the Message to addparam - the Parameter to addA_CmsReport.printMessageWithParam(int, int, org.opencms.i18n.CmsMessageContainer, java.lang.Object)public void resetRuntime()
I_CmsReport
resetRuntime in interface I_CmsReportresetRuntime in class A_CmsReportA_CmsReport.resetRuntime()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||