|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INotifications
This interface is used for setting schedule notification information. There are two types of notifications: email and audit log. Each notification will be triggered on either a "successful", "failed", or "successful or failed" scheduled report. Email and audit log notifications can be run simultaneously for the same scheduled report; they are not mutually exclusive.
| Nested Class Summary | |
|---|---|
static interface |
INotifications.CeAuditOnResult
Specifies the values for notification via audit. |
| Method Summary | |
|---|---|
int |
getAuditOption()
Returns the audit option set for notification. |
IDestinations |
getDestinationsOnFailure()
Returns the notification on failure destination collection. |
IDestinations |
getDestinationsOnSuccess()
Returns the notification on success destination collection. |
void |
setAuditOption(int option)
Sets the audit option for notification. |
| Method Detail |
|---|
IDestinations getDestinationsOnSuccess()
throws SDKException
Returns the notification on success destination collection.
Note: Only a single SMTP destination is supported.
SDKException - This is thrown if the process is unsuccessful.
IDestinations getDestinationsOnFailure()
throws SDKException
Note: Only a single SMTP destination is supported.
SDKException - This is thrown if the process is unsuccessful.
int getAuditOption()
throws SDKException
The AuditOption property can be set to one of four INotifications.CeAuditOnResult
values: ceAuditNone, ceAuditOnBoth, ceAuditOnFailure, or ceAuditOnSuccess.
AuditOption is a logical OR of the settings on the object and the settings on the jobserver. In other words, Audit settings can be applied to an object directly or from the jobserver.
| Object | Jobserver | Result |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
| 0 | 0 | 0 |
For example, if auditing is disabled on the object (by setting Notifications.AuditOption = ceAuditNone), and audit on success is enabled on the jobserver for that object, if the object is run successfully, then an audit entry is created.
int indicating the audit option. The value
corresponds to one of the constants in INotifications.CeAuditOnResult.
SDKException - This is thrown if the process is unsuccessful.INotifications.setAuditOption(int)
void setAuditOption(int option)
throws SDKException
The AuditOption property can be set to one of four INotifications.CeAuditOnResult
values: ceAuditNone, ceAuditOnBoth, ceAuditOnFailure, or ceAuditOnSuccess.
AuditOption is a logical OR of the settings on the object and the settings on the jobserver. In other words, Audit settings can be applied to an object directly or from the jobserver.
| Object | Jobserver | Result |
|---|---|---|
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
| 0 | 0 | 0 |
For example, if auditing is disabled on the object (by setting Notifications.AuditOption = ceAuditNone), and audit on success is enabled on the jobserver for that object, if the object is run successfully, then an audit entry is created.
option - An int specifying the audit option.
SDKException - This is thrown if the process is unsuccessful.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||