Class SampleRatingExtension

java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleRatingExtension
All Implemented Interfaces:
RatingExtension, oracle.communication.brm.charging.extensions.framework.ExtensionCallback<RatingExtensionContext>

public class SampleRatingExtension extends Object implements RatingExtension
Sample code for a RatingExtension
  • Constructor Details

    • SampleRatingExtension

      public SampleRatingExtension()
  • 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<RatingExtensionContext>
      Specified by:
      initialize in interface RatingExtension
      Parameters:
      extensionContext - the context which exposes objects that are needed at initialization time.
      Throws:
      ExtensionException - if a non-recoverable error occurs during initialization.
    • handlePostApplyCharge

      public void handlePostApplyCharge(RatingExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: RatingExtension
      This extension point is executed by the OCS immediately following the "charge" calculation for a usage request. Operators can implement this method to effect the "charge" calculation.
      Specified by:
      handlePostApplyCharge in interface RatingExtension
      Parameters:
      extensionContext - the available context data that can be accessed during the post apply charge rating flow.
      Throws:
      ExtensionException - if a non-recoverable error occurs during extension execution.
    • handlePostApplyAlteration

      public void handlePostApplyAlteration(RatingExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: RatingExtension
      This extension point is executed by the OCS immediately following the "alteration" calculation for a usage request. Operators can implement this method to effect the "alteration" calculation.
      Specified by:
      handlePostApplyAlteration in interface RatingExtension
      Parameters:
      extensionContext - the available context data that can be accessed during the post apply alteration rating flow.
      Throws:
      ExtensionException - if a non-recoverable error occurs during extension execution.
    • handlePostApplyDistribution

      public void handlePostApplyDistribution(RatingExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: RatingExtension
      This extension point is executed by the OCS immediately following the "distribution" calculation for a usage request. Operators can implement this method to effect the "distribution" calculation.
      Specified by:
      handlePostApplyDistribution in interface RatingExtension
      Parameters:
      extensionContext - the available context data that can be accessed during the post apply distribution rating flow.
      Throws:
      ExtensionException - if a non-recoverable error occurs during extension execution.
    • handlePostApplyTaxation

      public void handlePostApplyTaxation(RatingExtensionContext extensionContext) throws ExtensionException
      Description copied from interface: RatingExtension
      This extension point is executed by the OCS immediately following the "taxation" calculation for a usage request. Operators can implement this method to effect the "taxation" calculation.
      Specified by:
      handlePostApplyTaxation in interface RatingExtension
      Parameters:
      extensionContext - the available context data that can be accessed during the post apply taxation rating flow.
      Throws:
      ExtensionException - if a non-recoverable error occurs during extension execution.
    • 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<RatingExtensionContext>
      Specified by:
      shutdown in interface RatingExtension
      Parameters:
      extensionContext - the context which exposes objects that are needed at shutdown time.
      Throws:
      ExtensionException - if a non-recoverable error occurs during shutdown.