Package com.uc4.communication.requests
Class Report
java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.Report
Gets a page of a report.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Creates the XML Document for the request.voidSelects the first page of the report.intReturns the number of the current page or 0 if this request has not been sent.intReturns the number of pages for this report 0 if this request has not been sent.Returns the content of this page ornullif the request has not been sent.Returns the report type.protected StringgetSrc()Returns the request source.protected voidhandleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) Sub classes extract the values from the XML document and provide public getter methods.protected booleanThis method is used internally.voidlastPage()Selects the last page.voidnextPage(int page) Selects the next page of the report.voidpreviousPage(int page) Selects the previous page.voidspecificPage(int page) Sets a specific page to request The parametercurrentPagemust be filled with the required page number.Methods inherited from class com.uc4.communication.requests.XMLRequest
assertClientZero, assertServerVersion, checkClient, checkID, checkLnr, checkNull, checkSelStatisticsPrivilege, checkSystemOverviewPrivilege, checkUC4ObjectEmptyName, checkUC4ObjectName, createNATFor, createNATRequest, emptyAttributes, getAllMessageBoxes, getMessageBox, getRequestID, handleResponse, ignoreMessageBox, send, setMessageBox, showQuarantineNotification
-
Constructor Details
-
Report
Constructs aReportContentusing the specifiedrunIDandreportType.- Parameters:
runID- RunIDreportType- ReportType
-
-
Method Details
-
getReportType
Returns the report type.- Activation: ACT
- Agent upgrade: CAU
- Runtime report: LOG
- Job, Job report: REP
- Job, SYSLST: LST
- Job, structured Job report: SREP
- Post Process: POST
- Revision script: REV0
- Revision JCL: REV1
- Revision object: REV2
- Revision client: CLNT
- Sync: OBJ
- SAP Jobs, SAP System Log: SLOG
- Returns:
- Abbreviation for the report type
-
firstPage
public void firstPage()Selects the first page of the report. -
nextPage
public void nextPage(int page) Selects the next page of the report. The parametercurrentPagemust be filled with old page number.- Parameters:
page- Number of the current page
-
specificPage
public void specificPage(int page) Sets a specific page to request The parametercurrentPagemust be filled with the required page number.- Parameters:
page- Number of the requested page (1-based)
-
previousPage
public void previousPage(int page) Selects the previous page. The parametercurrentPagemust be filled with old page number.- Parameters:
page- Number of the current page
-
lastPage
public void lastPage()Selects the last page. -
getSrc
Description copied from class:XMLRequestReturns the request source. This method is used internally.- Specified by:
getSrcin classXMLRequest- Returns:
- Source
-
createRequest
protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo) Description copied from class:XMLRequestCreates the XML Document for the request. This method is used internally.- Specified by:
createRequestin classXMLRequest- Parameters:
doc- Document, used to create new Elementsrequest- Request Element - classes append information to this request elementsessionInfo- Information about the session
-
handleContent
Description copied from class:XMLRequestSub classes extract the values from the XML document and provide public getter methods.- Overrides:
handleContentin classXMLRequest- Parameters:
doc- XML Documentsession- Info about the user session
-
getNumberOfPages
public int getNumberOfPages()Returns the number of pages for this report 0 if this request has not been sent.- Returns:
- pages
-
getCurrentPage
public int getCurrentPage()Returns the number of the current page or 0 if this request has not been sent.- Returns:
- page number
-
getReport
Returns the content of this page ornullif the request has not been sent.- Returns:
- page content
-
isAllowedInClientZero
protected boolean isAllowedInClientZero()Description copied from class:XMLRequestThis method is used internally. Tests if thisXMLRequestis allowed in client 0. The default implementation returnsfalse, subclasses may override.- Overrides:
isAllowedInClientZeroin classXMLRequest- Returns:
trueif this request is allowed in client 0,falseotherwise
-