Class AttachmentJsonBean
java.lang.Object
com.atlassian.jira.issue.fields.rest.json.beans.AttachmentJsonBean
- Since:
- v5.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
getSelf()
long
getSize()
int
hashCode()
void
setAuthor
(UserJsonBean author) void
setContent
(String content) void
setCreated
(Date created) void
setFilename
(String filename) void
void
setMimeType
(String mimeType) void
void
setSize
(long size) void
setThumbnail
(String thumbnail) static AttachmentJsonBean
shortBean
(Attachment attachment, JiraBaseUrls urls, ThumbnailManager thumbnailManager) Deprecated.static AttachmentJsonBean
shortBean
(Attachment attachment, JiraBaseUrls urls, ThumbnailManager thumbnailManager, ApplicationUser loggedInUser, EmailFormatter emailFormatter) static Collection<AttachmentJsonBean>
shortBeans
(Collection<Attachment> attachments, JiraBaseUrls urls, ThumbnailManager thumbnailManager) static Collection<AttachmentJsonBean>
shortBeans
(Collection<Attachment> attachments, JiraBaseUrls urls, ThumbnailManager thumbnailManager, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Deprecated.toString()
-
Constructor Details
-
AttachmentJsonBean
public AttachmentJsonBean()
-
-
Method Details
-
getSelf
-
setSelf
-
getId
-
setId
-
getFilename
-
setFilename
-
getAuthor
-
setAuthor
-
getCreated
-
setCreated
-
getSize
public long getSize() -
setSize
public void setSize(long size) -
getMimeType
-
setMimeType
-
getContent
-
setContent
-
getThumbnail
-
setThumbnail
-
shortBeans
@Deprecated public static Collection<AttachmentJsonBean> shortBeans(Collection<Attachment> attachments, JiraBaseUrls urls, ThumbnailManager thumbnailManager) -
shortBeans
@Deprecated public static Collection<AttachmentJsonBean> shortBeans(Collection<Attachment> attachments, JiraBaseUrls urls, ThumbnailManager thumbnailManager, ApplicationUser loggedInUser, EmailFormatter emailFormatter) Deprecated. -
shortBean
@Deprecated public static AttachmentJsonBean shortBean(Attachment attachment, JiraBaseUrls urls, ThumbnailManager thumbnailManager) - Returns:
- null if the input is null
-
shortBean
@Deprecated public static AttachmentJsonBean shortBean(Attachment attachment, JiraBaseUrls urls, ThumbnailManager thumbnailManager, ApplicationUser loggedInUser, EmailFormatter emailFormatter) -
hashCode
public int hashCode() -
equals
-
toString
-
shortBean(com.atlassian.jira.issue.attachment.Attachment, JiraBaseUrls, com.atlassian.jira.issue.thumbnail.ThumbnailManager, com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.util.EmailFormatter)