Class SampleBrmCdrPluginExtension

java.lang.Object
oracle.communication.brm.charging.sdk.extensions.SampleBrmCdrPluginExtension
All Implemented Interfaces:
BrmCdrPluginExtension

public class SampleBrmCdrPluginExtension extends Object implements BrmCdrPluginExtension
The class shows as a example to extend BrmCdrPlugin by adding records/fields in addition to the records/fields produced by the BrmCdrPlugin. Additional fields available in the usage request can be added to augment the BRM CDR records by implementing the BrmCdrPluginExtension interface with the overridden method mapCustomerUsageRequestAddition.
  • Field Details

  • Constructor Details

    • SampleBrmCdrPluginExtension

      public SampleBrmCdrPluginExtension()
  • Method Details

    • mapCustomUsageRequestAddition

      public Map.Entry<String,Integer> mapCustomUsageRequestAddition(UsageRequest usageRequest, int recordNumber)
      This example shows to add the 'QUALITY_OF_SERVICE' field to BRM CDR record.
      Specified by:
      mapCustomUsageRequestAddition in interface BrmCdrPluginExtension
      Parameters:
      usageRequest - the usage request
      recordNumber - the starting record number to be used by the customized method
      Returns:
      Map.Entry with the customized record strings and the record number of the last record written in the record strings