public class NotificationConfigurationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Long |
addTransportOverride(java.lang.Long notificationId,
TransportOverride transportOverride)
This method adds a
TransportOverride to a Notification object. |
static java.lang.Long |
createNotificationObject(TransportOverride[] transportOverrides)
This method creates a new notification object.
|
static void |
deleteNotificationObject(java.lang.Long notificationId)
This method deletes a notification object by the notification identifier.
|
static void |
deleteTransportOverride(java.lang.Long notificationId,
java.lang.String transportName,
java.lang.String msgTypeName)
This method deletes a
TransportOverride entry
from a notification object. |
static TypedProperty |
getAttributesForTransport(java.lang.String transportName)
This method returns the names of over-rideable attributes for a particular transport.
|
static Notification |
getNotificationObject(java.lang.Long notificationId)
This method gets the notification object by the notification identifier.
|
static java.lang.String[] |
getTransportsForMsgTypeName(java.lang.String msgTypeName,
java.lang.Integer storeId)
This method returns the transports supported for this message type.
|
static void |
replaceTransportOverride(java.lang.Long notificationId,
TransportOverride transportOverride)
This method replaces a
TransportOverride for a notification
object. |
static void |
updateTransportOverride(java.lang.Long notificationId,
TransportOverride transportOverride)
This method updates the
TransportOverride for a notification object. |
public static final java.lang.String COPYRIGHT
public static java.lang.String[] getTransportsForMsgTypeName(java.lang.String msgTypeName, java.lang.Integer storeId) throws ECException
msgTypeName
- the name of the message type; not nullstoreId
- the ID of the store; not nullmsgTypeName
or storeId
is undefinedECException
- Raised when there is an error retrieving a profile based on
the msgTypeName and storeId.public static TypedProperty getAttributesForTransport(java.lang.String transportName) throws ECException
transportName
- the name of the transportECException
public static java.lang.Long createNotificationObject(TransportOverride[] transportOverrides) throws ECException
notificationId
will be ignored if it is set.notificationValueObject
- notification value object; must not be null.ECException
public static Notification getNotificationObject(java.lang.Long notificationId) throws ECException
notificationId
- notification identifier; not nullECException
- Raised if the notification object is not found with the
notificationID.public static void deleteNotificationObject(java.lang.Long notificationId) throws ECException
notificationId
- the notification identifier; if null, no action is taken.ECException
- Raised if an error occurs while trying to delete the notification object.public static java.lang.Long addTransportOverride(java.lang.Long notificationId, TransportOverride transportOverride) throws ECException
TransportOverride
to a Notification object. If
the notification identifier is null, a new Notification object is created
and the notification identifier is assigned.notificationId
- the notification identifier which may be null. If it is not null,
the record with notificationId
, msgTypeId
, transportId
must not already exist.transportOverride
- the details about the transport to override; not
null; transportName must be definednotificationId
is null
and no transports are overridden.ECException
public static void deleteTransportOverride(java.lang.Long notificationId, java.lang.String transportName, java.lang.String msgTypeName) throws ECException
TransportOverride
entry
from a notification object.notificationId
- the notification identifiertransportName
- the transport namemsgTypeName
- the message type nameECException
public static void updateTransportOverride(java.lang.Long notificationId, TransportOverride transportOverride) throws ECException
TransportOverride
for a notification object.
The behaviour is that if the attribute is defined, its value will be replaced. If this value
is not defined, it will be created. If the attribute is previously defined but not included
with the new object, it will remain unchanged.notificationId
- the notification identifier; not nulltransportOverride
- the overriding transport details which cannot be null;
the transport ID of the transport name cannot be null; the attributes cannot be nullECException
public static void replaceTransportOverride(java.lang.Long notificationId, TransportOverride transportOverride) throws ECException
TransportOverride
for a notification
object.notificationId
- the notification identifiertransportOverride
- the overriding transport detailsECException