Package com.epam.ta.reportportal.dao
Interface UserFilterRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<UserFilter,java.lang.Long>,org.springframework.data.jpa.repository.JpaRepository<UserFilter,java.lang.Long>,org.springframework.data.repository.PagingAndSortingRepository<UserFilter,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<UserFilter>,ReportPortalRepository<UserFilter,java.lang.Long>,org.springframework.data.repository.Repository<UserFilter,java.lang.Long>,ShareableRepository<UserFilter>,UserFilterRepositoryCustom
public interface UserFilterRepository extends ReportPortalRepository<UserFilter,java.lang.Long>, UserFilterRepositoryCustom
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexistsByNameAndOwnerAndProjectId(java.lang.String name, java.lang.String owner, java.lang.Long projectId)Checks the existence of theUserFilterwith specified name for a user on a projectjava.util.List<UserFilter>findAllByIdInAndProjectId(java.util.Collection<java.lang.Long> ids, java.lang.Long projectId)java.util.List<UserFilter>findAllByProjectId(java.lang.Long projectId)java.util.Optional<UserFilter>findByIdAndProjectId(java.lang.Long id, java.lang.Long projectId)Finds filter by 'id' and 'project id'-
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
-
Methods inherited from interface com.epam.ta.reportportal.dao.ShareableRepository
getOwn, getPermitted, getShared
-
-
-
-
Method Detail
-
findByIdAndProjectId
java.util.Optional<UserFilter> findByIdAndProjectId(java.lang.Long id, java.lang.Long projectId)
Finds filter by 'id' and 'project id'- Parameters:
id-ShareableEntity.idprojectId- Id of theProjectwhose filter will be extracted- Returns:
UserFilterwrapped in theOptional
-
findAllByIdInAndProjectId
java.util.List<UserFilter> findAllByIdInAndProjectId(java.util.Collection<java.lang.Long> ids, java.lang.Long projectId)
- Parameters:
ids-Iterableof the filter IdsprojectId- Id of theProjectwhose filters will be extracted- Returns:
- The
Listof theUserFilter
-
findAllByProjectId
java.util.List<UserFilter> findAllByProjectId(java.lang.Long projectId)
- Parameters:
projectId- Id of theProjectwhose filters will be extracted- Returns:
- The
Listof theUserFilter
-
existsByNameAndOwnerAndProjectId
boolean existsByNameAndOwnerAndProjectId(java.lang.String name, java.lang.String owner, java.lang.Long projectId)Checks the existence of theUserFilterwith specified name for a user on a project- Parameters:
name-UserFilter.nameowner-ShareableEntity.ownerprojectId- Id of theProjecton which filter existence will be checked- Returns:
- if exists 'true' else 'false'
-
-