Interface ProviderService


  • public interface ProviderService
    Service for managing the providers related to the different provider types.
    • Method Detail

      • getProviders

        Collection<Provider> getProviders​(ProviderType providerType)
        Gets the provides related to a given provider type.
        Parameters:
        providerType - a provider type.
        Returns:
        a list of providers.
      • getProvidersKey

        Collection<ProviderKey> getProvidersKey​(ProviderType providerType)
        Gets the keys of the providers related to a given provider type.
        Parameters:
        providerType - a provider type.
        Returns:
        a list of provider keys.
      • createProvider

        void createProvider​(ProviderType providerType,
                            ProviderConfiguration configuration)
        Creates a provider by associating it to a provider type.
        Parameters:
        providerType - the provider for creating the provider.
        configuration - a provider configuration with all the required parameters for creating the provider.
      • deleteProvider

        void deleteProvider​(ProviderKey providerKey)
        Deletes a provider.
        Parameters:
        providerKey - the key of the provider to delete.
      • getProvider

        Provider getProvider​(ProviderKey providerKey)
        Gets a provider.
        Parameters:
        providerKey - the key of the provider to return.
        Returns:
        the provider identified by the key if exists, null in any other case.