com.businessobjects.enterprise.crystalreport
Interface ReportAlerts


public interface ReportAlerts

Contains the list of alerts defined in a given report.

You can set the configuration options for each alert, and then send these alerts to an SMTP server. Use the setBody method to include a message that will be shown in the alert notification email before all of the alert messages.


Nested Class Summary
static class ReportAlerts.Factory
          A class with methods for creating instances of the ReportAlerts type.
 
Field Summary
static org.apache.xmlbeans.SchemaType type
          Internal Use Only.
 
Method Summary
 ReportAlert addNewAlert()
          Appends and returns a new empty ReportAlert object (as xml) as the last element of the array.
 ReportAlert[] getAlertArray()
          Returns the array of ReportAlert objects.
 ReportAlert getAlertArray(int i)
          Returns the ReportAlert object at a specified index.
 java.lang.String getBody()
          Returns the message text that is prepended to the notification email.
 ReportAlert insertNewAlert(int i)
          Inserts and returns a new empty ReportAlert object at a specified index.
 boolean isSetBody()
          Checks if the Body has been set.
 void removeAlert(int i)
          Removes the ReportAlert element at the specified index position.
 void setAlertArray(int i, ReportAlert alert)
          Sets the ReportAlert object at the specified position.
 void setAlertArray(ReportAlert[] alertArray)
          Sets the array of ReportAlert objects.
 void setBody(java.lang.String body)
          Sets the message text that is prepended to the alert notification email.
 int sizeOfAlertArray()
          Returns the size of the ReportAlert array.
 void unsetBody()
          Deletes or unsets the Body element.
 org.apache.xmlbeans.XmlString xgetBody()
          Internal Use Only.
 void xsetBody(org.apache.xmlbeans.XmlString body)
          Internal Use Only.
 

Field Detail

type

static final org.apache.xmlbeans.SchemaType type
Internal Use Only.

Method Detail

getAlertArray

ReportAlert[] getAlertArray()

Returns the array of ReportAlert objects.

Returns:
The array of ReportAlert objects.

getAlertArray

ReportAlert getAlertArray(int i)

Returns the ReportAlert object at a specified index.

Parameters:
i - The index position.
Returns:
The ReportAlert object.

sizeOfAlertArray

int sizeOfAlertArray()
Returns the size of the ReportAlert array.

Returns:
The size of the array.

setAlertArray

void setAlertArray(ReportAlert[] alertArray)

Sets the array of ReportAlert objects.

Parameters:
alertArray - The array of ReportAlert objects.

setAlertArray

void setAlertArray(int i,
                   ReportAlert alert)

Sets the ReportAlert object at the specified position.

Parameters:
i - The index position.
alert - The ReportAlert object.

insertNewAlert

ReportAlert insertNewAlert(int i)
Inserts and returns a new empty ReportAlert object at a specified index.

Parameters:
i - The index position to insert the object.
Returns:
The new ReportAlert.

addNewAlert

ReportAlert addNewAlert()
Appends and returns a new empty ReportAlert object (as xml) as the last element of the array.

Returns:
The new ReportAlert object.

removeAlert

void removeAlert(int i)
Removes the ReportAlert element at the specified index position.

Parameters:
i - The index position to remove the ReportAlert element.

getBody

java.lang.String getBody()

Returns the message text that is prepended to the notification email. The maximum number of characters that you can include in the message text may be constrained by limits that have been put on your SMTP server.

Use the setAlertDestination method in SchedulingInfo to set the notification email. This email will contain all of the triggered alerts in a given report.

Returns:
A String containing the message text that is prepended to the alert notification email.

xgetBody

org.apache.xmlbeans.XmlString xgetBody()
Internal Use Only.


isSetBody

boolean isSetBody()
Checks if the Body has been set.

Returns:
true if the Body element has been set, otherwise false.

setBody

void setBody(java.lang.String body)

Sets the message text that is prepended to the alert notification email. The maximum number of characters that you can include in the message text may be constrained by limits that have been put on your SMTP server.

Use the setAlertDestination method in SchedulingInfo to set the notification email. This email will contain all of the triggered alerts in a given report.

To insert a viewer hyperlink into the message body, add %SI_VIEWER_URL% to the string.

Parameters:
body - A String containing the message text that is prepended to the alert notification email.

xsetBody

void xsetBody(org.apache.xmlbeans.XmlString body)
Internal Use Only.


unsetBody

void unsetBody()

Deletes or unsets the Body element.