The AlertChannel is a class that defines a medium that an alert notification can be sent on. For example, ATG Portal provides the EmailAlertChannel, which provides alert notification via the DPS Targeted Email system.

Each new alert channel is configured with its own unique properties in a property file whose class definition is atg.portal.alert.AlertChannel. The new file must be placed somewhere in the CONFIGPATH.

Property Name

Description

Example Value

channelDisplayName

A name to display in the interface.

EmailAlertChannel

channelDescription

A description to display in the interface.

Channel to send alerts via the DPS Targeted Email

transactionManager

The Nucleus address of the Transaction Manager component.

/atg/dynamo/transaction/
TransactionManager

alertRepositoryManager

All alerts must use the AlertRepositoryManager that controls access to the AlertRepository. The AlertChannel must be persisted to the AlertRepository so it receives an ID that will uniquely identify it. The unique channel ID is used for alert configuration purposes.

/atg/portal/alert/
AlertRepositoryManager

alertHandler

The appropriate implementation of the AlertHandlerInterface

/atg/portal/alert/
EmailAlertHandler

If the new alert channel needs to extend these properties, then you will need to extend the AlertChannel class. Once the AlertChannel class has been extended, add the new properties to the alert channel component’s properties file.

The sample property file below shows how the EmailAlertChannel component is configured.

$class=atg.portal.alert.AlertChannel
$scope=global
channelDisplayName=EmailAlertChannel
channelDescription=Channel to send alerts via the DPS Targeted Email
transactionManager=/atg/dynamo/transaction/TransactionManager
alertRepositoryManager=/atg/portal/alert/AlertRepositoryManager
alertHandler=/atg/portal/alert/EmailAlertHandler

Copyright © 1997, 2016 Oracle and/or its affiliates. All rights reserved. Legal Notices