public class AttachmentEntityList extends Object implements com.atlassian.plugins.rest.common.expand.entity.ListWrapper<AttachmentEntity>
AttachmentEntity
objectsConstructor and Description |
---|
AttachmentEntityList() |
AttachmentEntityList(int size,
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> callback) |
Modifier and Type | Method and Description |
---|---|
void |
buildAttachmentListFromWrapper(int start,
int max) |
void |
buildFilteredByMimeTypeAttachmentList(int start,
int maxSize,
Set<String> includeMimeTypes) |
void |
buildFilteredByNiceTypeAttachmentList(int start,
int maxSize,
Set<String> niceTypes) |
List<AttachmentEntity> |
getAttachments()
List of attachments returned.
|
com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> |
getCallback() |
int |
getSize()
Total size of list, note that the actual size returned can be different from this size, if pagination is used.
|
void |
reverse()
Reverse the order of the attachments
|
public AttachmentEntityList()
public AttachmentEntityList(int size, com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> callback)
public com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> getCallback()
getCallback
in interface com.atlassian.plugins.rest.common.expand.entity.ListWrapper<AttachmentEntity>
public int getSize()
public void reverse()
public List<AttachmentEntity> getAttachments()
public void buildAttachmentListFromWrapper(int start, int max)
public void buildFilteredByMimeTypeAttachmentList(int start, int maxSize, Set<String> includeMimeTypes)
Copyright © 2003–2020 Atlassian. All rights reserved.