Class CertificateServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.CertificateServiceImpl
-
- All Implemented Interfaces:
CertificateService
@Service @Transactional public class CertificateServiceImpl extends Object implements CertificateService
Service Implementation for managingCertificate.
-
-
Constructor Summary
Constructors Constructor Description CertificateServiceImpl(CertificateRepository certificateRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the certificate by id.org.springframework.data.domain.Page<Certificate>findAll(org.springframework.data.domain.Pageable pageable)Get all the certificates.Optional<Certificate>findOne(Long id)Get one certificate by id.Certificatesave(Certificate certificate)Save a certificate.
-
-
-
Constructor Detail
-
CertificateServiceImpl
public CertificateServiceImpl(CertificateRepository certificateRepository)
-
-
Method Detail
-
save
public Certificate save(Certificate certificate)
Save a certificate.- Specified by:
savein interfaceCertificateService- Parameters:
certificate- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public org.springframework.data.domain.Page<Certificate> findAll(org.springframework.data.domain.Pageable pageable)
Get all the certificates.- Specified by:
findAllin interfaceCertificateService- Parameters:
pageable- the pagination information.- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<Certificate> findOne(Long id)
Get one certificate by id.- Specified by:
findOnein interfaceCertificateService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the certificate by id.- Specified by:
deletein interfaceCertificateService- Parameters:
id- the id of the entity.
-
-