Class AttachmentEntityList
- java.lang.Object
-
- com.atlassian.confluence.plugins.rest.entities.AttachmentEntityList
-
- All Implemented Interfaces:
com.atlassian.plugins.rest.common.expand.entity.ListWrapper<AttachmentEntity>
public class AttachmentEntityList extends Object implements com.atlassian.plugins.rest.common.expand.entity.ListWrapper<AttachmentEntity>
A List wrapper forAttachmentEntityobjects
-
-
Constructor Summary
Constructors Constructor Description AttachmentEntityList()AttachmentEntityList(int size, com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildAttachmentListFromWrapper(int start, int max)voidbuildFilteredByMimeTypeAttachmentList(int start, int maxSize, Set<String> includeMimeTypes)voidbuildFilteredByNiceTypeAttachmentList(int start, int maxSize, Set<String> niceTypes)booleanequals(Object o)List<AttachmentEntity>getAttachments()List of attachments returned.com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity>getCallback()intgetSize()Total size of list, note that the actual size returned can be different from this size, if pagination is used.inthashCode()voidreverse()Reverse the order of the attachmentsStringtoString()
-
-
-
Constructor Detail
-
AttachmentEntityList
public AttachmentEntityList()
-
AttachmentEntityList
public AttachmentEntityList(int size, com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> callback)
-
-
Method Detail
-
getCallback
public com.atlassian.plugins.rest.common.expand.entity.ListWrapperCallback<AttachmentEntity> getCallback()
- Specified by:
getCallbackin interfacecom.atlassian.plugins.rest.common.expand.entity.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
public List<AttachmentEntity> getAttachments()
List of attachments returned. If no expansion parameter is given this will be null.
-
buildAttachmentListFromWrapper
public void buildAttachmentListFromWrapper(int start, int max)
-
buildFilteredByMimeTypeAttachmentList
public void buildFilteredByMimeTypeAttachmentList(int start, int maxSize, Set<String> includeMimeTypes)
-
buildFilteredByNiceTypeAttachmentList
public void buildFilteredByNiceTypeAttachmentList(int start, int maxSize, Set<String> niceTypes)
-
-