Class PipelineServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.PipelineServiceImpl
-
- All Implemented Interfaces:
PipelineService
@Service @Transactional public class PipelineServiceImpl extends Object implements PipelineService
Service Implementation for managingPipeline.
-
-
Constructor Summary
Constructors Constructor Description PipelineServiceImpl(PipelineRepository pipelineRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the pipeline by id.List<Pipeline>findAll()Get all the pipelines.Optional<Pipeline>findOne(Long id)Get one pipeline by id.Pipelinesave(Pipeline pipeline)Save a pipeline.
-
-
-
Constructor Detail
-
PipelineServiceImpl
public PipelineServiceImpl(PipelineRepository pipelineRepository)
-
-
Method Detail
-
save
public Pipeline save(Pipeline pipeline)
Save a pipeline.- Specified by:
savein interfacePipelineService- Parameters:
pipeline- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<Pipeline> findAll()
Get all the pipelines.- Specified by:
findAllin interfacePipelineService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<Pipeline> findOne(Long id)
Get one pipeline by id.- Specified by:
findOnein interfacePipelineService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the pipeline by id.- Specified by:
deletein interfacePipelineService- Parameters:
id- the id of the entity.
-
-