Class 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 -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByQuestion(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, saveAndFlushMethods 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, updateFromNamedQueryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.persistence.datasource.repository.EntityRepository
delete, deleteById, getById, save, save
-
Constructor Details
-
RecipientRepository
public RecipientRepository()
-
-
Method Details
-
findByQuestion
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.
-