com.atlassian.jira.issue.fields.rest.json.beans
Class AttachmentJsonBean

java.lang.Object
  extended by com.atlassian.jira.issue.fields.rest.json.beans.AttachmentJsonBean

public class AttachmentJsonBean
extends Object

Since:
v5.0

Constructor Summary
AttachmentJsonBean()
           
 
Method Summary
 UserJsonBean getAuthor()
           
 String getContent()
           
 Date getCreated()
           
 String getFilename()
           
 String getId()
           
 String getMimeType()
           
 String getSelf()
           
 long getSize()
           
 String getThumbnail()
           
 void setAuthor(UserJsonBean author)
           
 void setContent(String content)
           
 void setCreated(Date created)
           
 void setFilename(String filename)
           
 void setId(String id)
           
 void setMimeType(String mimeType)
           
 void setSelf(String self)
           
 void setSize(long size)
           
 void setThumbnail(String thumbnail)
           
static AttachmentJsonBean shortBean(Attachment attachment, JiraBaseUrls urls, ThumbnailManager thumbnailManager)
           
static Collection<AttachmentJsonBean> shortBeans(Collection<Attachment> attachments, JiraBaseUrls urls, ThumbnailManager thumbnailManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentJsonBean

public AttachmentJsonBean()
Method Detail

getSelf

public String getSelf()

setSelf

public void setSelf(String self)

getId

public String getId()

setId

public void setId(String id)

getFilename

public String getFilename()

setFilename

public void setFilename(String filename)

getAuthor

public UserJsonBean getAuthor()

setAuthor

public void setAuthor(UserJsonBean author)

getCreated

public Date getCreated()

setCreated

public void setCreated(Date created)

getSize

public long getSize()

setSize

public void setSize(long size)

getMimeType

public String getMimeType()

setMimeType

public void setMimeType(String mimeType)

getContent

public String getContent()

setContent

public void setContent(String content)

getThumbnail

public String getThumbnail()

setThumbnail

public void setThumbnail(String thumbnail)

shortBeans

public static Collection<AttachmentJsonBean> shortBeans(Collection<Attachment> attachments,
                                                        JiraBaseUrls urls,
                                                        ThumbnailManager thumbnailManager)

shortBean

public static AttachmentJsonBean shortBean(Attachment attachment,
                                           JiraBaseUrls urls,
                                           ThumbnailManager thumbnailManager)
Returns:
null if the input is null


Copyright © 2002-2012 Atlassian. All Rights Reserved.