Interface AttachmentRepositoryCustom

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int deleteAllByIds​(java.util.Collection<java.lang.Long> ids)  
      java.util.List<Attachment> findByItemIdsAndLogTimeBefore​(java.util.Collection<java.lang.Long> itemIds, java.time.LocalDateTime before)  
      java.util.List<Attachment> findByLaunchIdsAndLogTimeBefore​(java.util.Collection<java.lang.Long> launchIds, java.time.LocalDateTime before)  
      java.util.List<Attachment> findByProjectIdsAndLogTimeBefore​(java.lang.Long projectId, java.time.LocalDateTime before, int limit, long offset)  
      org.springframework.data.domain.Page<java.lang.Long> findIdsByLaunchId​(java.lang.Long launchId, org.springframework.data.domain.Pageable pageable)  
      org.springframework.data.domain.Page<java.lang.Long> findIdsByProjectId​(java.lang.Long projectId, org.springframework.data.domain.Pageable pageable)  
      org.springframework.data.domain.Page<java.lang.Long> findIdsByTestItemId​(java.util.Collection<java.lang.Long> itemIds, org.springframework.data.domain.Pageable pageable)  
      int moveForDeletion​(java.lang.Long attachmentId)
      Moves attachment to the deletion table for further removing from file storage by id
      int moveForDeletion​(java.util.Collection<java.lang.Long> attachmentIds)
      Moves attachments to the deletion table for further removing from file storage by id
      int moveForDeletionByItems​(java.util.Collection<java.lang.Long> itemIds)
      Moves attachments to the deletion table for further removing from file storage by items
      int moveForDeletionByLaunchId​(java.lang.Long launchId)
      Moves attachments to the deletion table for further removing from file storage by launch
      int moveForDeletionByLaunchIds​(java.util.Collection<java.lang.Long> launchIds)
      Moves attachments to the deletion table for further removing from file storage by launches
      int moveForDeletionByProjectId​(java.lang.Long projectId)
      Moves attachments to the deletion table for further removing from file storage by project
    • Method Detail

      • moveForDeletionByProjectId

        int moveForDeletionByProjectId​(java.lang.Long projectId)
        Moves attachments to the deletion table for further removing from file storage by project
        Parameters:
        projectId - Project id
        Returns:
        Number of moved attachments
      • moveForDeletionByLaunchId

        int moveForDeletionByLaunchId​(java.lang.Long launchId)
        Moves attachments to the deletion table for further removing from file storage by launch
        Parameters:
        launchId - Launch id
        Returns:
        Number of moved attachments
      • moveForDeletionByLaunchIds

        int moveForDeletionByLaunchIds​(java.util.Collection<java.lang.Long> launchIds)
        Moves attachments to the deletion table for further removing from file storage by launches
        Parameters:
        launchIds - Launch ids
        Returns:
        Number of moved attachments
      • moveForDeletionByItems

        int moveForDeletionByItems​(java.util.Collection<java.lang.Long> itemIds)
        Moves attachments to the deletion table for further removing from file storage by items
        Parameters:
        itemIds - Collection of item ids
        Returns:
        Number of moved attachments
      • moveForDeletion

        int moveForDeletion​(java.lang.Long attachmentId)
        Moves attachment to the deletion table for further removing from file storage by id
        Parameters:
        attachmentId - Attachment id
        Returns:
        Number of moved attachments
      • moveForDeletion

        int moveForDeletion​(java.util.Collection<java.lang.Long> attachmentIds)
        Moves attachments to the deletion table for further removing from file storage by id
        Parameters:
        attachmentIds - Collection of attachments ids
        Returns:
        Number of moved attachments
      • findIdsByProjectId

        org.springframework.data.domain.Page<java.lang.Long> findIdsByProjectId​(java.lang.Long projectId,
                                                                                org.springframework.data.domain.Pageable pageable)
      • findIdsByLaunchId

        org.springframework.data.domain.Page<java.lang.Long> findIdsByLaunchId​(java.lang.Long launchId,
                                                                               org.springframework.data.domain.Pageable pageable)
      • findIdsByTestItemId

        org.springframework.data.domain.Page<java.lang.Long> findIdsByTestItemId​(java.util.Collection<java.lang.Long> itemIds,
                                                                                 org.springframework.data.domain.Pageable pageable)
      • deleteAllByIds

        int deleteAllByIds​(java.util.Collection<java.lang.Long> ids)
      • findByItemIdsAndLogTimeBefore

        java.util.List<Attachment> findByItemIdsAndLogTimeBefore​(java.util.Collection<java.lang.Long> itemIds,
                                                                 java.time.LocalDateTime before)
      • findByLaunchIdsAndLogTimeBefore

        java.util.List<Attachment> findByLaunchIdsAndLogTimeBefore​(java.util.Collection<java.lang.Long> launchIds,
                                                                   java.time.LocalDateTime before)
      • findByProjectIdsAndLogTimeBefore

        java.util.List<Attachment> findByProjectIdsAndLogTimeBefore​(java.lang.Long projectId,
                                                                    java.time.LocalDateTime before,
                                                                    int limit,
                                                                    long offset)