|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ISchedulingInfo
The ISchedulingInfo interface contains a collection of properties used by the
CMS to store scheduling information (for example, schedule start time information,
schedule destination information, schedule dependency information). All objects that can
be scheduled have the same scheduling properties; however, these objects have their own set
of ProcessingInfo Object properties.
In SAP BusinessObjects Enterprise, only Report objects can be scheduled. Note that if the InfoObject
cannot be scheduled, the object will return null. Also note that when an object is scheduled,
it uses the time zone specified in the set and get TimeZone methods.
| Nested Class Summary | |
|---|---|
static interface |
ISchedulingInfo.GroupChoice
This interface contains constants which specify the server group on which to run scheduled reports. |
static interface |
ISchedulingInfo.ScheduleFlags
This interface defines the instance status flags. |
static interface |
ISchedulingInfo.ScheduleOutcome
This interface contains constants which indicate the result of a job after it has finished processing. |
static interface |
ISchedulingInfo.ScheduleStatus
This interface contains constants which specify the current status of the scheduled job. |
| Method Summary | |
|---|---|
IDestination |
getAlertDestination()
Returns the alert destination. |
java.util.Date |
getBeginDate()
Returns the begin date on which the object will be scheduled. |
ICalendarRunDays |
getCalendarRunDays()
Returns a collection of calendar days that determine when the schedule will run. |
int |
getCalendarTemplate()
Returns the id of the calendar template used for schedule. |
IEvents |
getDependants()
Returns the collection of events that are dependant on the object being triggered. |
IEvents |
getDependencies()
Returns the collection of dependency events that the object waits for before being triggered. |
IDestination |
getDestination()
Deprecated. Use getDestinations instead |
IDestinations |
getDestinations()
Returns a collection of the scheduled object's configured destinations. |
IDestinations |
getDistributedDestinations()
Returns the scheduled object's distributed destination information in a collection. |
java.util.Date |
getEndDate()
Returns the end date on which the object will be scheduled. |
java.lang.String |
getErrorMessage()
Returns the error message for a failed job. |
java.lang.String |
getErrorMessage(java.util.Locale locale)
Returns a localized error message for a failed job. |
int |
getFlags()
Returns the instance status. |
int |
getIntervalDays()
Returns the number of days between job processing when using a daily schedule. |
int |
getIntervalHours()
Returns the number of hours that are set between job processing when scheduling hourly. |
int |
getIntervalMinutes()
Returns the number of minutes that are set between job processing when scheduling hourly. |
int |
getIntervalMonths()
Returns the number of months that are set between job processing when scheduling monthly. |
int |
getIntervalNthDay()
Returns the day of the month to process the job when scheduling every nth day. |
java.util.Set |
getMultiPassObjects()
Returns the set of user/usergroup IDs on the schedule for multipass. |
INotifications |
getNotifications()
Returns the schedule notifications. |
int |
getOutcome()
Returns the result of a job after it has finished processing. |
int |
getRetriesAllowed()
Returns the maximum number of retries allowed. |
int |
getRetryInterval()
Returns the number of seconds between retries. |
boolean |
getRunOnOriginatingCluster()
Returns true if the scheduled job is set to run on the originating cluster. |
boolean |
getRunRemotely()
Returns true if the scheduled job will run remotely. |
int |
getScheduleOnBehalfOf()
Returns the ID of the user who the report is scheduled on behalf of. |
int |
getServerGroup()
Returns the ID of the server group that will be used to process scheduled report objects. |
int |
getServerGroupChoice()
Returns how SAP BusinessObjects Enterprise will choose the server group on which to process scheduled reports. |
int |
getStatus()
Returns the current status of the scheduled job. |
java.util.TimeZone |
getTimeZone()
Returns the time zone that is used to schedule a job. |
int |
getType()
Get the frequency type of the schedule (For example: hourly, monthly). |
boolean |
isRightNow()
Returns true if the scheduled job is set to run immediately. |
IProperties |
properties()
Returns an enumeration of the properties set within this property bag. |
void |
setBeginDate(java.util.Date dtBeginDate)
Sets the begin date on which the object will be scheduled. |
void |
setCalendarTemplate(int templateId)
Sets the id of the calendar template used for schedule. |
void |
setEndDate(java.util.Date dtEndDate)
Sets the end date on which the object will be scheduled. |
void |
setFlags(int lFlags)
Sets the instance status. |
void |
setIntervalDays(int newIntervalDays)
Sets the number of days between job processing when using a daily schedule. |
void |
setIntervalHours(int newVal)
Sets the number of hours that are set between job processing when scheduling hourly. |
void |
setIntervalMinutes(int newVal)
Sets the number of minutes that are set between job processing when scheduling hourly. |
void |
setIntervalMonths(int newVal)
Returns the number of months that are set between job processing when scheduling monthly. |
void |
setIntervalNthDay(int newVal)
Sets the day of the month to process the job when scheduling every nth day. |
void |
setRetriesAllowed(int newVal)
Sets the maximum number of retries allowed. |
void |
setRetryInterval(int newVal)
Sets the number of seconds between retries. |
void |
setRightNow(boolean rightNow)
Sets the scheduled job to run immediately. |
void |
setRunOnOriginatingCluster(boolean run)
Sets the scheduled job to run on the originating cluster. |
void |
setScheduleOnBehalfOf(int newScheduleOnBehalfOf)
Sets the user who the report is scheduled on behalf of. |
void |
setServerGroup(int newVal)
Sets the ID of the server group that will be used to process scheduled report objects. |
void |
setServerGroupChoice(int newVal)
Specifies how SAP BusinessObjects Enterprise will choose the server group on which to process scheduled reports. |
void |
setTimeZone(java.util.TimeZone timezone)
Set the time zone that is used to schedule a job. |
void |
setType(int type)
Sets the frequency type of the schedule (For example: hourly, monthly). |
| Method Detail |
|---|
java.util.Date getBeginDate()
Returns the begin date on which the object will be scheduled.
Date object containing the begin date on which the object
will be scheduled.void setBeginDate(java.util.Date dtBeginDate)
Sets the begin date on which the object will be scheduled.
dtBeginDate - A Date object specifying the begin date on which
the object will be scheduled.IEvents getDependants()
Returns the collection of events that are dependant on the object being triggered. This method allows the dependants to be viewed or modified.
IEvents object containing the dependant events to be viewed or
modified.IEvents getDependencies()
Returns the collection of dependency events that the object waits for before being triggered. This method allows the dependencies to be viewed or modified.
IEvents object containing the dependencies to be viewed or
modified.java.util.Date getEndDate()
Returns the end date on which the object will be scheduled.
Date object specifying the end date on which the object
will be scheduled.void setEndDate(java.util.Date dtEndDate)
Sets the end date on which the object will be scheduled.
dtEndDate - A Date object specifying the end date on which
the object will be scheduled.int getFlags()
Returns the instance status.
int of constant type ScheduleFlags specifying the
instance status.ISchedulingInfo.ScheduleFlagsvoid setFlags(int lFlags)
Sets the instance status.
lFlags - An int of constant type ScheduleFlags specifying the
instance status.ISchedulingInfo.ScheduleFlagsint getIntervalHours()
Returns the number of hours that are set between job processing when scheduling hourly. This is only relevant when using SCHEDULE_TYPE_HOURLY.
int specifying the number of hours that are set between job
processing when scheduling hourly.void setIntervalHours(int newVal)
Sets the number of hours that are set between job processing when scheduling hourly. This is only relevant when using SCHEDULE_TYPE_HOURLY.
newVal - An int specifying the number of hours that are set between job
processing when scheduling hourly.int getIntervalMinutes()
Returns the number of minutes that are set between job processing when scheduling hourly. This is only relevant when using SCHEDULE_TYPE_HOURLY and is used in conjunction with set and get IntervalHours.
int specifying the number of minutes that are set between
job processing when scheduling hourly.void setIntervalMinutes(int newVal)
Sets the number of minutes that are set between job processing when scheduling hourly. This is only relevant when using SCHEDULE_TYPE_HOURLY and is used in conjunction with set and get IntervalHours.
newVal - An int specifying the number of minutes that are set between
job processing when scheduling hourly.int getIntervalMonths()
Returns the number of months that are set between job processing when scheduling monthly. This is only relevant when using SCHEDULE_TYPE_MONTHLY.
int specifying the number of months that are set between job
processing when scheduling monthly.void setIntervalMonths(int newVal)
Returns the number of months that are set between job processing when scheduling monthly. This is only relevant when using SCHEDULE_TYPE_MONTHLY.
newVal - An int specifying the number of months that are set between job
processing when scheduling monthly.int getIntervalNthDay()
Returns the day of the month to process the job when scheduling every nth day. This is only relevant when using SCHEDULE_TYPE_NTHDAY.
int specifying the day of the month to process the job
when scheduling every nth day.void setIntervalNthDay(int newVal)
Sets the day of the month to process the job when scheduling every nth day. This is only relevant when using SCHEDULE_TYPE_NTHDAY.
newVal - An int specifying the day of the month to process the job
when scheduling every nth day.int getRetriesAllowed()
Returns the maximum number of retries allowed.
int specifying the maximum number of retries allowed.void setRetriesAllowed(int newVal)
Sets the maximum number of retries allowed.
newVal - An int specifying the maximum number of retries allowed.int getRetryInterval()
Returns the number of seconds between retries.
int specifying the number of seconds between retries.void setRetryInterval(int newVal)
Sets the number of seconds between retries.
newVal - An int specifying the number of seconds between retries.boolean isRightNow()
Returns true if the scheduled job is set to run immediately.
true if the scheduled job is set to run immediately,
false otherwise.void setRightNow(boolean rightNow)
Sets the scheduled job to run immediately.
rightNow - true if the scheduled job is to be run immediately,
false otherwise.int getServerGroupChoice()
Returns how SAP BusinessObjects Enterprise will choose the server group on which to process scheduled reports.
int corresponding to a constant of GroupChoice.ISchedulingInfo.GroupChoicevoid setServerGroupChoice(int newVal)
Specifies how SAP BusinessObjects Enterprise will choose the server group on which to process scheduled reports.
newVal - An int of type GroupChoice.ISchedulingInfo.GroupChoiceint getServerGroup()
Returns the ID of the server group that will be used to process scheduled report objects.
int specifying the server group.void setServerGroup(int newVal)
Sets the ID of the server group that will be used to process scheduled report objects.
newVal - An int specifying the server group.int getType()
Get the frequency type of the schedule (For example: hourly, monthly).
int specifying the schedule type. This value will
be of type CeScheduleType.CeScheduleTypevoid setType(int type)
Sets the frequency type of the schedule (For example: hourly, monthly).
type - An int specifying the schedule type. This value must
be of type CeScheduleType.CeScheduleTypeint getIntervalDays()
Returns the number of days between job processing when using a daily schedule.
int specifying the number of days between job processing.void setIntervalDays(int newIntervalDays)
Sets the number of days between job processing when using a daily schedule.
newIntervalDays - An int specifying the number of days between
job processing.ICalendarRunDays getCalendarRunDays()
Returns a collection of calendar days that determine when the schedule will run. This is only relevant when using Calendar type scheduling.
ICalendarRunDays object specifying a
calendar template that specifies when the schedule will run.IDestination getDestination()
Returns the scheduled object's output destination information.
IDestination interface that specifies the output
destination.IDestinations getDestinations()
Returns a collection of the scheduled object's configured destinations.
Note: This method can be called on any InfoObject but if this method is called
on a Publication object that has failed to distribute to some of its destinations, it will
return a collection containing the first failed destination and all the destinations that followed it
on the list even though delivery to the following destinations was not attempted.
IDestinations interface that specifies the output
destinations.IDestinations getDistributedDestinations()
Returns the scheduled object's distributed destination information in a collection.
Note: This method only works for a Publication object and is only populated after a
scheduled Publication object has failed the distribution phase.
IDestinations interface that specifies the distributed output destinations that the
publication successfully distributed to. If this method is not called on a Publication object,
or called on a Publication object that has not failed distribution, it returns null.int getOutcome()
Returns the result of a job after it has finished processing.
int of constant type ScheduleOutcome.ISchedulingInfo.ScheduleOutcome
int getStatus()
throws SDKException
Returns the current status of the scheduled job.
int of constant type ScheduleStatus.
SDKException - the exception is thrown most likely due to the InfoObject is not an instance
or property SI_SCHEDULE_STATUS is not included in the query string used to retrieve this InfoObject.java.lang.String getErrorMessage()
Returns the error message for a failed job. It may include plugin-specific information.
String containing the error message for the failed job.java.lang.String getErrorMessage(java.util.Locale locale)
Returns a localized error message for a failed job. It may include plugin-specific information.
locale - The Locale object to be used in determining the error message's
display properties.
String containing the error message for the failed
job.java.util.TimeZone getTimeZone()
Returns the time zone that is used to schedule a job.
TimeZone object specifying the time zone used to schedule the job.void setTimeZone(java.util.TimeZone timezone)
Set the time zone that is used to schedule a job.
timezone - A TimeZone object specifying the time zone used to schedule
the job.int getScheduleOnBehalfOf()
Returns the ID of the user who the report is scheduled on behalf of.
int corresponding to the ID of the user who the report is
scheduled on behalf of.
void setScheduleOnBehalfOf(int newScheduleOnBehalfOf)
throws SDKException
Sets the user who the report is scheduled on behalf of.
newScheduleOnBehalfOf - The ID of the user to schedule the report on behalf of.
SDKException - This is thrown if there is an error processing this request.IProperties properties()
Returns an enumeration of the properties set within this property bag.
IProperties object containing and enumeration of
the properties set within this property bag.IDestination getAlertDestination()
Returns the alert destination. The destination of the alert notification email can be
customized in the same way that the SMTP destination is. First, retrieve the IInfoObject object
for the SMTP destination, set the destination's scheduling options, and then copy these
options to the report's IDestination object using the setFromPlugin
method. You can also schedule the alert notification email using the Report Job Server's default
destination options.
Note: To schedule a report to SMTP, you must enable the destination through the Crystal Management Console's Job Server properties.
IDestination object containing report alert
destination.int getCalendarTemplate()
Returns the id of the calendar template used for schedule. There has to be a CrystalEnterprise.Calendar object associated with this template id.
int specifying the calendar template idvoid setCalendarTemplate(int templateId)
Sets the id of the calendar template used for schedule. There has to be a CrystalEnterprise.Calendar object associated with this template id.
templateId - An int specifying the calendar template id
INotifications getNotifications()
throws SDKException
Returns the schedule notifications.
INotifications object containing schedule notification information.
SDKException - This is thrown if the process is unsuccessful.
java.util.Set getMultiPassObjects()
throws SDKException
Set that contains a collection of user/usergroup IDs.
SDKException - This is thrown if the process is unsuccessful.boolean getRunOnOriginatingCluster()
Returns true if the scheduled job is set to run on the originating cluster.
true if the scheduled job is set to on originating cluster,
false otherwise.void setRunOnOriginatingCluster(boolean run)
Sets the scheduled job to run on the originating cluster.
rightNow - true if the scheduled job is to be run on the originating cluster,
false otherwise.
boolean getRunRemotely()
throws SDKException
Returns true if the scheduled job will run remotely.
true if the scheduled job will run remotely,
false otherwise.
SDKException - This is thrown if there is missing cluster information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||