Class ProtectedContentServiceImpl
- java.lang.Object
-
- de.trustable.ca3s.core.service.impl.ProtectedContentServiceImpl
-
- All Implemented Interfaces:
ProtectedContentService
@Service @Transactional public class ProtectedContentServiceImpl extends Object implements ProtectedContentService
Service Implementation for managingProtectedContent.
-
-
Constructor Summary
Constructors Constructor Description ProtectedContentServiceImpl(ProtectedContentRepository protectedContentRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(Long id)Delete the protectedContent by id.List<ProtectedContent>findAll()Get all the protectedContents.Optional<ProtectedContent>findOne(Long id)Get one protectedContent by id.ProtectedContentsave(ProtectedContent protectedContent)Save a protectedContent.
-
-
-
Constructor Detail
-
ProtectedContentServiceImpl
public ProtectedContentServiceImpl(ProtectedContentRepository protectedContentRepository)
-
-
Method Detail
-
save
public ProtectedContent save(ProtectedContent protectedContent)
Save a protectedContent.- Specified by:
savein interfaceProtectedContentService- Parameters:
protectedContent- the entity to save.- Returns:
- the persisted entity.
-
findAll
@Transactional(readOnly=true) public List<ProtectedContent> findAll()
Get all the protectedContents.- Specified by:
findAllin interfaceProtectedContentService- Returns:
- the list of entities.
-
findOne
@Transactional(readOnly=true) public Optional<ProtectedContent> findOne(Long id)
Get one protectedContent by id.- Specified by:
findOnein interfaceProtectedContentService- Parameters:
id- the id of the entity.- Returns:
- the entity.
-
delete
public void delete(Long id)
Delete the protectedContent by id.- Specified by:
deletein interfaceProtectedContentService- Parameters:
id- the id of the entity.
-
-