Package com.epam.ta.reportportal.dao
Class AttachmentRepositoryCustomImpl
- java.lang.Object
-
- com.epam.ta.reportportal.dao.AttachmentRepositoryCustomImpl
-
- All Implemented Interfaces:
AttachmentRepositoryCustom
@Repository public class AttachmentRepositoryCustomImpl extends java.lang.Object implements AttachmentRepositoryCustom
-
-
Constructor Summary
Constructors Constructor Description AttachmentRepositoryCustomImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdeleteAllByIds(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)intmoveForDeletion(java.lang.Long attachmentId)Moves attachment to the deletion table for further removing from file storage by idintmoveForDeletion(java.util.Collection<java.lang.Long> attachmentIds)Moves attachments to the deletion table for further removing from file storage by idintmoveForDeletionByItems(java.util.Collection<java.lang.Long> itemIds)Moves attachments to the deletion table for further removing from file storage by itemsintmoveForDeletionByLaunchId(java.lang.Long launchId)Moves attachments to the deletion table for further removing from file storage by launchintmoveForDeletionByLaunchIds(java.util.Collection<java.lang.Long> launchIds)Moves attachments to the deletion table for further removing from file storage by launchesintmoveForDeletionByProjectId(java.lang.Long projectId)Moves attachments to the deletion table for further removing from file storage by project
-
-
-
Method Detail
-
moveForDeletionByProjectId
public int moveForDeletionByProjectId(java.lang.Long projectId)
Description copied from interface:AttachmentRepositoryCustomMoves attachments to the deletion table for further removing from file storage by project- Specified by:
moveForDeletionByProjectIdin interfaceAttachmentRepositoryCustom- Parameters:
projectId- Project id- Returns:
- Number of moved attachments
-
moveForDeletionByLaunchId
public int moveForDeletionByLaunchId(java.lang.Long launchId)
Description copied from interface:AttachmentRepositoryCustomMoves attachments to the deletion table for further removing from file storage by launch- Specified by:
moveForDeletionByLaunchIdin interfaceAttachmentRepositoryCustom- Parameters:
launchId- Launch id- Returns:
- Number of moved attachments
-
moveForDeletionByLaunchIds
public int moveForDeletionByLaunchIds(java.util.Collection<java.lang.Long> launchIds)
Description copied from interface:AttachmentRepositoryCustomMoves attachments to the deletion table for further removing from file storage by launches- Specified by:
moveForDeletionByLaunchIdsin interfaceAttachmentRepositoryCustom- Parameters:
launchIds- Launch ids- Returns:
- Number of moved attachments
-
moveForDeletionByItems
public int moveForDeletionByItems(java.util.Collection<java.lang.Long> itemIds)
Description copied from interface:AttachmentRepositoryCustomMoves attachments to the deletion table for further removing from file storage by items- Specified by:
moveForDeletionByItemsin interfaceAttachmentRepositoryCustom- Parameters:
itemIds- Collection of item ids- Returns:
- Number of moved attachments
-
moveForDeletion
public int moveForDeletion(java.lang.Long attachmentId)
Description copied from interface:AttachmentRepositoryCustomMoves attachment to the deletion table for further removing from file storage by id- Specified by:
moveForDeletionin interfaceAttachmentRepositoryCustom- Parameters:
attachmentId- Attachment id- Returns:
- Number of moved attachments
-
moveForDeletion
public int moveForDeletion(java.util.Collection<java.lang.Long> attachmentIds)
Description copied from interface:AttachmentRepositoryCustomMoves attachments to the deletion table for further removing from file storage by id- Specified by:
moveForDeletionin interfaceAttachmentRepositoryCustom- 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:
findIdsByProjectIdin interfaceAttachmentRepositoryCustom
-
findIdsByLaunchId
public org.springframework.data.domain.Page<java.lang.Long> findIdsByLaunchId(java.lang.Long launchId, org.springframework.data.domain.Pageable pageable)- Specified by:
findIdsByLaunchIdin interfaceAttachmentRepositoryCustom
-
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:
findIdsByTestItemIdin interfaceAttachmentRepositoryCustom
-
deleteAllByIds
public int deleteAllByIds(java.util.Collection<java.lang.Long> ids)
- Specified by:
deleteAllByIdsin interfaceAttachmentRepositoryCustom
-
findByItemIdsAndLogTimeBefore
public java.util.List<Attachment> findByItemIdsAndLogTimeBefore(java.util.Collection<java.lang.Long> itemIds, java.time.LocalDateTime before)
- Specified by:
findByItemIdsAndLogTimeBeforein interfaceAttachmentRepositoryCustom
-
findByLaunchIdsAndLogTimeBefore
public java.util.List<Attachment> findByLaunchIdsAndLogTimeBefore(java.util.Collection<java.lang.Long> launchIds, java.time.LocalDateTime before)
- Specified by:
findByLaunchIdsAndLogTimeBeforein interfaceAttachmentRepositoryCustom
-
findByProjectIdsAndLogTimeBefore
public java.util.List<Attachment> findByProjectIdsAndLogTimeBefore(java.lang.Long projectId, java.time.LocalDateTime before, int limit, long offset)
- Specified by:
findByProjectIdsAndLogTimeBeforein interfaceAttachmentRepositoryCustom
-
-