|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.CmsMultiDialog
org.opencms.workplace.CmsReport
public class CmsReport
Provides an output window for a CmsReport.
Field Summary | |
---|---|
static java.lang.String |
PARAM_REPORT_CONTINUEKEY
Request parameter key for the type of the report. |
static java.lang.String |
PARAM_REPORT_TYPE
Request parameter key for the type of the report. |
static int |
REPORT_UPDATE_SIZE
Max. byte size of report output on client. |
static int |
REPORT_UPDATE_TIME
Update time for report reloading. |
Fields inherited from class org.opencms.workplace.CmsMultiDialog |
---|
DELIMITER_RESOURCES, PARAM_RESOURCELIST |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
---|---|
CmsReport(CmsJspActionElement jsp)
Public constructor. |
|
CmsReport(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
---|---|
java.lang.String |
dialogButtonsContinue(java.lang.String okAttrs,
java.lang.String cancelAttrs,
java.lang.String detailsAttrs)
Builds a button row with an "Ok", a "Cancel" and a "Details" button. |
java.lang.String |
dialogButtonsOkCancelDetails(java.lang.String okAttrs,
java.lang.String cancelAttrs,
java.lang.String detailsAttrs)
Builds a button row with an "Ok", a "Cancel" and a "Details" button. |
static java.lang.String |
generateCssStyle(CmsObject cms)
Returns the style sheets for the report. |
static java.lang.String |
generatePageEndExtended()
Generates the footer for the extended report view. |
static java.lang.String |
generatePageEndSimple()
Generates the footer for the simple report view. |
static java.lang.String |
generatePageStartExtended(CmsObject cms,
java.lang.String encoding)
Generates the header for the extended report view. |
static java.lang.String |
generatePageStartSimple(CmsWorkplace wp)
Generates the header for the simple report view. |
java.lang.String |
getParamRefreshWorkplace()
Returns if the workplace must be refreshed. |
java.lang.String |
getParamReportContinueKey()
Returns the key name which contains the localized message for the continue checkbox. |
java.lang.String |
getParamReportType()
Returns the type of this report. |
java.lang.String |
getParamThread()
Returns the Thread id to display in this report. |
java.lang.String |
getParamThreadHasNext()
Returns if another report is following this report. |
java.lang.String |
getReportUpdate()
Returns the part of the report that is ready for output. |
boolean |
hasError()
Returns if the report generated an error output. |
java.lang.String |
htmlStart()
Builds the start html of the page, including setting of DOCTYPE and inserting a header with the content-type. |
java.lang.String |
htmlStart(boolean loadStyles)
Builds the start html of the page, including setting of DOCTYPE and inserting a header with the content-type. |
static CmsReport |
initCmsReport(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Returns an initialized CmsReport instance that is read from the request attributes. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
boolean |
isAlive()
Returns true if the report Thread is still alive (i.e. running), false otherwise. |
boolean |
isSimpleReport()
Checks whether this is a simple report. |
java.lang.String |
pageHtml(int segment,
boolean loadStyles)
Builds the start html of the page, including setting of DOCTYPE and inserting a header with the content-type. |
protected boolean |
performDialogOperation()
Returns always true and does nothing else, has to be implemented. |
java.lang.String |
reportConclusionText()
Returns an optional conclusion text to be displayed below the report output. |
java.lang.String |
reportIntroductionText()
Returns an optional introduction text to be displayed above the report output. |
void |
setParamRefreshWorkplace(java.lang.String value)
Sets if the workplace must be refreshed. |
void |
setParamReportContinueKey(java.lang.String key)
Sets the key name which contains the localized message for the continue checkbox. |
void |
setParamReportType(java.lang.String value)
Sets the type of this report. |
void |
setParamThread(java.lang.String value)
Sets the Thread id to display in this report. |
void |
setParamThreadHasNext(java.lang.String value)
Sets if another report is following this report. |
Methods inherited from class org.opencms.workplace.CmsMultiDialog |
---|
addMultiOperationException, buildLockHeaderBox, buildResourceList, checkMultiOperationException, checkResourcePermissions, getParamResourcelist, getResourceList, getResourceListAsParam, isMultiOperation, isOperationOnFolder, setDialogTitle, setParamResource, setParamResourcelist |
Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PARAM_REPORT_CONTINUEKEY
public static final java.lang.String PARAM_REPORT_TYPE
public static final int REPORT_UPDATE_SIZE
public static final int REPORT_UPDATE_TIME
Constructor Detail |
---|
public CmsReport(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsReport(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page contextreq
- the JSP requestres
- the JSP responseMethod Detail |
---|
public static java.lang.String generateCssStyle(CmsObject cms)
cms
- the current users context
public static java.lang.String generatePageEndExtended()
public static java.lang.String generatePageEndSimple()
public static java.lang.String generatePageStartExtended(CmsObject cms, java.lang.String encoding)
cms
- the current users contextencoding
- the encoding string
public static java.lang.String generatePageStartSimple(CmsWorkplace wp)
wp
- the workplace instance
public static CmsReport initCmsReport(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
This method is used by dialog elements. The dialog elements do not initialize their own workplace class, but use the initialized instance of the "master" class. This is required to ensure that parameters of the "master" class can properly be kept on the dialog elements.
To prevent null pointer exceptions, an empty dialog is returned if nothing is found in the request attributes.
context
- the JSP page contextreq
- the JSP requestres
- the JSP response
public java.lang.String dialogButtonsContinue(java.lang.String okAttrs, java.lang.String cancelAttrs, java.lang.String detailsAttrs)
This row is displayed when the first report is running.
okAttrs
- optional attributes for the ok buttoncancelAttrs
- optional attributes for the cancel buttondetailsAttrs
- optional attributes for the details button
public java.lang.String dialogButtonsOkCancelDetails(java.lang.String okAttrs, java.lang.String cancelAttrs, java.lang.String detailsAttrs)
This row is used when a single report is running or after the first report has finished.
okAttrs
- optional attributes for the ok buttoncancelAttrs
- optional attributes for the cancel buttondetailsAttrs
- optional attributes for the details button
public java.lang.String getParamRefreshWorkplace()
"true"
if the workplace must be refreshed.public java.lang.String getParamReportContinueKey()
public java.lang.String getParamReportType()
public java.lang.String getParamThread()
public java.lang.String getParamThreadHasNext()
"true"
if another report is following this reportpublic java.lang.String getReportUpdate()
public boolean hasError()
public java.lang.String htmlStart()
This overloads the default method of the parent class.
htmlStart
in class CmsDialog
public java.lang.String htmlStart(boolean loadStyles)
This overloads the default method of the parent class.
loadStyles
- if true, the defaul style sheet will be loaded
public boolean isAlive()
public boolean isSimpleReport()
public java.lang.String pageHtml(int segment, boolean loadStyles)
This overloads the default method of the parent class.
segment
- the HTML segment (START / END)loadStyles
- if true, the defaul style sheet will be loaded
public java.lang.String reportConclusionText()
public java.lang.String reportIntroductionText()
public void setParamRefreshWorkplace(java.lang.String value)
value
- "true"
(String) if the workplace must be refreshed.public void setParamReportContinueKey(java.lang.String key)
key
- the key name which contains the localized message for the continue checkboxpublic void setParamReportType(java.lang.String value)
value
- the type of this reportpublic void setParamThread(java.lang.String value)
value
- the Thread id to display in this reportpublic void setParamThreadHasNext(java.lang.String value)
value
- "true"
if another report is following this reportprotected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsDialog
settings
- the workplace settingsrequest
- the current requestCmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
protected boolean performDialogOperation() throws CmsException
performDialogOperation
in class CmsMultiDialog
CmsException
- if operation was not successfulCmsMultiDialog.performDialogOperation()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |