com.atlassian.jira.issue.thumbnail
Interface ThumbnailManager

All Known Implementing Classes:
DefaultThumbnailManager, DisabledThumbNailManager

public interface ThumbnailManager

Provides key services for small-sized images representing image attachments on issues.


Field Summary
static com.atlassian.core.util.thumbnail.Thumbnail.MimeType MIME_TYPE
          The JIRA global thumbnail MIME type.
 
Method Summary
 boolean checkToolkit(com.opensymphony.user.User user)
           
 com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
          Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.
 java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(java.util.Collection<Attachment> attachments, com.opensymphony.user.User user)
           
 java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(org.ofbiz.core.entity.GenericValue issue, com.opensymphony.user.User user)
          Deprecated. since 4.0 use getThumbnails(com.atlassian.jira.issue.Issue, com.opensymphony.user.User)
 java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Issue issue, com.opensymphony.user.User user)
          Retrieves Thumbnails for an Issue
 boolean isThumbnailable(Attachment attachmentGV)
           
 

Field Detail

MIME_TYPE

static final com.atlassian.core.util.thumbnail.Thumbnail.MimeType MIME_TYPE
The JIRA global thumbnail MIME type.

Method Detail

getThumbnails

java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(java.util.Collection<Attachment> attachments,
                                                                                com.opensymphony.user.User user)
                                                                                throws java.lang.Exception
Throws:
java.lang.Exception

getThumbnails

@Deprecated
java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(org.ofbiz.core.entity.GenericValue issue,
                                                                                           com.opensymphony.user.User user)
                                                                                throws java.lang.Exception
Deprecated. since 4.0 use getThumbnails(com.atlassian.jira.issue.Issue, com.opensymphony.user.User)

Retrieves Thumbnails for an issue.

Parameters:
issue - the issue to get the thumnails for.
user - the user on whose behalf the request is made.
Returns:
the thumbnails.
Throws:
java.lang.Exception

getThumbnails

java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Issue issue,
                                                                                com.opensymphony.user.User user)
                                                                                throws java.lang.Exception
Retrieves Thumbnails for an Issue

Parameters:
issue - the issue to get the thumnails for.
user - the user on whose behalf the request is made.
Returns:
the thumbnails.
Throws:
java.lang.Exception

isThumbnailable

boolean isThumbnailable(Attachment attachmentGV)
                        throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

checkToolkit

boolean checkToolkit(com.opensymphony.user.User user)

getThumbnail

com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image.

Parameters:
attachment - an Attachment
Returns:
returns a Thumbnail, or null


Copyright © 2002-2011 Atlassian. All Rights Reserved.