|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IEventBase
The IEvent interface provides properties to set the general information for all events,
including, name. description, and type of event. You can also retrieve the specific
event object (FileEvent, ScheduleEvent, UserEvent) based on the type of event set in
the IEvent interface.
Starting in version 4.0, specific event types are represented as sub-types of IEvent. Instead of the previous Event creation pattern:
IEvent event = (IEvent) objs.add(IEvent.KIND); event.setEventType(CeEvents.USER); IUserEvent userEvent = (IUserEvent) event.getEventInterface();Now you must create user events more directly:
IUserEvent userEvent = (IUserEvent) objs.add(IUserEvent.SPECIFIC_KIND); IEvent event = (IEvent) userEvent; // Events created using specific kind can be cast to IEvent
| Field Summary | |
|---|---|
static java.lang.String |
KIND
The Kind used to query for Event objects. |
static java.lang.String |
PROGID
The ProgID for the Event Class. |
| Method Summary | |
|---|---|
IAlertDeliveryConfigurations |
getAlertDeliveryConfigurationOverride()
Returns the customized alert delivery settings that override the system alert delivery settings for this event. |
java.util.Set |
getAlertNotifications()
Returns the IDs of the alert notifications triggered by this event. |
IAlertSubscriptions |
getAlertSubscriptions()
Returns a list of alert subscriptions for this event. |
java.lang.String |
getDescription()
Returns the description of the event. |
java.lang.Object |
getEventInterface()
Deprecated. Cast to the specific event type interface instead. |
java.lang.String |
getEventName()
Deprecated. Use IInfoObject.getTitle() instead. |
int |
getEventSourceID()
Returns the ID of the source object for this event, or 0 if this event is not tied to a source object. |
int |
getEventType()
Deprecated. Use IInfoObject.getSpecificKind() or IInfoObject.getSpecificProgID() instead. |
java.util.Set |
getExcludedSubscribers()
Returns a set of IDs of the principals (users and groups) who are excluded from subscribing to this event. |
java.util.Date |
getNotificationEndTime()
|
java.util.Date |
getNotificationStartTime()
|
java.lang.String |
getNotificationTimeZone()
|
java.lang.String |
getNotificationTimeZoneName()
|
boolean |
hasAlertDeliveryConfigurationOverride()
Returns whether or not this event uses customized alert delivery settings to override the default system alert delivery settings. |
boolean |
isAlertEnabled()
Returns whether or not the event has been enabled for alerting. |
boolean |
isNotificationSendEmail()
|
void |
removeAlertDeliveryConfigurationOverride()
Removes the alert delivery configuration settings for this event. |
void |
setAlertEnabled(boolean enabled)
Sets whether or not alerting is enabled for an event. |
void |
setDescription(java.lang.String newDescription)
Sets the description of the event. |
void |
setEventName(java.lang.String newEventName)
Deprecated. Use IInfoObject.setTitle(String) instead. |
void |
setEventType(int newEventType)
Deprecated. Create events according to their specific type instead, for example a FileEvent object. |
void |
setNotificationEndTime(java.util.Date endTime)
|
void |
setNotificationSendEmail(boolean sendEmail)
|
void |
setNotificationStartTime(java.util.Date startTime)
|
void |
setNotificationTimeZone(int timeZone)
|
void |
setNotificationTimeZoneName(java.lang.String timeZoneName)
|
void |
setSchedulableFlag(boolean isSchedulable)
|
| Field Detail |
|---|
static final java.lang.String KIND
The Kind used to query for Event objects.
static final java.lang.String PROGID
The ProgID for the Event Class.
| ProgID | CrystalEnterprise.Event |
| Query Category | CI_SYSTEMOBJECTS |
| Associated Interface | com.crystaldecisions.sdk.plugin.desktop.event.IEvent |
Query syntax:
SELECT | |
SI_DESCRIPTION, SI_NAME, SI_TYPE | |
FROM | |
CI_SYSTEMOBJECTS | |
WHERE | |
SI_PROGID='CrystalEnterprise.Event' | |
The CePropertyIDs named in the SELECT statement are those that are required to access data through the IEvent interface. For more information on their associations with the interface's methods, see IEvent
| Method Detail |
|---|
java.lang.String getEventName()
IInfoObject.getTitle() instead.
Returns the name of the event.
String containing the name of the event.IEventBase.setEventName(java.lang.String)void setEventName(java.lang.String newEventName)
IInfoObject.setTitle(String) instead.
Sets the name of the event.
newEventName - A String containing the name of the event.IEventBase.getEventName()java.lang.String getDescription()
Returns the description of the event.
String containing the description of the event.IEventBase.setDescription(java.lang.String)void setDescription(java.lang.String newDescription)
Sets the description of the event.
newDescription - A String containing the description of the event.IEventBase.getDescription()int getEventType()
IInfoObject.getSpecificKind() or IInfoObject.getSpecificProgID() instead.
Returns the type of event.
int specifying the type of event.IEventBase.setEventType(int)void setEventType(int newEventType)
Sets the type of event.
newEventType - An int specifying the type of event.IEventBase.getEventType()
java.lang.Object getEventInterface()
throws SDKException
Returns the event interface. This interface allows modification of File, Schedule, and User event objects.
Object containing the event interface. This can be either an
IFileEvent, IScheduleEvent, or IUserEvent.
SDKException - This is thrown if the process is unsuccessful.IFileEvent,
IScheduleEvent,
IUserEventboolean isAlertEnabled()
true if the event is alerting-enabled, false otherwise.
void setAlertEnabled(boolean enabled)
throws SDKException
enabled - true to enable alerting, false otherwise.
SDKException
IAlertSubscriptions getAlertSubscriptions()
throws SDKException
IAlertSubscriptions object that represents the principals subscribed to this event.
SDKException
java.util.Set getExcludedSubscribers()
throws SDKException
Set object that contains the SI_ID properties of the excluded subscribers, stored as Integer objects.
SDKExceptionboolean hasAlertDeliveryConfigurationOverride()
IEventBase.getAlertDeliveryConfigurationOverride(), which creates
override alert delivery settings if none exist.
true if override alert delivery settings are used, false if default system settings are used.IAlertDeliveryConfigurations getAlertDeliveryConfigurationOverride()
IAlertDeliveryConfigurations object that contains alert delivery settings.void removeAlertDeliveryConfigurationOverride()
java.util.Set getAlertNotifications()
throws SDKException
Set object that contains the SI_ID properties of alert notifications stored as Integer objects.
SDKException
int getEventSourceID()
throws SDKException
SDKExceptionIEventSourcejava.util.Date getNotificationStartTime()
java.util.Date getNotificationEndTime()
void setNotificationEndTime(java.util.Date endTime)
void setNotificationStartTime(java.util.Date startTime)
void setNotificationTimeZone(int timeZone)
java.lang.String getNotificationTimeZone()
void setNotificationTimeZoneName(java.lang.String timeZoneName)
java.lang.String getNotificationTimeZoneName()
void setSchedulableFlag(boolean isSchedulable)
void setNotificationSendEmail(boolean sendEmail)
boolean isNotificationSendEmail()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||