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
Fields Modifier and Type Field Description protected AttachmentManager
attachmentManager
protected long
containerId
protected PageManager
pageManager
protected int
totalCountLatestAttachment
-
Constructor Summary
Constructors Constructor Description AllLatestVersionAttachmentIdentifier(PageManager pageManager, AttachmentManager attachmentManager, long containerId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AttachmentIdentifier>
getAttachmentIdentifiedList()
return list of AttachmentIdentifier belonging to current containerprotected List<AttachmentIdentifier>
getAttachmentIdentifiers(AbstractPage abstractPage)
protected Predicate<Attachment>
getFilterCondition()
protected AttachmentIdentifier
getNextBatch(int previousOutputSize)
int
getTotalCountLatestAttachment()
totalCountLatestAttachment will lazy init whengetAttachmentIdentifiers(com.atlassian.confluence.pages.AbstractPage)
is called
-
-
-
Field Detail
-
containerId
protected final long containerId
-
pageManager
protected final PageManager pageManager
-
attachmentManager
protected final AttachmentManager attachmentManager
-
totalCountLatestAttachment
protected int totalCountLatestAttachment
-
-
Constructor Detail
-
AllLatestVersionAttachmentIdentifier
public AllLatestVersionAttachmentIdentifier(PageManager pageManager, AttachmentManager attachmentManager, long containerId)
-
-
Method Detail
-
getTotalCountLatestAttachment
public int getTotalCountLatestAttachment()
totalCountLatestAttachment will lazy init whengetAttachmentIdentifiers(com.atlassian.confluence.pages.AbstractPage)
is called- Specified by:
getTotalCountLatestAttachment
in interfaceContainerAttachmentIdentifier
- Returns:
-
getAttachmentIdentifiedList
public List<AttachmentIdentifier> getAttachmentIdentifiedList()
Description copied from interface:ContainerAttachmentIdentifier
return list of AttachmentIdentifier belonging to current container- Specified by:
getAttachmentIdentifiedList
in interfaceContainerAttachmentIdentifier
- Returns:
-
getAttachmentIdentifiers
protected List<AttachmentIdentifier> getAttachmentIdentifiers(AbstractPage abstractPage)
-
getNextBatch
protected AttachmentIdentifier getNextBatch(int previousOutputSize)
-
getFilterCondition
protected Predicate<Attachment> getFilterCondition()
-
-