Class RecipientRepository

java.lang.Object
org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<Recipient>
org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Recipient>
org.silverpeas.components.questionreply.repository.RecipientRepository
All Implemented Interfaces:
org.silverpeas.core.persistence.datasource.repository.EntityRepository<Recipient>, org.silverpeas.core.persistence.datasource.repository.WithSaveAndFlush<Recipient>

@Repository public class RecipientRepository extends org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Recipient>
Repository of the users to whom the questions of the FAQs are addressed.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    deleteByQuestion(long questionId)
    Deletes all the recipients of the specified question.
    findByQuestion(long questionId)
    Finds the users to whom the specified question is addressed.

    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

    delete, deleteById, getById, save, save
  • Constructor Details

    • RecipientRepository

      public RecipientRepository()
  • Method Details

    • findByQuestion

      public List<Recipient> findByQuestion(long questionId)
      Finds the users to whom the specified question is addressed.
      Parameters:
      questionId - the unique identifier of the question.
      Returns:
      the recipients of the question.
    • deleteByQuestion

      public void deleteByQuestion(long questionId)
      Deletes all the recipients of the specified question.
      Parameters:
      questionId - the unique identifier of the question.