Interface ServiceSpecRepository

All Superinterfaces:
oracle.communication.brm.charging.util.transaction.Repository, oracle.communication.brm.charging.util.transaction.TransactionalRepository

public interface ServiceSpecRepository extends oracle.communication.brm.charging.util.transaction.TransactionalRepository
The repository used to manager storage of ServiceSpecifications.
  • Field Details

  • Method Details

    • add

      void add(Collection<RequestSpecification> requestSpecs, Collection<oracle.communication.brm.charging.config.servicespec.ResponseSpecification> responseSpecs, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) throws oracle.communication.brm.charging.config.ConfigException
      method will add both Request and Response specifications to the repository
      Parameters:
      requestSpecs - the spec to be added. Can be null if there are none to add.
      responseSpecs - the spec to be added. Can be null if there are none to add.
      transactionContext - Transaction Context, to which the specs are added
      Throws:
      oracle.communication.brm.charging.config.ConfigException - if the supplied RequestSpecifications have a -external tag that conflicts with previously loaded RequestSpecifications.
    • add

      void add(Collection<RequestSpecification> requestSpecs, Collection<oracle.communication.brm.charging.config.servicespec.ResponseSpecification> responseSpecs, Collection<DiameterMediationEntry> mediationEntries, Collection<RadiusMediationEntry> radiusMediationEntries, Collection<HttpMediationEntry> httpMediationEntries, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) throws oracle.communication.brm.charging.config.ConfigException
      method will add both Request, Response and Mediation objects to the repository
      Parameters:
      requestSpecs - the spec to be added. Can be null if there are none to add.
      responseSpecs - the spec to be added. Can be null if there are none to add.
      mediationEntries - the list of DiameterMediationEntries to add. Can be null if there are none to add.
      radiusMediationEntries - the list of RadiusMediationEntries to add. Can be null if there are none to add.
      httpMediationEntries - the list of HttpMediationEntries to add. Can be null if there are none to add.
      transactionContext -
      Throws:
      oracle.communication.brm.charging.config.ConfigException - if the supplied RequestSpecifications have a -external tag that conflicts with previously loaded RequestSpecifications.
    • add

      <T extends MediationEntry> void add(Collection<T> mediationEntries)
      method will add only mediation entries to the repository
      Parameters:
      mediationEntries - the list of DiameterMediationEntries to add. Can be null if there are none to add.
    • addRadiusMediationEntries

      <T extends MediationEntry> void addRadiusMediationEntries(Collection<T> radiusMediationEntries)
      method will add only mediation entries to the repository
      Parameters:
      radiusMediationEntries - the list of RadiusMediationEntries to add. Can be null if there are none to add.
    • addHttpMediationEntries

      <T extends MediationEntry> void addHttpMediationEntries(Collection<T> httpMediationEntries)
      method will add only mediation entries to the repository
      Parameters:
      httpMediationEntries - the list of RadiusMediationEntries to add. Can be null if there are none to add.
    • add

      void add(DomainSpecification domainSpecification, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) throws oracle.communication.brm.charging.config.ConfigException
      method will add Domain object specification (Customer and Service) to the Coh templates, with transaction support
      Parameters:
      domainSpecification - the spec for the Customer or Product
      transactionContext - transaction context
      Throws:
      oracle.communication.brm.charging.config.ConfigException
    • add

      void add(com.tangosol.util.CompositeKey key, NetworkMappingSpecification networkMappingSpecification)
      method will add the Network Mapping Specification into the cache. The key is a composite one.
      Parameters:
      networkMappingSpecification - The specification of network mapping
    • getRequestSpec

      RequestSpecification getRequestSpec(String version, String productType, String eventType)
      get a RequestSpecification from the repository using the supplied attributes. Together the version, productType, eventType combine to form a primary key to which the RequestSpecification is associated.
      Parameters:
      version - the version identifer
      productType - the productType identifer
      eventType - the eventType identifier
      Returns:
      the RequestSpecification that is associated with the supplied attributes. Will return null if a RequestSpecification cannot be found.
    • getCustomerSpecification

      CustomerSpecification getCustomerSpecification()
      get CustomerSpecification from the repository There will be only one CustomerSpecification at this time.
      Returns:
      the CustomerSpecification that is stored in the Coh cache.
    • getAllProductSpecifications

      Collection<ProductSpecification> getAllProductSpecifications()
      get all ProductSpecifications from the repository
      Returns:
      the collection of ProductSpecifications that is stored in the Coh cache.
    • getProductSpecification

      ProductSpecification getProductSpecification(String productSpecName)
      get ProductSpecification with the given Specification name
      Returns:
      the instance of ProductSpecifications that is stored with the given Specification name.
    • removeRequestSpec

      void removeRequestSpec(String eventType, String version)
      used to remove a specification from the repository
      Parameters:
      eventType - the eventType of the spec to be removed
      version - the version of the spec to be removed
    • removeDomainSpecification

      void removeDomainSpecification(String productType)
      used to remove a specification from the repository
      Parameters:
      productType - the productType of the spec to be removed
    • getAllRequestSpecs

      Collection<RequestSpecification> getAllRequestSpecs()
      get all the RequestSpecifications from the repository.
      Returns:
      all the RequestSpecifications
    • getAllRequestSpecsUnCommitted

      Collection<RequestSpecification> getAllRequestSpecsUnCommitted()
      get all the RequestSpecifications from the repository.
      Returns:
      all the RequestSpecifications including the specifications which are in transaction
    • getResponseSpec

      oracle.communication.brm.charging.config.servicespec.ResponseSpecification getResponseSpec(String version, String productType, String eventType)
      get a ResponseSpecification from the repository using the supplied attributes. Together the version, productType, eventType combine to form a primary key to which the ResponseSpecification is associated.
      Parameters:
      version - the version identifer
      productType - the productType identifer
      eventType - the eventType identifier
      Returns:
      the ResponseSpecification that is associated with the supplied attributes. Will return null if a ResponseSpecification cannot be found.
    • getExternalProductType

      String getExternalProductType(String productType)
      gets the optional external product type associated with the supplied productType
      Parameters:
      productType - the ProductType whose associated external type should be returned.
      Returns:
      the associated external type, will be null if no external type was supplied in the input spec.
    • associate

      int associate(String eventType, String productType, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) throws oracle.communication.brm.charging.config.ConfigException
      Links the product type for the all the request specifications applicable for te given event type
      Parameters:
      eventType - the EventType whose associated external type should be linked to product type.
      productType - the ProductType whose associated external type should be linked to the event type.
      transactionContext - Transaction context for the association
      Returns:
      the number of request specifications associated
      Throws:
      oracle.communication.brm.charging.config.ConfigException
    • getProductType

      String getProductType(String externalProductType)
      gets the product type associated with the supplied externalProductType
      Parameters:
      externalProductType - the external ProductType which is associated with a ProductType.
      Returns:
      the associated ProductType type, will be null if no external type was supplied in the input spec.
    • getExternalEventType

      String getExternalEventType(String eventType)
      get the optional external event type associated with the spec.
      Parameters:
      eventType - the EventType whose associated external type should be returned.
      Returns:
      will return null if an optional external event was not supplied in the spec input.
    • getEventType

      String getEventType(String externalEventType)
      gets the event type associated with the supplied externalEventType
      Parameters:
      externalEventType - the external EventType which is associated with a EventType.
      Returns:
      the associated EventType type, will be null if no external type was supplied in the input spec.
    • getAllDiameterMediationEntries

      Collection<MediationEntry> getAllDiameterMediationEntries()
      method will return all Mediation Entries in the cache
      Returns:
      return all MediationEntrys in the cache
    • getAllRadiusMediationEntries

      Collection<MediationEntry> getAllRadiusMediationEntries()
      method will return all Mediation Entries in the cache
      Returns:
      return all Radius MediationEntrys in the cache
    • getAllHttpMediationEntries

      Collection<MediationEntry> getAllHttpMediationEntries()
      method will return all Mediation Entries in the cache
      Returns:
      return all MediationEntrys in the cache
    • getAllMediationSpecKeys

      Collection<String> getAllMediationSpecKeys()
      method will return all Mediation Entries in the cache
      Returns:
      return all MediationEntrys in the cache
    • getMediationEntries

      Collection<MediationEntry> getMediationEntries(String type)
      method will return all Mediation Entries in the cache
      Returns:
      return all Radius MediationEntrys in the cache
    • getAllMediationSpecForKey

      Collection<MediationEntry> getAllMediationSpecForKey(String key)
      method will return all Mediation Entries in the cache
      Returns:
      return all MediationEntrys in the cache
    • addObserver

      void addObserver(Observer observer)
      method will register an Observer with the ServiceSpecRepository. The observer will be notified if any state changes occur in the ServiceSpecRepository.
      Parameters:
      observer - the observer to be notified.
    • deleteObserver

      void deleteObserver(Observer observer)
      method will unregister an Observer with the ServiceSpecRepository. The observer will no longer be notified of state changes that occur in the ServiceSpecRepository.
      Parameters:
      observer - the observer to be unregister.
    • getAliasesMap

      Map<String,List<String>> getAliasesMap(String eventType, String version, String opType)
      Gets aliases map for the passed operation type
      Parameters:
      eventType - event type
      version - event type
      opType - operation name (e.g TERMINATE)
      Returns:
      aliases map for the passed operation type
    • getNetworkMappingSpecifications

      Map<String,NetworkMappingSpecification> getNetworkMappingSpecifications(String productType, String eventType, String version)
      Method to get the network mapping specifications for the given productType eventType and version. one retrieved, this will be stiched into the usage request builder
      Parameters:
      productType - ProductType
      eventType - Event Type
      version - version
      Returns:
      the network mappings
    • isNewOverwriteSpec

      boolean isNewOverwriteSpec(RequestSpecification requestSpecification, String brmEventType)
      Checks and returns {true}, if the passed request specification version already exists in cache or it is a new specification
      Parameters:
      requestSpecification -
      brmEventType - brm event type USAGE_PREPAID/USAGE_POSTPAID
      Returns:
      returns {true}, if the passed request specification version already exists in cache or it is a new specification