Interface UserPreferenceRepository

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.List<UserPreference> findByProjectIdAndUserId​(java.lang.Long projectId, java.lang.Long userId)
      Find user preferences by project and user
      java.util.Optional<UserPreference> findByProjectIdAndUserIdAndFilterId​(java.lang.Long projectId, java.lang.Long userId, java.lang.Long filterId)
      Find unique user preference
      void removeByProjectIdAndUserId​(java.lang.Long projectId, java.lang.Long userId)
      Remove user preferences by project and user
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByProjectIdAndUserId

        java.util.List<UserPreference> findByProjectIdAndUserId​(java.lang.Long projectId,
                                                                java.lang.Long userId)
        Find user preferences by project and user
        Parameters:
        projectId - Project id
        userId - User id
        Returns:
        List of user preferences
      • findByProjectIdAndUserIdAndFilterId

        java.util.Optional<UserPreference> findByProjectIdAndUserIdAndFilterId​(java.lang.Long projectId,
                                                                               java.lang.Long userId,
                                                                               java.lang.Long filterId)
        Find unique user preference
        Parameters:
        projectId - Project id
        userId - User id
        filterId - Filter id
        Returns:
        Optional of UserPreference
      • removeByProjectIdAndUserId

        void removeByProjectIdAndUserId​(java.lang.Long projectId,
                                        java.lang.Long userId)
        Remove user preferences by project and user
        Parameters:
        projectId - Project id
        userId - User id