Class AttachmentEntityList
java.lang.Object
com.atlassian.confluence.plugins.rest.jackson2.entities.AttachmentEntityList
- All Implemented Interfaces:
com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapper<AttachmentEntity>
public class AttachmentEntityList
extends Object
implements com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapper<AttachmentEntity>
A List wrapper for
AttachmentEntity
objects-
Constructor Summary
ConstructorDescriptionAttachmentEntityList
(int size, com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<AttachmentEntity> callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildAttachmentListFromWrapper
(int start, int max) void
buildFilteredByMimeTypeAttachmentList
(int start, int maxSize, Set<String> includeMimeTypes) void
buildFilteredByNiceTypeAttachmentList
(int start, int maxSize, Set<String> niceTypes) boolean
List of attachments returned.com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<AttachmentEntity>
int
getSize()
Total size of list, note that the actual size returned can be different from this size, if pagination is used.int
hashCode()
void
reverse()
Reverse the order of the attachmentstoString()
-
Constructor Details
-
AttachmentEntityList
public AttachmentEntityList() -
AttachmentEntityList
public AttachmentEntityList(int size, com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<AttachmentEntity> callback)
-
-
Method Details
-
getCallback
public com.atlassian.plugins.rest.api.expand.listwrapper.ListWrapperCallback<AttachmentEntity> getCallback()- Specified by:
getCallback
in interfacecom.atlassian.plugins.rest.api.expand.listwrapper.ListWrapper<AttachmentEntity>
-
getSize
public int getSize()Total size of list, note that the actual size returned can be different from this size, if pagination is used. -
reverse
public void reverse()Reverse the order of the attachments -
getAttachments
List of attachments returned. If no expansion parameter is given this will be null. -
buildAttachmentListFromWrapper
public void buildAttachmentListFromWrapper(int start, int max) -
buildFilteredByMimeTypeAttachmentList
-
buildFilteredByNiceTypeAttachmentList
-
toString
-
equals
-
hashCode
public int hashCode()
-