Interface ProviderTypeService


  • public interface ProviderTypeService
    Service for managing the provider types.
    • Method Detail

      • getAvailableProviderTypes

        Collection<ProviderType> getAvailableProviderTypes()
        Gets the list of available provider types in the system.
        Returns:
        a list of ProviderType.
      • getProviderType

        ProviderType getProviderType​(ProviderTypeKey providerTypeKey)
        Gets a provider type given a provider type key.
        Parameters:
        providerTypeKey - a provider type key.
        Returns:
        the provider type or null when there aren't a provider with given key.
      • getEnabledProviderTypes

        Collection<ProviderType> getEnabledProviderTypes()
        Gets the list of provider types currently enabled in the system.
        Returns:
        a list of ProviderType.
      • enableProviderTypes

        void enableProviderTypes​(Collection<ProviderType> providerTypes)
        Enables a collection of provider types.
        Parameters:
        providerTypes - a collection of provider types to enable.
      • disableProviderType

        void disableProviderType​(ProviderType providerType)
        Disables a provider type.
        Parameters:
        providerType - a provider type to disable.
      • getProviderTypesStatus

        Map<ProviderType,​ProviderTypeStatus> getProviderTypesStatus()
        Gets the status of the available provider types.
        Returns:
        a map with the status for each for the available provider types.