Class SampleUpdateNotificationExtension

java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleUpdateNotificationExtension
All Implemented Interfaces:
UpdateExtension, oracle.communication.brm.charging.extensions.framework.ExtensionCallback<oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext>

public class SampleUpdateNotificationExtension extends Object implements UpdateExtension
Sample Class for Notification Extensions in Update Flow
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
    This execute method is specific to a Notification Extension hook.
    Collection<oracle.communication.brm.charging.config.offerprofile.OfferProfile>
    fetchOfferProfiles(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
     
    void
    generateCustomSNR(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
     
    void
    initialize(ExtensionContext extensionContext)
    method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.
    void
    shutdown(ExtensionContext extensionContext)
    method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.
    boolean
    subscribedSpendingLimitSessionPresent(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SampleUpdateNotificationExtension

      public SampleUpdateNotificationExtension()
  • Method Details

    • initialize

      public void initialize(ExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: oracle.communication.brm.charging.extensions.framework.ExtensionCallback
      method is invoked once at ECS Node startup time to allow integrators a spot to populate private data members that are required by the extension callback.
      Specified by:
      initialize in interface oracle.communication.brm.charging.extensions.framework.ExtensionCallback<oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext>
      Specified by:
      initialize in interface UpdateExtension
      Parameters:
      extensionContext - the context which exposes objects that are needed at initialization time.
      Throws:
      ExtensionException - if a non-recoverable error occurs during initialization.
    • execute

      public void execute(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: UpdateExtension
      This execute method is specific to a Notification Extension hook. Operator should implement this method to perform their custom logic that is specific to their needs.
      Specified by:
      execute in interface UpdateExtension
      Parameters:
      extensionContext - context information pertaining to the Update Operation.
      Throws:
      ExtensionException - throw and exception if a non-recoverable error occurs. This exception will be logged and a EXTENSION_ERROR ServiceEvent will be set into the UsageResponse.
    • generateCustomSNR

      public void generateCustomSNR(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
    • fetchOfferProfiles

      public Collection<oracle.communication.brm.charging.config.offerprofile.OfferProfile> fetchOfferProfiles(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
    • subscribedSpendingLimitSessionPresent

      public boolean subscribedSpendingLimitSessionPresent(oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext extensionContext)
    • shutdown

      public void shutdown(ExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: oracle.communication.brm.charging.extensions.framework.ExtensionCallback
      method is invoked once at ECS Node shutdown time to allow integrators a spot to release any resources that were acquired by the Extension.
      Specified by:
      shutdown in interface oracle.communication.brm.charging.extensions.framework.ExtensionCallback<oracle.communication.brm.charging.extensions.client.notification.UpdateExtensionContext>
      Specified by:
      shutdown in interface UpdateExtension
      Parameters:
      extensionContext - the context which exposes objects that are needed at shutdown time.
      Throws:
      ExtensionException - if a non-recoverable error occurs during shutdown.