Class AllLatestVersionAttachmentIdentifier
java.lang.Object
com.atlassian.confluence.pages.persistence.dao.bulk.attachment.delete.identifiers.AllLatestVersionAttachmentIdentifier
- All Implemented Interfaces:
AttachmentIdentifier
,ContainerAttachmentIdentifier
- Direct Known Subclasses:
LatestVersionWithNameMineTypeAttachmentIdentifier
public class AllLatestVersionAttachmentIdentifier
extends Object
implements ContainerAttachmentIdentifier
Get all latest attachment of a container
This will load attachment in a batch (default is 100)
- Since:
- 7.17.0
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AttachmentManager
protected final long
protected final PageManager
protected int
-
Constructor Summary
ConstructorDescriptionAllLatestVersionAttachmentIdentifier
(PageManager pageManager, AttachmentManager attachmentManager, long containerId) -
Method Summary
Modifier and TypeMethodDescriptionreturn list of AttachmentIdentifier belonging to current containerprotected List<AttachmentIdentifier>
getAttachmentIdentifiers
(AbstractPage abstractPage) protected Predicate<Attachment>
protected AttachmentIdentifier
getNextBatch
(int previousOutputSize) int
totalCountLatestAttachment will lazy init whengetAttachmentIdentifiers(com.atlassian.confluence.pages.AbstractPage)
is called
-
Field Details
-
containerId
protected final long containerId -
pageManager
-
attachmentManager
-
totalCountLatestAttachment
protected int totalCountLatestAttachment
-
-
Constructor Details
-
AllLatestVersionAttachmentIdentifier
public AllLatestVersionAttachmentIdentifier(PageManager pageManager, AttachmentManager attachmentManager, long containerId)
-
-
Method Details
-
getTotalCountLatestAttachment
public int getTotalCountLatestAttachment()totalCountLatestAttachment will lazy init whengetAttachmentIdentifiers(com.atlassian.confluence.pages.AbstractPage)
is called- Specified by:
getTotalCountLatestAttachment
in interfaceContainerAttachmentIdentifier
- Returns:
-
getAttachmentIdentifiedList
Description copied from interface:ContainerAttachmentIdentifier
return list of AttachmentIdentifier belonging to current container- Specified by:
getAttachmentIdentifiedList
in interfaceContainerAttachmentIdentifier
- Returns:
-
getAttachmentIdentifiers
-
getNextBatch
-
getFilterCondition
-