Class DelayedNotificationDataJpaRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<DelayedNotificationData>
-
- org.silverpeas.core.notification.user.delayed.repository.DelayedNotificationDataJpaRepository
-
- All Implemented Interfaces:
DelayedNotificationDataRepository
,EntityRepository<DelayedNotificationData>
,WithSaveAndFlush<DelayedNotificationData>
@Repository public class DelayedNotificationDataJpaRepository extends BasicJpaEntityRepository<DelayedNotificationData> implements DelayedNotificationDataRepository
-
-
Constructor Summary
Constructors Constructor Description DelayedNotificationDataJpaRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
deleteByIds(Collection<Long> ids)
List<Integer>
findAllUsersToBeNotified(Collection<Integer> aimedChannels)
List<DelayedNotificationData>
findByUserId(int userId, Collection<Integer> aimedChannels)
List<DelayedNotificationData>
findDelayedNotification(DelayedNotificationData delayedNotification)
List<Integer>
findUsersToBeNotified(Set<NotifChannel> aimedChannels, Set<DelayedNotificationFrequency> aimedFrequencies, boolean isThatUsersWithNoSettingHaveToBeNotified)
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository
deleteByComponentInstanceId, saveAndFlush
-
Methods inherited from class org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository
contains, countByCriteria, countFromJpqlString, delete, deleteById, deleteFromJpqlQuery, deleteFromNamedQuery, findByCriteria, findByNamedQuery, findFirstByNamedQuery, flush, getAll, getById, getById, getEntityClass, getEntityManager, getFromJpqlString, getFromJpqlString, getFromNamedQuery, getFromNamedQuery, getIdentifierConverter, getMaximumItemsInClause, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromJpqlString, listFromNamedQuery, listFromNamedQuery, newNamedParameters, noParameter, save, setMaximumItemsInClause, split, streamByNamedQuery, streamByNamedQuery, streamFromJpqlString, streamFromJpqlString, updateFromJpqlQuery, updateFromNamedQuery
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
contains, delete, delete, deleteByComponentInstanceId, deleteById, deleteById, findByCriteria, flush, getAll, getById, getById, getById, save, save, save
-
Methods inherited from interface org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush
saveAndFlush
-
-
-
-
Method Detail
-
findAllUsersToBeNotified
public List<Integer> findAllUsersToBeNotified(Collection<Integer> aimedChannels)
- Specified by:
findAllUsersToBeNotified
in interfaceDelayedNotificationDataRepository
-
findByUserId
public List<DelayedNotificationData> findByUserId(int userId, Collection<Integer> aimedChannels)
- Specified by:
findByUserId
in interfaceDelayedNotificationDataRepository
-
deleteByIds
public long deleteByIds(Collection<Long> ids)
- Specified by:
deleteByIds
in interfaceDelayedNotificationDataRepository
-
findUsersToBeNotified
public List<Integer> findUsersToBeNotified(Set<NotifChannel> aimedChannels, Set<DelayedNotificationFrequency> aimedFrequencies, boolean isThatUsersWithNoSettingHaveToBeNotified)
- Specified by:
findUsersToBeNotified
in interfaceDelayedNotificationDataRepository
-
findDelayedNotification
public List<DelayedNotificationData> findDelayedNotification(DelayedNotificationData delayedNotification)
- Specified by:
findDelayedNotification
in interfaceDelayedNotificationDataRepository
-
-