Class CSRServiceImpl

  • All Implemented Interfaces:
    CSRService

    @Service
    @Transactional
    public class CSRServiceImpl
    extends Object
    implements CSRService
    Service Implementation for managing CSR.
    • Constructor Detail

      • CSRServiceImpl

        public CSRServiceImpl​(CSRRepository cSRRepository)
    • Method Detail

      • save

        public CSR save​(CSR cSR)
        Save a cSR.
        Specified by:
        save in interface CSRService
        Parameters:
        cSR - the entity to save.
        Returns:
        the persisted entity.
      • findAll

        @Transactional(readOnly=true)
        public List<CSR> findAll()
        Get all the cSRS.
        Specified by:
        findAll in interface CSRService
        Returns:
        the list of entities.
      • findAllWhereCertificateIsNull

        @Transactional(readOnly=true)
        public List<CSR> findAllWhereCertificateIsNull()
        Get all the cSRS where Certificate is null.
        Specified by:
        findAllWhereCertificateIsNull in interface CSRService
        Returns:
        the list of entities.
      • findOne

        @Transactional(readOnly=true)
        public Optional<CSR> findOne​(Long id)
        Get one cSR by id.
        Specified by:
        findOne in interface CSRService
        Parameters:
        id - the id of the entity.
        Returns:
        the entity.
      • delete

        public void delete​(Long id)
        Delete the cSR by id.
        Specified by:
        delete in interface CSRService
        Parameters:
        id - the id of the entity.