Interface ServiceIDLookup

  • All Superinterfaces:
    java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.Long>>
    All Known Implementing Classes:
    ServiceIDLookupImpl

    public interface ServiceIDLookup
    extends java.lang.Iterable<java.util.Map.Entry<java.lang.String,​java.lang.Long>>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getIDForName​(java.lang.String name)
      Lookup the numerical identifier which is currently mapped to a particular service name in the DiameterCharging service's serviceID configuration.
      java.lang.String getServiceNameForID​(long id)
      Lookup the name which is currently mapped to a particular service ID in the DiameterCharging service's service ID configuration.
      • Methods inherited from interface java.lang.Iterable

        forEach, iterator, spliterator
    • Method Detail

      • getServiceNameForID

        java.lang.String getServiceNameForID​(long id)
        Lookup the name which is currently mapped to a particular service ID in the DiameterCharging service's service ID configuration.
        Parameters:
        id - The service ID as it appears in the MSCC's 'serviceIDs' AVP
        Returns:
        The name currently mapped to the ID or null if there is currently no name mapped to the ID.
      • getIDForName

        long getIDForName​(java.lang.String name)
        Lookup the numerical identifier which is currently mapped to a particular service name in the DiameterCharging service's serviceID configuration.
        Parameters:
        name - The service name as it is used e.g. by the promotion features to identify a service
        Returns:
        The ID currently mapped to the name or -1 if there is currently no name mapped to the ID.