Package com.epam.ta.reportportal.dao
Interface UserPreferenceRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserPreference,java.lang.Long>,org.springframework.data.jpa.repository.JpaRepository<UserPreference,java.lang.Long>,org.springframework.data.repository.PagingAndSortingRepository<UserPreference,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<UserPreference>,ReportPortalRepository<UserPreference,java.lang.Long>,org.springframework.data.repository.Repository<UserPreference,java.lang.Long>
public interface UserPreferenceRepository extends ReportPortalRepository<UserPreference,java.lang.Long>
User preference repository
-
-
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 userjava.util.Optional<UserPreference>findByProjectIdAndUserIdAndFilterId(java.lang.Long projectId, java.lang.Long userId, java.lang.Long filterId)Find unique user preferencevoidremoveByProjectIdAndUserId(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
-
Methods inherited from interface com.epam.ta.reportportal.dao.ReportPortalRepository
exists, refresh
-
-
-
-
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 iduserId- 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 iduserId- User idfilterId- 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 iduserId- User id
-
-