Package com.epam.ta.reportportal.dao
Interface AttachmentRepositoryCustom
-
- All Known Subinterfaces:
AttachmentRepository
- All Known Implementing Classes:
AttachmentRepositoryCustomImpl
public interface AttachmentRepositoryCustom
-
-
Method Summary
All Methods Instance Methods Abstract 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
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)
-
-