Package org.guvnor.ala.ui.service
Interface ProviderService
-
public interface ProviderServiceService for managing the providers related to the different provider types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcreateProvider(ProviderType providerType, ProviderConfiguration configuration)Creates a provider by associating it to a provider type.voiddeleteProvider(ProviderKey providerKey)Deletes a provider.ProvidergetProvider(ProviderKey providerKey)Gets a provider.Collection<Provider>getProviders(ProviderType providerType)Gets the provides related to a given provider type.Collection<ProviderKey>getProvidersKey(ProviderType providerType)Gets the keys of the providers related to a given provider type.
-
-
-
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.
-
-