Class CSRServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.CSRServiceImpl
-
- All Implemented Interfaces:
CSRService
@Service @Transactional public class CSRServiceImpl extends Object implements CSRService
Service Implementation for managingCSR.
-
-
Constructor Summary
Constructors Constructor Description CSRServiceImpl(CSRRepository cSRRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the cSR by id.List<CSR>findAll()Get all the cSRS.List<CSR>findAllWhereCertificateIsNull()Get all the cSRS where Certificate isnull.Optional<CSR>findOne(Long id)Get one cSR by id.CSRsave(CSR cSR)Save a cSR.
-
-
-
Constructor Detail
-
CSRServiceImpl
public CSRServiceImpl(CSRRepository cSRRepository)
-
-
Method Detail
-
save
public CSR save(CSR cSR)
Save a cSR.- Specified by:
savein interfaceCSRService- Parameters:
cSR- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<CSR> findAll()
Get all the cSRS.- Specified by:
findAllin interfaceCSRService- Returns:
- the list of entities.
-
findAllWhereCertificateIsNull
@Transactional(readOnly=true) public List<CSR> findAllWhereCertificateIsNull()
Get all the cSRS where Certificate isnull.- Specified by:
findAllWhereCertificateIsNullin interfaceCSRService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<CSR> findOne(Long id)
Get one cSR by id.- Specified by:
findOnein interfaceCSRService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the cSR by id.- Specified by:
deletein interfaceCSRService- Parameters:
id- the id of the entity.
-
-