Class JPANotificationDAO
- java.lang.Object
-
- org.apache.syncope.core.persistence.jpa.dao.AbstractDAO<Notification>
-
- org.apache.syncope.core.persistence.jpa.dao.JPANotificationDAO
-
- All Implemented Interfaces:
DAO<Notification>,NotificationDAO
public class JPANotificationDAO extends AbstractDAO<Notification> implements NotificationDAO
-
-
Field Summary
Fields Modifier and Type Field Description protected TaskDAOtaskDAO-
Fields inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
LOG
-
-
Constructor Summary
Constructors Constructor Description JPANotificationDAO(TaskDAO taskDAO)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String key)Notificationfind(String key)List<Notification>findAll()List<Notification>findByRecipientsProvider(Implementation recipientsProvider)List<Notification>findByTemplate(MailTemplate template)Notificationsave(Notification notification)-
Methods inherited from class org.apache.syncope.core.persistence.jpa.dao.AbstractDAO
detach, entityManager, entityManagerFactory, isOracle, refresh
-
-
-
-
Field Detail
-
taskDAO
protected final TaskDAO taskDAO
-
-
Constructor Detail
-
JPANotificationDAO
public JPANotificationDAO(TaskDAO taskDAO)
-
-
Method Detail
-
find
@Transactional(readOnly=true) public Notification find(String key)
- Specified by:
findin interfaceNotificationDAO
-
findByTemplate
@Transactional(readOnly=true) public List<Notification> findByTemplate(MailTemplate template)
- Specified by:
findByTemplatein interfaceNotificationDAO
-
findByRecipientsProvider
public List<Notification> findByRecipientsProvider(Implementation recipientsProvider)
- Specified by:
findByRecipientsProviderin interfaceNotificationDAO
-
findAll
@Transactional(readOnly=true) public List<Notification> findAll()
- Specified by:
findAllin interfaceNotificationDAO
-
save
public Notification save(Notification notification)
- Specified by:
savein interfaceNotificationDAO
-
delete
public void delete(String key)
- Specified by:
deletein interfaceNotificationDAO
-
-