Package org.silverpeas.core.reminder
Class DefaultReminderRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Reminder>
-
- org.silverpeas.core.reminder.DefaultReminderRepository
-
- All Implemented Interfaces:
EntityRepository<Reminder>
,WithSaveAndFlush<Reminder>
,ReminderRepository
@Repository @Singleton public class DefaultReminderRepository extends BasicJpaEntityRepository<Reminder> implements ReminderRepository
Default implementation of the JPA repository that stores the reminders for Silverpeas- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description DefaultReminderRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Reminder>
findByContributionAndUserIds(ContributionIdentifier contributionId, String userId)
Finds in this repository all the reminders related to the specified contribution that were set by and for the specified user.List<Reminder>
findByContributionId(ContributionIdentifier contributionId)
Finds in this repository all the reminders related to the specified contribution.List<Reminder>
findByUserId(String id)
Finds in this repository all the reminders set by and for the specified user.-
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
-
-
-
-
Method Detail
-
findByUserId
public List<Reminder> findByUserId(String id)
Description copied from interface:ReminderRepository
Finds in this repository all the reminders set by and for the specified user.- Specified by:
findByUserId
in interfaceReminderRepository
- Parameters:
id
- the unique identifier of a user.- Returns:
- a list of
Reminder
instances. Empty if the user has no reminders.
-
findByContributionId
public List<Reminder> findByContributionId(ContributionIdentifier contributionId)
Description copied from interface:ReminderRepository
Finds in this repository all the reminders related to the specified contribution.- Specified by:
findByContributionId
in interfaceReminderRepository
- Parameters:
contributionId
- the unique identifier of a contribution.- Returns:
- a list of
Reminder
instances. Empty if there is no reminders that were set for the contribution.
-
findByContributionAndUserIds
public List<Reminder> findByContributionAndUserIds(ContributionIdentifier contributionId, String userId)
Description copied from interface:ReminderRepository
Finds in this repository all the reminders related to the specified contribution that were set by and for the specified user.- Specified by:
findByContributionAndUserIds
in interfaceReminderRepository
- Parameters:
contributionId
- the unique identifier of a contribution.userId
- the unique identifier of a user.- Returns:
- a list of
Reminder
instances. Empty if the user has set no reminders for the contribution.
-
-