Class DefaultReminderRepository

    • Constructor Detail

      • DefaultReminderRepository

        public DefaultReminderRepository()
    • 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 interface ReminderRepository
        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 interface ReminderRepository
        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 interface ReminderRepository
        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.