Package com.epam.ta.reportportal.dao
Interface DashboardRepository
-
- All Superinterfaces:
org.springframework.data.repository.CrudRepository<Dashboard,java.lang.Long>,DashboardRepositoryCustom,org.springframework.data.jpa.repository.JpaRepository<Dashboard,java.lang.Long>,org.springframework.data.repository.PagingAndSortingRepository<Dashboard,java.lang.Long>,org.springframework.data.repository.query.QueryByExampleExecutor<Dashboard>,ReportPortalRepository<Dashboard,java.lang.Long>,org.springframework.data.repository.Repository<Dashboard,java.lang.Long>,ShareableRepository<Dashboard>
public interface DashboardRepository extends ReportPortalRepository<Dashboard,java.lang.Long>, DashboardRepositoryCustom
-
-
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 theDashboardwith specified name for a user on a projectbooleanexistsByNameAndProjectId(java.lang.String name, java.lang.Long projectId)Checks the existence of theDashboardwith specified name on a projectjava.util.List<Dashboard>findAllByProjectId(java.lang.Long projectId)java.util.Optional<Dashboard>findByIdAndProjectId(java.lang.Long id, java.lang.Long projectId)Finds dashboard 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<Dashboard> findByIdAndProjectId(java.lang.Long id, java.lang.Long projectId)
Finds dashboard by 'id' and 'project id'- Parameters:
id-ShareableEntity.idprojectId- Id of theProjectwhose dashboard will be extracted- Returns:
Dashboardwrapped in theOptional
-
findAllByProjectId
java.util.List<Dashboard> findAllByProjectId(java.lang.Long projectId)
-
existsByNameAndOwnerAndProjectId
boolean existsByNameAndOwnerAndProjectId(java.lang.String name, java.lang.String owner, java.lang.Long projectId)Checks the existence of theDashboardwith specified name for a user on a project- Parameters:
name-Dashboard.nameowner-ShareableEntity.ownerprojectId- Id of theProjecton which dashboard existence will be checked- Returns:
- if exists 'true' else 'false'
-
existsByNameAndProjectId
boolean existsByNameAndProjectId(java.lang.String name, java.lang.Long projectId)Checks the existence of theDashboardwith specified name on a project- Parameters:
name-Dashboard.nameprojectId-Project.id- Returns:
- if exists 'true' else 'false'
-
-