Class SamplePostChargingExtension

java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SamplePostChargingExtension
All Implemented Interfaces:
PostChargingExtension, oracle.communication.brm.charging.extensions.framework.ExtensionCallback<PostChargingExtensionContext>

public final class SamplePostChargingExtension extends Object implements PostChargingExtension
Sample post charging custom logic to enrich response and rated event
  • Constructor Details

    • SamplePostChargingExtension

      public SamplePostChargingExtension()
  • 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<PostChargingExtensionContext>
      Specified by:
      initialize in interface PostChargingExtension
      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(PostChargingExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: PostChargingExtension
      This execute method is specific to a PostChargingExtension hook. Operator should implement this method to perform their custom logic that is specific to their Post OCS charging needs.
      Specified by:
      execute in interface PostChargingExtension
      Parameters:
      extensionContext - context information pertaining to Post OCS charging.
      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(PostChargingExtensionContext extensionContext)
    • fetchOfferProfiles

      public Collection<oracle.communication.brm.charging.config.offerprofile.OfferProfile> fetchOfferProfiles(PostChargingExtensionContext extensionContext)
    • subscribedSpendingLimitSessionPresent

      public boolean subscribedSpendingLimitSessionPresent(PostChargingExtensionContext 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<PostChargingExtensionContext>
      Specified by:
      shutdown in interface PostChargingExtension
      Parameters:
      extensionContext - the context which exposes objects that are needed at shutdown time.
      Throws:
      ExtensionException - if a non-recoverable error occurs during shutdown.