Interface UsageRequestBuilderFactory


public interface UsageRequestBuilderFactory
UsageRequestBuilderFactory Interface: dynamically creates UsageRequestBuilders from various spec sources
  • Method Details

    • makeUsageRequestBuilder

      UsageRequestBuilder makeUsageRequestBuilder(ServiceSpecRepository serviceSpecRepository, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException
      Provides UsageRequestBuilder based on specs in ServiceSpecRepository
      Parameters:
      serviceSpecRepository - repository where the specs have been loaded
      productType - the service id corresponding to this builder instance
      eventType - the service context corresponding to this builder instance
      version - the version of the service spec being used.
      calcMode - indicates whether Cumulative or Incremental accounting style is used.
      Returns:
      UsageRequestBuilder
      Throws:
      MessagesUsageException - messages exception
    • makeUsageRequestBuilder

      UsageRequestBuilder makeUsageRequestBuilder(File specFile, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException
      Provides UsageRequestBuilder based on specs in a file
      Parameters:
      specFile - file where the specs are
      productType - the service id corresponding to this builder instance
      eventType - the service context corresponding to this builder instance
      version - the version of the service spec being used.
      calcMode - indicates whether Cumulative or Incremental accounting style is used.
      Returns:
      UsageRequestBuilder
      Throws:
      MessagesUsageException - messages exception
      oracle.communication.brm.charging.config.ConfigException - if provided file contains invalid specs
    • makeUsageRequestBuilder

      UsageRequestBuilder makeUsageRequestBuilder(InputStream inputStream, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException
      Provides UsageRequestBuilder based on specs in InputStream
      Parameters:
      inputStream - InputStream where the specs are
      productType - the service id corresponding to this builder instance
      eventType - the service context corresponding to this builder instance
      version - the version of the service spec being used.
      calcMode - indicates whether Cumulative or Incremental accounting style is used.
      Returns:
      UsageRequestBuilder
      Throws:
      MessagesUsageException - messages exception
      oracle.communication.brm.charging.config.ConfigException - if provided stream contains invalid specs
    • makeUsageRequestBuilder

      UsageRequestBuilder makeUsageRequestBuilder(URL url, String productType, String eventType, String version, UnitReportingMode calcMode) throws MessagesUsageException, oracle.communication.brm.charging.config.ConfigException
      Provides UsageRequestBuilder based on specs in URL
      Parameters:
      url - url where the specs are
      productType - the service id corresponding to this builder instance
      eventType - the service context corresponding to this builder instance
      version - the version of the service spec being used.
      calcMode - indicates whether Cumulative or Incremental accounting style is used.
      Returns:
      UsageRequestBuilder
      Throws:
      MessagesUsageException - messages exception
      oracle.communication.brm.charging.config.ConfigException - if provided URL contains invalid specs