com.atlassian.jira.issue.thumbnail
Class DefaultThumbnailManager

java.lang.Object
  extended by com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager
All Implemented Interfaces:
ThumbnailManager

public class DefaultThumbnailManager
extends java.lang.Object
implements ThumbnailManager


Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.thumbnail.ThumbnailManager
MIME_TYPE
 
Constructor Summary
DefaultThumbnailManager(ThumbnailConfiguration thumbnailConfiguration, AttachmentManager attachmentManager, MimeManager mimeManager)
           
 
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)
          Retrieves Thumbnails for an issue.
 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 attachment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultThumbnailManager

public DefaultThumbnailManager(ThumbnailConfiguration thumbnailConfiguration,
                               AttachmentManager attachmentManager,
                               MimeManager mimeManager)
Method Detail

getThumbnails

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

getThumbnails

public 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
Description copied from interface: ThumbnailManager
Retrieves Thumbnails for an issue.

Specified by:
getThumbnails in interface ThumbnailManager
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

public java.util.Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Issue issue,
                                                                                       com.opensymphony.user.User user)
                                                                                throws java.lang.Exception
Description copied from interface: ThumbnailManager
Retrieves Thumbnails for an Issue

Specified by:
getThumbnails in interface ThumbnailManager
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

public boolean isThumbnailable(Attachment attachment)
                        throws DataAccessException
Specified by:
isThumbnailable in interface ThumbnailManager
Throws:
DataAccessException

getThumbnail

public 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.

Specified by:
getThumbnail in interface ThumbnailManager
Parameters:
attachment - an Attachment
Returns:
returns a Thumbnail, or null

checkToolkit

public boolean checkToolkit(com.opensymphony.user.User user)
Specified by:
checkToolkit in interface ThumbnailManager


Copyright © 2002-2011 Atlassian. All Rights Reserved.