Package org.netxms.client.reporting
Class ReportResult
java.lang.Object
org.netxms.client.reporting.ReportResult
Report execution result
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDefault constructor - only intended for use during XML deserializationReportResult(UUID jobId, UUID reportId, boolean carboneReport, Date executionTime, int userId, boolean success) Create new report result object.ReportResult(NXCPMessage msg, long baseId) Create report result object from NXCP message.
- 
Method SummaryModifier and TypeMethodDescriptionCreate XML from object.voidfillMessage(NXCPMessage msg, long baseId) Fill NXCP message with object's data.Get execution time.getJobId()Get job ID.Get report ID.intGet user ID.booleanReturns true if this report definition is intended for Carbone renderer instead of standard Jasper renderer.booleanGet success indicator.static ReportResultloadFromFile(File xmlFile) Create report result object from XML filevoidSave object as XML file.toString()
- 
Constructor Details- 
ReportResultprotected ReportResult()Default constructor - only intended for use during XML deserialization
- 
ReportResultpublic ReportResult(UUID jobId, UUID reportId, boolean carboneReport, Date executionTime, int userId, boolean success) Create new report result object.- Parameters:
- jobId- reporting job ID
- reportId- report ID
- carboneReport- true if report should be rendered with Carbone
- executionTime- execution time
- userId- user (initiator) ID
- success- success indicator
 
- 
ReportResultCreate report result object from NXCP message.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
 
- 
- 
Method Details- 
loadFromFileCreate report result object from XML file- Parameters:
- xmlFile- file containing XML document
- Returns:
- reporting job parameters object
- Throws:
- Exception- if de-serialization is not possible
 
- 
fillMessageFill NXCP message with object's data.- Parameters:
- msg- NXCP message
- baseId- base field ID
 
- 
createXmlCreate XML from object.- Returns:
- XML document
- Throws:
- Exception- if the schema for the object is not valid
 
- 
saveAsXmlSave object as XML file.- Parameters:
- file- destination file
- Throws:
- Exception- if the schema for the object is not valid or write operation failed
 
- 
getJobIdGet job ID.- Returns:
- job ID
 
- 
getReportIdGet report ID.- Returns:
- report ID
 
- 
getExecutionTimeGet execution time.- Returns:
- execution time
 
- 
getUserIdpublic int getUserId()Get user ID.- Returns:
- user ID
 
- 
isSuccesspublic boolean isSuccess()Get success indicator.- Returns:
- true if execution was successful
 
- 
isCarboneReportpublic boolean isCarboneReport()Returns true if this report definition is intended for Carbone renderer instead of standard Jasper renderer.- Returns:
- true if this report definition is intended for Carbone renderer
 
- 
toString
 
-