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 TaskDAO
taskDAO
-
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 void
delete(String key)
Notification
find(String key)
List<Notification>
findAll()
List<Notification>
findByRecipientsProvider(Implementation recipientsProvider)
List<Notification>
findByTemplate(MailTemplate template)
Notification
save(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:
find
in interfaceNotificationDAO
-
findByTemplate
@Transactional(readOnly=true) public List<Notification> findByTemplate(MailTemplate template)
- Specified by:
findByTemplate
in interfaceNotificationDAO
-
findByRecipientsProvider
public List<Notification> findByRecipientsProvider(Implementation recipientsProvider)
- Specified by:
findByRecipientsProvider
in interfaceNotificationDAO
-
findAll
@Transactional(readOnly=true) public List<Notification> findAll()
- Specified by:
findAll
in interfaceNotificationDAO
-
save
public Notification save(Notification notification)
- Specified by:
save
in interfaceNotificationDAO
-
delete
public void delete(String key)
- Specified by:
delete
in interfaceNotificationDAO
-
-