Class AcmeChallengeServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.AcmeChallengeServiceImpl
-
- All Implemented Interfaces:
AcmeChallengeService
@Service @Transactional public class AcmeChallengeServiceImpl extends Object implements AcmeChallengeService
Service Implementation for managingAcmeChallenge.
-
-
Constructor Summary
Constructors Constructor Description AcmeChallengeServiceImpl(AcmeChallengeRepository acmeChallengeRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the acmeChallenge by id.List<AcmeChallenge>findAll()Get all the acmeChallenges.Optional<AcmeChallenge>findOne(Long id)Get one acmeChallenge by id.AcmeChallengesave(AcmeChallenge acmeChallenge)Save a acmeChallenge.
-
-
-
Constructor Detail
-
AcmeChallengeServiceImpl
public AcmeChallengeServiceImpl(AcmeChallengeRepository acmeChallengeRepository)
-
-
Method Detail
-
save
public AcmeChallenge save(AcmeChallenge acmeChallenge)
Save a acmeChallenge.- Specified by:
savein interfaceAcmeChallengeService- Parameters:
acmeChallenge- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<AcmeChallenge> findAll()
Get all the acmeChallenges.- Specified by:
findAllin interfaceAcmeChallengeService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<AcmeChallenge> findOne(Long id)
Get one acmeChallenge by id.- Specified by:
findOnein interfaceAcmeChallengeService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the acmeChallenge by id.- Specified by:
deletein interfaceAcmeChallengeService- Parameters:
id- the id of the entity.
-
-