Class NotifBook

java.lang.Object
com.highdeal.notification.NotifBook

public class NotifBook extends Object
This class represents the book of the 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.

See Also:
  • Field Details

    • USER_ALERT

      public static final NotificationDescription USER_ALERT
      Description of the notification 'USER_ALERT'.

      Main Properties

      uid12
      prettyNameuserAlert
      levelinform

      Additional Info
      indexnamedescription
      0serviceProviderThe service provider of the subscriber account
      1subscriberAccountCodeThe identifier of the subscriber account
      2codeThe code that identifies the user alert. This code is set in an alert triggering operator of price plan (or charging plan or refill logic).
      3messageThe text message describing the user alert
      4propertiesA list of properties that give additional information about the user alert. The list is set in the Alert Triggering operator.
    • NO_ACCESS

      public static final NotificationDescription NO_ACCESS
      Description of the notification 'NO_ACCESS'.

      Main Properties

      uid15
      prettyNamenoAccess
      levelinform

      Additional Info
      indexnamedescription
      0messageThe message defined in the Definition tab of the No Access Function component in Core Tool
      1userDefinedArgs
    • SPENDING_STATUS_REPORT

      public static final NotificationDescription SPENDING_STATUS_REPORT
      For internal use only.

      Description of the notification 'SPENDING_STATUS_REPORT'.

      Main Properties

      uid14
      prettyNamespendingStatusReport
      levelinform

      Additional Info
      indexnamedescription
      0spendingStatusMonitoringIdThe identifier of the spending status monitoring.
    • RENEW_RESERVATION

      public static final NotificationDescription RENEW_RESERVATION
      For internal use only.

      Description of the notification 'RENEW_RESERVATION'.

      Main Properties

      uid13
      prettyNamerenewReservation
      levelinform

      Additional Info
      indexnamedescription
      0sessionIdThe identifier of the multiservice session where the partial reservation occurred.
      1reservationIdThe identifier of the reservation which was partially granted. It is also used to identify the charging session flagged as Partially Granted Reservation.
      2externalDataThe data sent by the client application with the ISessionStartChargingOperation. It is temporarily stored by SAP.
    • AMOUNT_ALERT

      public static final NotificationDescription AMOUNT_ALERT
      Description of the notification 'AMOUNT_ALERT'.

      Main Properties

      uid0
      prettyNameamountAlert
      levelinform

      Additional Info
      indexnamedescription
      0serviceProviderThe service provider of the subscriber account
      1subscriberAccountCodeThe code name of the subscriber account
      2balanceTypeIs "prepaid" or "creditLimit" whether the related balance is in a prepaid account or a credit limit balance
      3balanceCodeThe code name of the balance for which an amount alert has been triggered
      4balanceAmountThe current amount of the balance with its currency
      5alertMsgThe 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
      6alertAmountThe amount threshold of the alert
    • EXPIRATION_ALERT

      public static final NotificationDescription EXPIRATION_ALERT
      Description of the notification 'EXPIRATION_ALERT'.

      Main Properties

      uid1
      prettyNameexpirationAlert
      levelinform

      Additional Info
      indexnamedescription
      0serviceProviderThe service provider of the subscriber account
      1subscriberAccountCodeThe code of the subscriber account
      2balanceTypeIs "prepaid"
      3balanceCodeThe code name of the balance for which an amount alert has been triggered
      4alertMsgThe code of the alert as set in the expiration alert configured in the prepaid account
      5alertStateThe state related to the alert
      6alertChangeDateThe date when the state change occurs
      7alertDayCountDefines when the alert is triggered around the change date
    • INSTANCE_UP

      public static final NotificationDescription INSTANCE_UP
      Description of the notification 'INSTANCE_UP'.

      Main Properties

      uid2
      prettyNameinstanceUp
      levelinform
    • INSTANCE_DOWN

      public static final NotificationDescription INSTANCE_DOWN
      Description of the notification 'INSTANCE_DOWN'.

      Main Properties

      uid3
      prettyNameinstanceDown
      levelinform
    • DB_FAILURE

      public static final NotificationDescription DB_FAILURE
      Description of the notification 'DB_FAILURE'.

      Main Properties

      uid6
      prettyNamedbFailure
      levelfailure

      Additional Info
      indexnamedescription
      0alertMsgThe message of the error
    • OUT_OF_MEMORY

      public static final NotificationDescription OUT_OF_MEMORY
      Description of the notification 'OUT_OF_MEMORY'.

      Main Properties

      uid7
      prettyNameoutOfMemory
      levelfatal
    • PNR_SCHEDULER_WAKESUP

      public static final NotificationDescription PNR_SCHEDULER_WAKESUP
      Description of the notification 'PNR_SCHEDULER_WAKESUP'.

      Main Properties

      uid8
      prettyNamepnrSchedulerWakesUp
      levelinform
    • PNR_SCHEDULER_SLEEPS

      public static final NotificationDescription PNR_SCHEDULER_SLEEPS
      Description of the notification 'PNR_SCHEDULER_SLEEPS'.

      Main Properties

      uid9
      prettyNamepnrSchedulerSleeps
      levelinform
    • PNR_SCHEDULER_INTERRUPTED

      public static final NotificationDescription PNR_SCHEDULER_INTERRUPTED
      Description of the notification 'PNR_SCHEDULER_INTERRUPTED'.

      Main Properties

      uid10
      prettyNamepnrSchedulerInterrupted
      levelwarn

      Additional Info
      indexnamedescription
      0alertMsgThe message of the error
    • AUTHENTICATION_FAILURE

      public static final NotificationDescription AUTHENTICATION_FAILURE
      Description of the notification 'AUTHENTICATION_FAILURE'.

      Main Properties

      uid11
      prettyNameauthenticationFailure
      levelsecurity

      Additional Info
      indexnamedescription
      0alertMsgA message which describes the reason why the authentication failed
      1loginThe login if specified, "no login" otherwise
    • ABM_GROUP

      public static final NotificationDescription[] 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

      public static final NotificationDescription[] ADMIN_GROUP
  • Constructor Details

    • NotifBook

      public NotifBook()
  • Method Details

    • searchNotificationDescription

      public static void searchNotificationDescription(NotifBook.NotificationDescriptionHandler handler)
      Parameters:
      handler - The filtering notification handler
      Throws:
      com.highdeal.util.NullArgumentException - if handler is null
    • searchNotificationDescription

      public static final NotificationDescription searchNotificationDescription(int uid)
      Searches a specific predefined NotificationDescription thanks to the unique identifier and returns it.
      Parameters:
      uid - The unique identifier
      Returns:
      A NotificationDescription if a predefined notification description has uid as unique id, null otherwise.
    • getGroup

      public static final NotificationDescription[] getGroup(String name)
      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 be null.
      Returns:
      An array of the notification descriptions of the notification group named name; Returns null if name is empty or if no group named name was found.
    • toArgument

      public static final String toArgument(Date value)
    • parseDateArgument

      public static final Date parseDateArgument(String value)