Interface RequestSpecification
- All Superinterfaces:
DomainSpecification
Class represents a RequestSpecification as it is produced by the DSL ServiceSpecParser.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oracle.communication.brm.charging.config.servicespec.DomainSpecification
DomainSpecification.DomainSpecificationType
-
Method Summary
Modifier and TypeMethodDescriptionboolean
associateExternalProductType
(String productType, String externalProductType) Add a product type and associated external product typegetAliasesMap
(String opType) Gets aliases map for the passed operation typeA set of all table names associated to the fields of this RequestSpecificationgets the brm event type for this RequestSpecification.gets the EventType for this RequestSpecification.get the optional external event type associated with the spec.getExternalProductType
(String productType) gets the external product type associated with the supplied productTypeThis method returns only GSU mapping information for the supplied operation type.getNetworkMappingDefinitions
(String opType) This method returns mapping information for the supplied operation type.getNetworkMappingDefinitions
(String opType, Map<String, NetworkMappingSpecification> mappingSpecifications) This method returns mapping information for the supplied operation type.gets the NetworkType for this RequestSpecification.gets the parent event type for this RequestSpecification.Gets fields in payload that are mutable in extensions post rating.gets the ProductType for this RequestSpecification.boolean
A system wide flag to indicate if virtual column is enabled.Generates request specification string that parser can parse again.Methods inherited from interface oracle.communication.brm.charging.config.servicespec.DomainSpecification
getAttributeInfoMap, getAttributeType, getName, getPayloadSpec, getPayloadSpec, getPayloadSpecs, getSpecificationType, getVersion, hasAttribute, hasAttributes
-
Method Details
-
getProductTypes
gets the ProductType for this RequestSpecification.- Returns:
- the ProductType associated with this RequestSpecification.
-
getExternalProductType
gets the 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.
-
getNetworkType
String getNetworkType()gets the NetworkType for this RequestSpecification.- Returns:
- the associated NetworkType
-
getEventType
String getEventType()gets the EventType for this RequestSpecification.- Returns:
- the associated EventType
-
getParentEventType
String getParentEventType()gets the parent event type for this RequestSpecification.- Returns:
- the associated parent event type
-
getBrmEventType
String getBrmEventType()gets the brm event type for this RequestSpecification.- Returns:
- the associated brm event type
-
getExternalEventType
String getExternalEventType()get the optional external event type associated with the spec.- Returns:
- will return null if an optional external event was not supplied in the spec input.
-
getNetworkMappingDefinitions
This method returns mapping information for the supplied operation type. All RequestSpec payload fields containing the "network_field" property will be returned to the caller.- Parameters:
opType
- the operation for which the mapping data is required.- Returns:
- a list of fields that require mapping to network entities.
-
getNetworkMappingDefinitions
Map<String,List<NetworkMappingDefinition>> getNetworkMappingDefinitions(String opType, Map<String, NetworkMappingSpecification> mappingSpecifications) This method returns mapping information for the supplied operation type. All RequestSpec payload fields containing entries in mapping specification property will be returned to the caller.- Parameters:
opType
- the operation for which the mapping data is required.mappingSpecifications
- The mapping specifications- Returns:
- a list of fields that require mapping to network entities.
-
getGSUNetworkMappingDefinitions
This method returns only GSU mapping information for the supplied operation type. The values are derived from the RSU block fields that contain the "network_field" property. The prefix block names are stripped-off and only the GSU fieldnames are returned.- Parameters:
opType
- the operation for which the mapping data is required.- Returns:
- a list of RSU fields that require mapping to network entities.
-
isVirtualColumnEnabled
boolean isVirtualColumnEnabled()A system wide flag to indicate if virtual column is enabled. Used by BrmCdrPlugin- Returns:
-
getAssociatedTableNames
A set of all table names associated to the fields of this RequestSpecification- Returns:
-
associateExternalProductType
Add a product type and associated external product type- Parameters:
productType
- internal/ece product typeexternalProductType
- external/brm product type- Returns:
- true, if new/modified - false, when unchanged
-
getCreateDateTime
ZonedDateTime getCreateDateTime()- Returns:
- Time when the RequestSpecification was stored in the ServiceSpecRepository after consuming Pdc's BCEventAttributeSpec
-
getAliasesMap
Gets aliases map for the passed operation type- Parameters:
opType
- operation type- Returns:
- aliases map for the passed operation type
-
toSpecFormat
String toSpecFormat()Generates request specification string that parser can parse again.- Returns:
- generates request specification string that parser can parse again
-
getPostRatingMutableFields
Collection<String> getPostRatingMutableFields()Gets fields in payload that are mutable in extensions post rating. These are payload fields that doesn't have target specification name as "Pricing".- Returns:
- gets fields in payload that are mutable in extensions post rating
-