public class ReportingJob extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_DAILY |
static int |
TYPE_MONTHLY |
static int |
TYPE_ONCE |
static int |
TYPE_WEEKLY |
| Constructor and Description |
|---|
ReportingJob(NXCPMessage msg,
long varId)
Create reportingJob object from NXCP message
|
ReportingJob(ReportDefinition report)
Create reportingJob
|
| Modifier and Type | Method and Description |
|---|---|
String |
getComments()
Get comments
|
int |
getDaysOfMonth()
Get days of month bit mask
|
int |
getDaysOfWeek()
Get days of week bit mask
|
List<String> |
getEmailRecipients() |
UUID |
getJobId()
Get job ID
|
ReportRenderFormat |
getRenderFormat() |
UUID |
getReportId()
Get unique report ID
|
String |
getReportName() |
Date |
getStartTime()
Get job start time
|
int |
getType()
Get job type
|
int |
getUserId()
Get user ID
|
boolean |
isNotifyOnCompletion()
Check if notification on completion is on
|
void |
setComments(String comments)
Set comments
|
void |
setDaysOfMonth(int daysOfMonth)
Set days of month bit mask
|
void |
setDaysOfWeek(int daysOfWeek)
Set days of week bit mask
|
void |
setEmailRecipients(List<String> emailRecipients) |
void |
setNotifyOnCompletion(boolean notifyOnCompletion)
Set notification on completion flag
|
void |
setRenderFormat(ReportRenderFormat renderFormat) |
void |
setStartTime(Date startTime)
Set job start time
|
void |
setType(int type)
Set job type
|
String |
toString() |
public static final int TYPE_ONCE
public static final int TYPE_DAILY
public static final int TYPE_WEEKLY
public static final int TYPE_MONTHLY
public ReportingJob(ReportDefinition report)
report - report definition objectpublic ReportingJob(NXCPMessage msg, long varId)
msg - varId - base field idpublic ReportRenderFormat getRenderFormat()
public void setRenderFormat(ReportRenderFormat renderFormat)
renderFormat - the renderFormat to setpublic void setEmailRecipients(List<String> emailRecipients)
emailRecipients - the emailRecipients to setpublic UUID getReportId()
public String getReportName()
public UUID getJobId()
public int getDaysOfWeek()
public void setDaysOfWeek(int daysOfWeek)
daysOfWeek - new days of week bit maskpublic int getDaysOfMonth()
public void setDaysOfMonth(int daysOfMonth)
daysOfMonth - new days of month bit maskpublic int getUserId()
public int getType()
public void setType(int type)
type - new job typepublic Date getStartTime()
public void setStartTime(Date startTime)
startTime - job start timepublic String getComments()
public void setComments(String comments)
comments - commentspublic boolean isNotifyOnCompletion()
public void setNotifyOnCompletion(boolean notifyOnCompletion)
notifyOnCompletion - new notification on completion flagCopyright © 2018. All rights reserved.