Package org.netxms.client.reporting
Class ReportingJob
- java.lang.Object
-
- org.netxms.client.reporting.ReportingJob
-
public class ReportingJob extends Object
Reporting job
-
-
Field Summary
Fields Modifier and Type Field Description static intTYPE_DAILYstatic intTYPE_MONTHLYstatic intTYPE_ONCEstatic intTYPE_WEEKLY
-
Constructor Summary
Constructors Constructor Description ReportingJob(org.netxms.base.NXCPMessage msg, long varId)Create reportingJob object from NXCP messageReportingJob(ReportDefinition report)Create reportingJob
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComments()Get commentsintgetDaysOfMonth()Get days of month bit maskintgetDaysOfWeek()Get days of week bit maskList<String>getEmailRecipients()UUIDgetJobId()Get job IDReportRenderFormatgetRenderFormat()UUIDgetReportId()Get unique report IDStringgetReportName()DategetStartTime()Get job start timeintgetType()Get job typeintgetUserId()Get user IDbooleanisNotifyOnCompletion()Check if notification on completion is onvoidsetComments(String comments)Set commentsvoidsetDaysOfMonth(int daysOfMonth)Set days of month bit maskvoidsetDaysOfWeek(int daysOfWeek)Set days of week bit maskvoidsetEmailRecipients(List<String> emailRecipients)voidsetNotifyOnCompletion(boolean notifyOnCompletion)Set notification on completion flagvoidsetRenderFormat(ReportRenderFormat renderFormat)voidsetStartTime(Date startTime)Set job start timevoidsetType(int type)Set job typeStringtoString()
-
-
-
Field Detail
-
TYPE_ONCE
public static final int TYPE_ONCE
- See Also:
- Constant Field Values
-
TYPE_DAILY
public static final int TYPE_DAILY
- See Also:
- Constant Field Values
-
TYPE_WEEKLY
public static final int TYPE_WEEKLY
- See Also:
- Constant Field Values
-
TYPE_MONTHLY
public static final int TYPE_MONTHLY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ReportingJob
public ReportingJob(ReportDefinition report)
Create reportingJob- Parameters:
report- report definition object
-
ReportingJob
public ReportingJob(org.netxms.base.NXCPMessage msg, long varId)Create reportingJob object from NXCP message- Parameters:
msg-varId- base field id
-
-
Method Detail
-
getRenderFormat
public ReportRenderFormat getRenderFormat()
- Returns:
- the renderFormat
-
setRenderFormat
public void setRenderFormat(ReportRenderFormat renderFormat)
- Parameters:
renderFormat- the renderFormat to set
-
setEmailRecipients
public void setEmailRecipients(List<String> emailRecipients)
- Parameters:
emailRecipients- the emailRecipients to set
-
getReportId
public UUID getReportId()
Get unique report ID- Returns:
- unique report ID
-
getReportName
public String getReportName()
- Returns:
- the reportName
-
getJobId
public UUID getJobId()
Get job ID- Returns:
- job ID
-
getDaysOfWeek
public int getDaysOfWeek()
Get days of week bit mask- Returns:
- days of week bit mask
-
setDaysOfWeek
public void setDaysOfWeek(int daysOfWeek)
Set days of week bit mask- Parameters:
daysOfWeek- new days of week bit mask
-
getDaysOfMonth
public int getDaysOfMonth()
Get days of month bit mask- Returns:
- days of month bit mask
-
setDaysOfMonth
public void setDaysOfMonth(int daysOfMonth)
Set days of month bit mask- Parameters:
daysOfMonth- new days of month bit mask
-
getUserId
public int getUserId()
Get user ID- Returns:
- user ID
-
getType
public int getType()
Get job type- Returns:
- job type
-
setType
public void setType(int type)
Set job type- Parameters:
type- new job type
-
getStartTime
public Date getStartTime()
Get job start time- Returns:
- job start time
-
setStartTime
public void setStartTime(Date startTime)
Set job start time- Parameters:
startTime- job start time
-
getComments
public String getComments()
Get comments- Returns:
- comments
-
setComments
public void setComments(String comments)
Set comments- Parameters:
comments- comments
-
isNotifyOnCompletion
public boolean isNotifyOnCompletion()
Check if notification on completion is on- Returns:
- true if notification on completion is on
-
setNotifyOnCompletion
public void setNotifyOnCompletion(boolean notifyOnCompletion)
Set notification on completion flag- Parameters:
notifyOnCompletion- new notification on completion flag
-
-