Class AttachmentRepositoryCustomImpl

    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AttachmentRepositoryCustomImpl

        public AttachmentRepositoryCustomImpl()
    • Method Detail

      • moveForDeletionByProjectId

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

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

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

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

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

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

        public org.springframework.data.domain.Page<java.lang.Long> findIdsByProjectId​(java.lang.Long projectId,
                                                                                       org.springframework.data.domain.Pageable pageable)
        Specified by:
        findIdsByProjectId in interface AttachmentRepositoryCustom
      • findIdsByLaunchId

        public org.springframework.data.domain.Page<java.lang.Long> findIdsByLaunchId​(java.lang.Long launchId,
                                                                                      org.springframework.data.domain.Pageable pageable)
        Specified by:
        findIdsByLaunchId in interface AttachmentRepositoryCustom
      • findIdsByTestItemId

        public org.springframework.data.domain.Page<java.lang.Long> findIdsByTestItemId​(java.util.Collection<java.lang.Long> itemIds,
                                                                                        org.springframework.data.domain.Pageable pageable)
        Specified by:
        findIdsByTestItemId in interface AttachmentRepositoryCustom