Interface RequestSpecification

All Superinterfaces:
DomainSpecification

public interface RequestSpecification extends DomainSpecification
Class represents a RequestSpecification as it is produced by the DSL ServiceSpecParser.
  • Method Details

    • getProductTypes

      List<String> getProductTypes()
      gets the ProductType for this RequestSpecification.
      Returns:
      the ProductType associated with this RequestSpecification.
    • getExternalProductType

      String getExternalProductType(String productType)
      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

      List<NetworkMappingDefinition> getNetworkMappingDefinitions(String opType)
      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

      List<NetworkMappingDefinition> getGSUNetworkMappingDefinitions(String opType)
      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

      Set<String> getAssociatedTableNames()
      A set of all table names associated to the fields of this RequestSpecification
      Returns:
    • associateExternalProductType

      boolean associateExternalProductType(String productType, String externalProductType)
      Add a product type and associated external product type
      Parameters:
      productType - internal/ece product type
      externalProductType - 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

      Map<String,List<String>> getAliasesMap(String opType)
      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