public final class ScheduledReport extends Object implements IScheduledReport
IScheduledReport.
Copyright (c) SAP AG 2003
| Modifier and Type | Method and Description |
|---|---|
IScheduledReport |
create(IResourceContext context)
Persist the scheduled report as a new resource and return a scheduled report instance
where getResource() returns the resource the scheduled report was persisted in.
|
static ScheduledReport |
getInstance(String name,
Date schedule,
ScheduleRepeat repeat,
Date lastExecuted,
IReportInput input,
boolean active,
IResource resource) |
static ScheduledReport |
getInstance(String name,
IReportInput input) |
Date |
getLastExecuted()
Get date/time when schedule was last executed.
|
String |
getName()
Get name of scheduled report.
|
Date |
getNextSchedule()
Get date/time when report execution is next due.
|
ScheduleRepeat |
getRepeating()
Get repeating interval for repeated execution of report.
|
IReportInput |
getReportInput()
Get the input for the scheduled report
|
IResource |
getResource()
Get the resource, this scheduled report, is persisted in.
|
Date |
getSchedule()
Get date/time when report execution is/was scheduled.
|
boolean |
isActive()
Determine if scheduled report is activated.
|
IScheduledReport |
setActive(boolean active)
Create a new scheduled report with given active state.
|
IScheduledReport |
setInput(IReportInput newinput)
Create a new scheduled report with given input.
|
IScheduledReport |
setLastExecuted(Date date)
Create a new scheduled report with given last execution date.
|
IScheduledReport |
setName(String newname)
Create a new scheduled report with given name set.
|
IScheduledReport |
setRepeating(ScheduleRepeat newrepeat)
Create a new scheduled report with given repeat interval.
|
IScheduledReport |
setSchedule(Date newdate)
Create a new scheduled report with given schedule date.
|
IScheduledReport |
update(IResource resource)
Persist the scheduled report and return a scheduled report instance
where getResource() returns the resource the scheduled report was persisted in.
|
public static ScheduledReport getInstance(String name, IReportInput input)
public static ScheduledReport getInstance(String name, Date schedule, ScheduleRepeat repeat, Date lastExecuted, IReportInput input, boolean active, IResource resource)
public String getName()
IScheduledReportgetName in interface IScheduledReportpublic Date getSchedule()
IScheduledReportnull is returned. The date reflects when
the report was first scheduled for execution. User getNextScheduled()
to retrieve the time of the next scheduled execution.getSchedule in interface IScheduledReportpublic ScheduleRepeat getRepeating()
IScheduledReportgetRepeating in interface IScheduledReportpublic Date getLastExecuted()
IScheduledReportnull is returned.getLastExecuted in interface IScheduledReportnullpublic boolean isActive()
IScheduledReportisActive in interface IScheduledReportpublic IReportInput getReportInput()
IScheduledReportgetReportInput in interface IScheduledReportpublic IResource getResource()
IScheduledReportnull
of schedule is not persisted.getResource in interface IScheduledReportnull if report is not persisted yetpublic IScheduledReport setName(String newname)
IScheduledReportsetName in interface IScheduledReportnewname - of new scheduled reportpublic IScheduledReport setInput(IReportInput newinput)
IScheduledReportsetInput in interface IScheduledReportnewinput - of new scheduled reportpublic IScheduledReport setSchedule(Date newdate)
IScheduledReportsetSchedule in interface IScheduledReportnewdate - date of new scheduled reportpublic IScheduledReport setLastExecuted(Date date)
IScheduledReportsetLastExecuted in interface IScheduledReportdate - of last schedule executionpublic IScheduledReport setRepeating(ScheduleRepeat newrepeat)
IScheduledReportsetRepeating in interface IScheduledReportnewrepeat - repeat of new scheduled reportpublic IScheduledReport setActive(boolean active)
IScheduledReportsetActive in interface IScheduledReportactive - state of new scheduled reportpublic IScheduledReport update(IResource resource) throws ResourceException
IScheduledReportupdate in interface IScheduledReportresource - to be overwritten with setting from scheduled reportResourceException - if an error occurredpublic IScheduledReport create(IResourceContext context) throws ResourceException
IScheduledReportcreate in interface IScheduledReportcontext - The resource contextResourceException - if an error occurredpublic Date getNextSchedule()
IScheduledReportnull is returned.getNextSchedule in interface IScheduledReport| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
Copyright 2017 SAP AG Complete Copyright Notice