Package org.guvnor.ala.registry
Interface PipelineRegistry
-
- All Known Implementing Classes:
InMemoryPipelineRegistry
public interface PipelineRegistryRepresents the PipelineRegistry where all the Pipelines are registered
-
-
Field Summary
Fields Modifier and Type Field Description static StringPIPELINE_NAME_SORT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PipelinegetPipelineByName(String pipelineId)Gets a Pipeline by Name.List<Pipeline>getPipelines(int page, int pageSize, String sort, boolean sortOrder)Gets all the registered PipelinesList<Pipeline>getPipelines(String providerType, String version, int page, int pageSize, String sort, boolean sortOrder)Gets all the registered Pipelines for a given provider type.ProviderTypegetProviderType(String pipelineId)Gets the associated provider type for a given pipeline.voidregisterPipeline(Pipeline pipeline)Registers a PipelinevoidregisterPipeline(Pipeline pipeline, ProviderType providerType)Registers a Pipeline by associating it to a provider type.
-
-
-
Field Detail
-
PIPELINE_NAME_SORT
static final String PIPELINE_NAME_SORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
registerPipeline
void registerPipeline(Pipeline pipeline)
Registers a Pipeline- Parameters:
pipeline- The Pipeline to be registered.
-
registerPipeline
void registerPipeline(Pipeline pipeline, ProviderType providerType)
Registers a Pipeline by associating it to a provider type.- Parameters:
pipeline- The Pipeline to be registered.providerType- The provider type for associating the Pipeline.
-
getPipelineByName
Pipeline getPipelineByName(String pipelineId)
Gets a Pipeline by Name.- Parameters:
pipelineId- the pipeline id.- Returns:
- the pipeline corresponding to the pipeline id.
-
getPipelines
List<Pipeline> getPipelines(int page, int pageSize, String sort, boolean sortOrder)
Gets all the registered Pipelines- Parameters:
page- the page numberpageSize- the page sizesort- the sort columnsortOrder- the sort order to use: true ascending, false descending- Returns:
- a list with all the available pipelines.
-
getPipelines
List<Pipeline> getPipelines(String providerType, String version, int page, int pageSize, String sort, boolean sortOrder)
Gets all the registered Pipelines for a given provider type.- Parameters:
providerType- A provider type name.version- the provider type version.page- the page numberpageSize- the page sizesort- the sort columnsortOrder- the sort order to use: true ascending, false descending- Returns:
- the list of pipelines associated to the given provider.
-
getProviderType
ProviderType getProviderType(String pipelineId)
Gets the associated provider type for a given pipeline.- Parameters:
pipelineId- a pipeline id.- Returns:
- a provider type in cases where the pipeline was associated to one, null in any other case.
-
-