public class Report extends XMLRequest
Constructor and Description |
---|
Report(int runID,
java.lang.String reportType)
Constructs a
ReportContent using the specified runID and reportType . |
Modifier and Type | Method and Description |
---|---|
protected void |
createRequest(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element request,
ConnectionAttributes sessionInfo)
Creates the XML Document for the request.
|
void |
firstPage()
Selects the first page of the report.
|
int |
getCurrentPage()
Returns the number of the current page or 0 if this request has not been sent.
|
int |
getNumberOfPages()
Returns the number of pages for this report 0 if this request has not been sent.
|
java.lang.String |
getReport()
Returns the content of this page or
null if the request has not been sent. |
java.lang.String |
getReportType()
Returns the report type.
|
protected java.lang.String |
getSrc()
Returns the request source.
|
protected void |
handleContent(com.uc4.util.XMLDocument doc,
ConnectionAttributes session) |
protected boolean |
isAllowedInClientZero()
This method is used internally.
|
void |
lastPage()
Selects the last page.
|
void |
nextPage(int page)
Selects the next page of the report.
|
void |
previousPage(int page)
Selects the previous page.
|
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
public Report(int runID, java.lang.String reportType)
ReportContent
using the specified runID
and reportType
.runID
- RunIDreportType
- ReportTypepublic java.lang.String getReportType()
public void firstPage()
public void nextPage(int page)
currentPage
must be filled with old page number.page
- Number of the current pagepublic void previousPage(int page)
currentPage
must be filled with old page number.page
- Number of the current pagepublic void lastPage()
protected java.lang.String getSrc()
XMLRequest
getSrc
in class XMLRequest
protected void createRequest(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request, ConnectionAttributes sessionInfo)
XMLRequest
createRequest
in class XMLRequest
doc
- Document, used to create new Elementsrequest
- Request Element - classes append information to this request elementsessionInfo
- Information about the sessionprotected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
handleContent
in class XMLRequest
public int getNumberOfPages()
public int getCurrentPage()
public java.lang.String getReport()
null
if the request has not been sent.protected boolean isAllowedInClientZero()
XMLRequest
XMLRequest
is allowed in client 0.
The default implementation returns false
, subclasses may override.isAllowedInClientZero
in class XMLRequest
true
if this request is allowed in client 0, false
otherwise