Package org.silverpeas.core.reminder
Interface ReminderRepository
-
- All Superinterfaces:
EntityRepository<Reminder>
- All Known Implementing Classes:
DefaultReminderRepository
public interface ReminderRepository extends EntityRepository<Reminder>
Repository of reminders. It manages the persistence of the reminders of the users on contributions.- Author:
- mmoquillon
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract 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.static ReminderRepository
get()
Gets an instance of this repository.-
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
-
get
static ReminderRepository get()
Gets an instance of this repository.- Returns:
- a
ReminderRepository
instance.
-
findByUserId
List<Reminder> findByUserId(String id)
Finds in this repository all the reminders set by and for the specified user.- Parameters:
id
- the unique identifier of a user.- Returns:
- a list of
Reminder
instances. Empty if the user has no reminders.
-
findByContributionId
List<Reminder> findByContributionId(ContributionIdentifier contributionId)
Finds in this repository all the reminders related to the specified contribution.- 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
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.- 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.
-
-