Class NotifBook
predefined notification descriptions;
It contains all the typical notifications
that may be sent by the connected SAP CC system and that you must handle in your client application when developing a class that
implement the NotificationHandler Java interface.
Implementation in Your Client Application
Customizing
You develop a customized class that implements the NotificationHandler Java interface and that
is assigned to your notification client.
There are two ways to access the notification descriptions in the NotificationHandler.
-
The first way is to use the constants defined in this book like for example
AUTHENTICATION_FAILURE. -
The second way, is a dynamic way, invoking the method
searchNotificationDescription(int)to search a predefined description by its name or invoking the methodsearchNotificationDescription(com.highdeal.notification.NotifBook.NotificationDescriptionHandler)to search a set of notifications corresponding to specified search criteria.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis Java interface must be implemented by classes that filter notification descriptions. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NotificationDescription[]Notification group 'abm'static final NotificationDescription[]Notification group 'admin'static final NotificationDescriptionDescription of the notification 'AMOUNT_ALERT'.static final NotificationDescriptionDescription of the notification 'AUTHENTICATION_FAILURE'.static final NotificationDescriptionDescription of the notification 'DB_FAILURE'.static final NotificationDescriptionDescription of the notification 'DB_LINK_DOWN'.static final NotificationDescriptionDescription of the notification 'DB_LINK_UP'.static final NotificationDescriptionDescription of the notification 'EXPIRATION_ALERT'.static final NotificationDescriptionDescription of the notification 'INSTANCE_DOWN'.static final NotificationDescriptionDescription of the notification 'INSTANCE_UP'.static final NotificationDescriptionDescription of the notification 'NO_ACCESS'.static final NotificationDescriptionDescription of the notification 'OUT_OF_MEMORY'.static final NotificationDescriptionDescription of the notification 'PNR_SCHEDULER_INTERRUPTED'.static final NotificationDescriptionDescription of the notification 'PNR_SCHEDULER_SLEEPS'.static final NotificationDescriptionDescription of the notification 'PNR_SCHEDULER_WAKESUP'.static final NotificationDescriptionFor internal use only.static final NotificationDescriptionFor internal use only.static final NotificationDescriptionDescription of the notification 'USER_ALERT'. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final NotificationDescription[]Returns all the notification descriptions of a notification group.static final DateparseDateArgument(String value) static final NotificationDescriptionsearchNotificationDescription(int uid) Searches a specific predefinedNotificationDescriptionthanks to the unique identifier and returns it.static voidSearchesNotificationDescriptionsand handles them throughNotifBook.NotificationDescriptionHandler.static final StringtoArgument(Date value)
-
Field Details
-
USER_ALERT
Description of the notification 'USER_ALERT'.Main Properties
uid 12 prettyName userAlert level inform
Additional Infoindex name description 0 serviceProvider The service provider of the subscriber account 1 subscriberAccountCode The identifier of the subscriber account 2 code The code that identifies the user alert. This code is set in an alert triggering operator of price plan (or charging plan or refill logic). 3 message The text message describing the user alert 4 properties A list of properties that give additional information about the user alert. The list is set in the Alert Triggering operator. -
NO_ACCESS
Description of the notification 'NO_ACCESS'.Main Properties
uid 15 prettyName noAccess level inform
Additional Infoindex name description 0 message The message defined in the Definition tab of the No Access Function component in Core Tool 1 userDefinedArgs -
SPENDING_STATUS_REPORT
For internal use only.Description of the notification 'SPENDING_STATUS_REPORT'.
Main Properties
uid 14 prettyName spendingStatusReport level inform
Additional Infoindex name description 0 spendingStatusMonitoringId The identifier of the spending status monitoring. -
RENEW_RESERVATION
For internal use only.Description of the notification 'RENEW_RESERVATION'.
Main Properties
uid 13 prettyName renewReservation level inform
Additional Infoindex name description 0 sessionId The identifier of the multiservice session where the partial reservation occurred. 1 reservationId The identifier of the reservation which was partially granted. It is also used to identify the charging session flagged as Partially Granted Reservation. 2 externalData The data sent by the client application with the ISessionStartChargingOperation. It is temporarily stored by SAP. -
AMOUNT_ALERT
Description of the notification 'AMOUNT_ALERT'.Main Properties
uid 0 prettyName amountAlert level inform
Additional Infoindex name description 0 serviceProvider The service provider of the subscriber account 1 subscriberAccountCode The code name of the subscriber account 2 balanceType Is "prepaid" or "creditLimit" whether the related balance is in a prepaid account or a credit limit balance 3 balanceCode The code name of the balance for which an amount alert has been triggered 4 balanceAmount The current amount of the balance with its currency 5 alertMsg The text message of the alert as set in the alert code of the amount alert configured in the prepaid account or credit limit balance in the subscriber account 6 alertAmount The amount threshold of the alert -
EXPIRATION_ALERT
Description of the notification 'EXPIRATION_ALERT'.Main Properties
uid 1 prettyName expirationAlert level inform
Additional Infoindex name description 0 serviceProvider The service provider of the subscriber account 1 subscriberAccountCode The code of the subscriber account 2 balanceType Is "prepaid" 3 balanceCode The code name of the balance for which an amount alert has been triggered 4 alertMsg The code of the alert as set in the expiration alert configured in the prepaid account 5 alertState The state related to the alert 6 alertChangeDate The date when the state change occurs 7 alertDayCount Defines when the alert is triggered around the change date -
INSTANCE_UP
Description of the notification 'INSTANCE_UP'.Main Properties
uid 2 prettyName instanceUp level inform -
INSTANCE_DOWN
Description of the notification 'INSTANCE_DOWN'.Main Properties
uid 3 prettyName instanceDown level inform -
DB_LINK_DOWN
Description of the notification 'DB_LINK_DOWN'.Main Properties
uid 4 prettyName dbLinkDown level failure -
DB_LINK_UP
Description of the notification 'DB_LINK_UP'.Main Properties
uid 5 prettyName dbLinkUp level inform -
DB_FAILURE
Description of the notification 'DB_FAILURE'.Main Properties
uid 6 prettyName dbFailure level failure
Additional Infoindex name description 0 alertMsg The message of the error -
OUT_OF_MEMORY
Description of the notification 'OUT_OF_MEMORY'.Main Properties
uid 7 prettyName outOfMemory level fatal -
PNR_SCHEDULER_WAKESUP
Description of the notification 'PNR_SCHEDULER_WAKESUP'.Main Properties
uid 8 prettyName pnrSchedulerWakesUp level inform -
PNR_SCHEDULER_SLEEPS
Description of the notification 'PNR_SCHEDULER_SLEEPS'.Main Properties
uid 9 prettyName pnrSchedulerSleeps level inform -
PNR_SCHEDULER_INTERRUPTED
Description of the notification 'PNR_SCHEDULER_INTERRUPTED'.Main Properties
uid 10 prettyName pnrSchedulerInterrupted level warn
Additional Infoindex name description 0 alertMsg The message of the error -
AUTHENTICATION_FAILURE
Description of the notification 'AUTHENTICATION_FAILURE'.Main Properties
uid 11 prettyName authenticationFailure level security
Additional Infoindex name description 0 alertMsg A message which describes the reason why the authentication failed 1 login The login if specified, "no login" otherwise -
ABM_GROUP
Notification group 'abm'Here are the notifications included in this group:
AMOUNT_ALERT,EXPIRATION_ALERT,USER_ALERT,NO_ACCESS,RENEW_RESERVATION -
ADMIN_GROUP
Notification group 'admin'Here are the notifications included in this group:
INSTANCE_UP,INSTANCE_DOWN,DB_LINK_DOWN,DB_LINK_UP,DB_FAILURE,OUT_OF_MEMORY,PNR_SCHEDULER_WAKESUP,PNR_SCHEDULER_SLEEPS,PNR_SCHEDULER_INTERRUPTED,AUTHENTICATION_FAILURE
-
-
Constructor Details
-
NotifBook
public NotifBook()
-
-
Method Details
-
searchNotificationDescription
SearchesNotificationDescriptionsand handles them throughNotifBook.NotificationDescriptionHandler.- Parameters:
handler- The filtering notification handler- Throws:
com.highdeal.util.NullArgumentException- if handler is null
-
searchNotificationDescription
Searches a specific predefinedNotificationDescriptionthanks to the unique identifier and returns it.- Parameters:
uid- The unique identifier- Returns:
- A
NotificationDescriptionif a predefined notification description has uid as unique id, null otherwise.
-
getGroup
Returns all the notification descriptions of a notification group.The name of a group ends by the suffix '_GROUP'. If name does not end by this suffix, it will be appended. For example, the group 'XXXX_GROUP' can be retrieved with the names 'XXXX_GROUP' or 'XXXX'.
- Parameters:
name- The name of the group; Can benull.- Returns:
- An array of the notification descriptions of the notification group named name; Returns
nullif name is empty or if no group named name was found.
-
toArgument
-
parseDateArgument
-