Interface LaunchRepositoryCustom

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Integer countLaunches​(java.lang.Long projectId, java.lang.String mode)
      Counts launches with mode for specified project
      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
      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.
      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 project
      java.util.Optional<Launch> findLatestByFilter​(Filter filter)  
      java.util.List<java.lang.Long> findLaunchIdsByProjectId​(java.lang.Long projectId)
      Finds launch ids of project with provided id
      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'
      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)  
      boolean hasItemsInStatuses​(java.lang.Long launchId, java.util.List<JStatusEnum> statuses)  
    • 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​(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 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