Interface LaunchRepositoryCustom

    • 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.projectId
        value - A part of the Launch.name
        mode - Launch.mode
        status - Launch.status
        Returns:
        The List of the Launch.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)
      • findLatestByFilter

        java.util.Optional<Launch> findLatestByFilter​(Filter filter)
      • findAllLatestByFilter

        org.springframework.data.domain.Page<Launch> findAllLatestByFilter​(Queryable 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 id
        mode - Launch mode
        Returns:
        Optional of Launch
      • 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 id
        mode - Launch mode
        fromDate - 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.projectId
        mode - 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 id
        mode - Launch mode
        from - From Date to count
        Returns:
        Map of username and launches count
      • findIdsByProjectIdAndModeAndStatusNotEq

        java.util.List<java.lang.Long> findIdsByProjectIdAndModeAndStatusNotEq​(java.lang.Long projectId,
                                                                               JLaunchModeEnum mode,
                                                                               JStatusEnum status,
                                                                               int limit)
      • findIdsByProjectIdAndModeAndStatusNotEqAfterId

        java.util.List<java.lang.Long> findIdsByProjectIdAndModeAndStatusNotEqAfterId​(java.lang.Long projectId,
                                                                                      JLaunchModeEnum mode,
                                                                                      JStatusEnum status,
                                                                                      java.lang.Long launchId,
                                                                                      int limit)
      • hasItemsWithLogsWithLogLevel

        boolean hasItemsWithLogsWithLogLevel​(java.lang.Long launchId,
                                             java.util.Collection<JTestItemTypeEnum> itemTypes,
                                             java.lang.Integer logLevel)
      • findIndexLaunchByIds

        java.util.List<com.epam.ta.reportportal.ws.model.analyzer.IndexLaunch> findIndexLaunchByIds​(java.util.List<java.lang.Long> ids)
      • findPreviousLaunchByProjectIdAndNameAndAttributesForLaunchIdAndModeNot

        java.util.Optional<Launch> findPreviousLaunchByProjectIdAndNameAndAttributesForLaunchIdAndModeNot​(java.lang.Long projectId,
                                                                                                          java.lang.String name,
                                                                                                          java.lang.String[] attributes,
                                                                                                          java.lang.Long launchId,
                                                                                                          JLaunchModeEnum mode)