Package org.netxms.client.reporting
Class ReportingJob
java.lang.Object
org.netxms.client.reporting.ReportingJob
Reporting job
- 
Constructor SummaryConstructorsConstructorDescriptionReportingJob(NXCPMessage msg, long baseId) Create reporting job object from NXCP messageReportingJob(ReportDefinition report) Create reporting job
- 
Method SummaryModifier and TypeMethodDescriptionvoidfillMessage(NXCPMessage msg) Fill NXCP message with job data.getExecutionParameter(String name) Get value of single reporting job execution parameter.Get all reporting job execution parameters.Get unique report IDgetTask()Get underlying scheduled taskbooleanCheck if notification on completion is onPrepare underlying scheduled task for create or update API call.voidsetEmailRecipients(List<String> emailRecipients) voidsetExecutionParameter(String name, String value) Set reporting job execution parameter.voidsetNotifyOnCompletion(boolean notifyOnCompletion) Set notification on completion flagvoidsetRenderFormat(ReportRenderFormat renderFormat) 
- 
Constructor Details- 
ReportingJobCreate reporting job- Parameters:
- report- report definition object
 
- 
ReportingJobCreate reporting job object from NXCP message- Parameters:
- msg- NXCP message
- baseId- base field id
 
 
- 
- 
Method Details- 
fillMessageFill NXCP message with job data. Will serialize execution parameters and update underlying scheduled task.- Parameters:
- msg- NXCP message
- Throws:
- NXCException- if execution parameters serialization fails
 
- 
getRenderFormat- Returns:
- the renderFormat
 
- 
setRenderFormat- Parameters:
- renderFormat- the renderFormat to set
 
- 
getEmailRecipients- Returns:
- the emailRecipients
 
- 
setEmailRecipients- Parameters:
- emailRecipients- the emailRecipients to set
 
- 
getReportIdGet unique report ID- Returns:
- unique report ID
 
- 
isNotifyOnCompletionpublic boolean isNotifyOnCompletion()Check if notification on completion is on- Returns:
- true if notification on completion is on
 
- 
setNotifyOnCompletionpublic void setNotifyOnCompletion(boolean notifyOnCompletion) Set notification on completion flag- Parameters:
- notifyOnCompletion- new notification on completion flag
 
- 
getExecutionParametersGet all reporting job execution parameters. Any changes to returned map will be reflected in job object.- Returns:
- all reporting job execution parameters
 
- 
getExecutionParameterGet value of single reporting job execution parameter.- Parameters:
- name- parameter name
- Returns:
- parameter value or null
 
- 
setExecutionParameterSet reporting job execution parameter.- Parameters:
- name- parameter name
- value- parameter value
 
- 
prepareTaskPrepare underlying scheduled task for create or update API call.- Returns:
- underlying scheduled task
- Throws:
- Exception- if task parameter serialization fails
 
- 
getTaskGet underlying scheduled task- Returns:
- underlying scheduled task
 
 
-