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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface oracle.communication.brm.charging.util.transaction.Repository
DEFAULT_VERSION_NUMBER -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(com.tangosol.util.CompositeKey key, NetworkMappingSpecification networkMappingSpecification) method will add the Network Mapping Specification into the cache.voidadd(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) method will add both Request, Response and Mediation objects to the repositoryvoidadd(Collection<RequestSpecification> requestSpecs, Collection<oracle.communication.brm.charging.config.servicespec.ResponseSpecification> responseSpecs, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) method will add both Request and Response specifications to the repository<T extends MediationEntry>
voidadd(Collection<T> mediationEntries) method will add only mediation entries to the repositoryvoidadd(DomainSpecification domainSpecification, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) method will add Domain object specification (Customer and Service) to the Coh templates, with transaction support<T extends MediationEntry>
voidaddHttpMediationEntries(Collection<T> httpMediationEntries) method will add only mediation entries to the repositoryvoidaddObserver(Observer observer) method will register an Observer with the ServiceSpecRepository.<T extends MediationEntry>
voidaddRadiusMediationEntries(Collection<T> radiusMediationEntries) method will add only mediation entries to the repositoryintassociate(String eventType, String productType, oracle.communication.brm.charging.util.transaction.TransactionContext transactionContext) Links the product type for the all the request specifications applicable for te given event typevoiddeleteObserver(Observer observer) method will unregister an Observer with the ServiceSpecRepository.getAliasesMap(String eventType, String version, String opType) Gets aliases map for the passed operation typemethod will return all Mediation Entries in the cachemethod will return all Mediation Entries in the cachemethod will return all Mediation Entries in the cachemethod will return all Mediation Entries in the cacheget all ProductSpecifications from the repositorymethod will return all Mediation Entries in the cacheget all the RequestSpecifications from the repository.get all the RequestSpecifications from the repository.get CustomerSpecification from the repository There will be only one CustomerSpecification at this time.getEventType(String externalEventType) gets the event type associated with the supplied externalEventTypegetExternalEventType(String eventType) get the optional external event type associated with the spec.getExternalProductType(String productType) gets the optional external product type associated with the supplied productTypegetMediationEntries(String type) method will return all Mediation Entries in the cachegetNetworkMappingSpecifications(String productType, String eventType, String version) Method to get the network mapping specifications for the given productType eventType and version.getProductSpecification(String productSpecName) get ProductSpecification with the given Specification namegetProductType(String externalProductType) gets the product type associated with the supplied externalProductTypegetRequestSpec(String version, String productType, String eventType) get a RequestSpecification from the repository using the supplied attributes.oracle.communication.brm.charging.config.servicespec.ResponseSpecificationgetResponseSpec(String version, String productType, String eventType) get a ResponseSpecification from the repository using the supplied attributes.booleanisNewOverwriteSpec(RequestSpecification requestSpecification, String brmEventType) Checks and returns {true}, if the passed request specification version already exists in cache or it is a new specificationvoidremoveDomainSpecification(String productType) used to remove a specification from the repositoryvoidremoveRequestSpec(String eventType, String version) used to remove a specification from the repositoryMethods inherited from interface oracle.communication.brm.charging.util.transaction.Repository
getNumberOfVersions, removeMethods inherited from interface oracle.communication.brm.charging.util.transaction.TransactionalRepository
commit, rollback
-
Field Details
-
DIAMETER_MEDIATION_TABLE_CHANGED
- See Also:
-
RADIUS_MEDIATION_TABLE_CHANGED
- See Also:
-
HTTP_MEDIATION_TABLE_CHANGED
- See Also:
-
REQUEST_SPEC_CHANGED
- See Also:
-
NETWORK_MAPPING_TABLE_CHANGED
- See Also:
-
-
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
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
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
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 ProducttransactionContext- 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
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 identiferproductType- the productType identifereventType- 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
get ProductSpecification with the given Specification name- Returns:
- the instance of ProductSpecifications that is stored with the given Specification name.
-
removeRequestSpec
used to remove a specification from the repository- Parameters:
eventType- the eventType of the spec to be removedversion- the version of the spec to be removed
-
removeDomainSpecification
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 identiferproductType- the productType identifereventType- the eventType identifier- Returns:
- the ResponseSpecification that is associated with the supplied attributes. Will return null if a ResponseSpecification cannot be found.
-
getExternalProductType
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
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
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
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
method will return all Mediation Entries in the cache- Returns:
- return all Radius MediationEntrys in the cache
-
getAllMediationSpecForKey
method will return all Mediation Entries in the cache- Returns:
- return all MediationEntrys in the cache
-
addObserver
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
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
Gets aliases map for the passed operation type- Parameters:
eventType- event typeversion- event typeopType- 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- ProductTypeeventType- Event Typeversion- version- Returns:
- the network mappings
-
isNewOverwriteSpec
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
-