Class RatingRepository
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.repository.jpa.AbstractJpaEntityRepository<E>
-
- org.silverpeas.core.persistence.datasource.repository.jpa.BasicJpaEntityRepository<Rating>
-
- org.silverpeas.core.contribution.rating.service.RatingRepository
-
- All Implemented Interfaces:
EntityRepository<Rating>
,WithSaveAndFlush<Rating>
@Repository public class RatingRepository extends BasicJpaEntityRepository<Rating>
JPA repository of ratings. It provides business methods to operate on the persistence of the ratings.- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description RatingRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAllRatingsInComponentInstance(String instanceId)
void
deleteAllRatingsOfAContribution(ContributionRatingPK contribution)
Map<String,ContributionRating>
getAllRatingByContributions(String instanceId, String contributionType, String... contributionIds)
Rating
getRating(RaterRatingPK raterRating)
void
moveAllRatingsOfAContribution(ContributionRatingPK contribution, String instanceId)
-
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
-
-
-
-
Method Detail
-
deleteAllRatingsOfAContribution
public void deleteAllRatingsOfAContribution(ContributionRatingPK contribution)
-
deleteAllRatingsInComponentInstance
public void deleteAllRatingsInComponentInstance(String instanceId)
-
getRating
public Rating getRating(RaterRatingPK raterRating)
-
getAllRatingByContributions
public Map<String,ContributionRating> getAllRatingByContributions(String instanceId, String contributionType, String... contributionIds)
-
moveAllRatingsOfAContribution
public void moveAllRatingsOfAContribution(ContributionRatingPK contribution, String instanceId)
-
-