com.atlassian.jira.issue.thumbnail
Interface ThumbnailedImage


@PublicApi
public interface ThumbnailedImage

JIRA-specific thunbnailed image interface. A ThumbnailedImage contains methods for getting its URL, etc.

Since:
v5.2
See Also:
ThumbnailManager.toThumbnailedImage(com.atlassian.core.util.thumbnail.Thumbnail)

Method Summary
 long getAttachmentId()
           
 String getFilename()
           
 int getHeight()
           
 String getImageURL()
           
 String getMimeType()
           
 int getWidth()
           
 

Method Detail

getFilename

String getFilename()
Returns:
the name of the image file
Since:
v5.2

getHeight

int getHeight()
Returns:
the height of the image, in pixels
Since:
v5.2

getWidth

int getWidth()
Returns:
the width of the image, in pixels
Since:
v5.2

getAttachmentId

long getAttachmentId()
Returns:
the id of the attachment
Since:
v5.2

getMimeType

String getMimeType()
Returns:
the MIME type of the image
Since:
v5.2

getImageURL

String getImageURL()
Returns:
the URL for this thumbnail image. If running in the context of a web request, this will return a url relative to the server root (ie "/jira/"). If running via email, it will return an absolute URL (eg. "http://example.com/jira/").


Copyright © 2002-2013 Atlassian. All Rights Reserved.