Package com.epam.ta.reportportal.dao
Interface LaunchRepositoryCustom
-
- All Superinterfaces:
FilterableRepository<Launch>
- All Known Subinterfaces:
LaunchRepository
- All Known Implementing Classes:
LaunchRepositoryCustomImpl
public interface LaunchRepositoryCustom extends FilterableRepository<Launch>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.IntegercountLaunches(java.lang.Long projectId, java.lang.String mode)Counts launches with mode for specified projectjava.lang.IntegercountLaunches(java.lang.Long projectId, java.lang.String mode, java.time.LocalDateTime fromDate)Counts launches with mode for specified project from provided datejava.util.Map<java.lang.String,java.lang.Integer>countLaunchesGroupedByOwner(java.lang.Long projectId, java.lang.String mode, java.time.LocalDateTime from)Counts quantity of launches with mode per user for specified project.org.springframework.data.domain.Page<Launch>findAllLatestByFilter(Filter filter, org.springframework.data.domain.Pageable pageable)java.util.Optional<Launch>findLastRun(java.lang.Long projectId, java.lang.String mode)Finds the last valid launch in projectjava.util.Optional<Launch>findLatestByFilter(Filter filter)java.util.List<java.lang.Long>findLaunchIdsByProjectId(java.lang.Long projectId)Finds launch ids of project with provided idjava.util.List<java.lang.String>getLaunchNamesByModeExcludedByStatus(java.lang.Long projectId, java.lang.String value, LaunchModeEnum mode, StatusEnum status)Retrieves names of the launches by provided 'projectId', 'mode', 'value' as a part of the name and statuses that are not equal to the provided 'status'java.util.List<java.lang.String>getOwnerNames(java.lang.Long projectId, java.lang.String value, java.lang.String mode)java.util.Map<java.lang.String,java.lang.String>getStatuses(java.lang.Long projectId, java.lang.Long[] ids)booleanhasItemsInStatuses(java.lang.Long launchId, java.util.List<JStatusEnum> statuses)-
Methods inherited from interface com.epam.ta.reportportal.dao.FilterableRepository
findByFilter, findByFilter
-
-
-
-
Method Detail
-
hasItemsInStatuses
boolean hasItemsInStatuses(java.lang.Long launchId, java.util.List<JStatusEnum> statuses)
-
getLaunchNamesByModeExcludedByStatus
java.util.List<java.lang.String> getLaunchNamesByModeExcludedByStatus(java.lang.Long projectId, java.lang.String value, LaunchModeEnum mode, StatusEnum status)Retrieves names of the launches by provided 'projectId', 'mode', 'value' as a part of the name and statuses that are not equal to the provided 'status'- Parameters:
projectId-Launch.projectIdvalue- A part of theLaunch.namemode-Launch.modestatus-Launch.status- Returns:
- The
Listof theLaunch.name
-
getOwnerNames
java.util.List<java.lang.String> getOwnerNames(java.lang.Long projectId, java.lang.String value, java.lang.String mode)
-
getStatuses
java.util.Map<java.lang.String,java.lang.String> getStatuses(java.lang.Long projectId, java.lang.Long[] ids)
-
findAllLatestByFilter
org.springframework.data.domain.Page<Launch> findAllLatestByFilter(Filter filter, org.springframework.data.domain.Pageable pageable)
-
findLaunchIdsByProjectId
java.util.List<java.lang.Long> findLaunchIdsByProjectId(java.lang.Long projectId)
Finds launch ids of project with provided id- Parameters:
projectId- - Project id- Returns:
- List of ids
-
findLastRun
java.util.Optional<Launch> findLastRun(java.lang.Long projectId, java.lang.String mode)
Finds the last valid launch in project- Parameters:
projectId- Project idmode- Launch mode- Returns:
OptionalofLaunch
-
countLaunches
java.lang.Integer countLaunches(java.lang.Long projectId, java.lang.String mode, java.time.LocalDateTime fromDate)Counts launches with mode for specified project from provided date- Parameters:
projectId- Project idmode- Launch modefromDate- From Date to count- Returns:
- Launches count
-
countLaunches
java.lang.Integer countLaunches(java.lang.Long projectId, java.lang.String mode)Counts launches with mode for specified project- Parameters:
projectId-Launch.projectIdmode-Launch.mode- Returns:
- Launches count
-
countLaunchesGroupedByOwner
java.util.Map<java.lang.String,java.lang.Integer> countLaunchesGroupedByOwner(java.lang.Long projectId, java.lang.String mode, java.time.LocalDateTime from)Counts quantity of launches with mode per user for specified project.- Parameters:
projectId- Project idmode- Launch modefrom- From Date to count- Returns:
- Map of username and launches count
-
-