Interface PostStatusRepository
-
- All Superinterfaces:
Repository<PostStatus,Long>,SpringCrudRepository<PostStatus,Long>
public interface PostStatusRepository extends SpringCrudRepository<PostStatus,Long>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IntegerdeleteByPostId(String postId)Optional<PostStatus>findByPostIdAndUserId(String postId, String userId)List<PostStatus>findByPostIdAndUserIdNot(String postId, String userId)List<PostStatus>findByTopicIdAndUserId(String topicId, String userId)List<PostStatus>findByTopicIdAndUserIdAndViewed(String topicId, String userId, Boolean viewed)List<PostStatus>findByUserId(String userId)-
Methods inherited from interface org.sakaiproject.springframework.data.SpringCrudRepository
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAll, findAllById, findById, getById, save, saveAll
-
-
-
-
Method Detail
-
findByUserId
List<PostStatus> findByUserId(String userId)
-
findByTopicIdAndUserId
List<PostStatus> findByTopicIdAndUserId(String topicId, String userId)
-
findByTopicIdAndUserIdAndViewed
List<PostStatus> findByTopicIdAndUserIdAndViewed(String topicId, String userId, Boolean viewed)
-
findByPostIdAndUserId
Optional<PostStatus> findByPostIdAndUserId(String postId, String userId)
-
findByPostIdAndUserIdNot
List<PostStatus> findByPostIdAndUserIdNot(String postId, String userId)
-
-