com.atlassian.jira.issue.thumbnail
Class DisabledThumbNailManager
java.lang.Object
com.atlassian.jira.issue.thumbnail.DisabledThumbNailManager
- All Implemented Interfaces:
- ThumbnailManager
public class DisabledThumbNailManager
- extends Object
- implements ThumbnailManager
Method Summary |
boolean |
checkToolkit()
Checks if there is an "Abstract Window Toolkit" (AWT Toolkit) available. |
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. |
com.atlassian.core.util.thumbnail.Thumbnail |
getThumbnail(Issue issue,
Attachment attachment)
Returns the Thumbnail that corresponds to an Attachment, or null if the given attachment is not an image. |
Collection<com.atlassian.core.util.thumbnail.Thumbnail> |
getThumbnails(Issue issue,
com.atlassian.crowd.embedded.api.User user)
Retrieves Thumbnails for an Issue |
boolean |
isThumbnailable(Attachment attachment)
|
boolean |
isThumbnailable(Issue issue,
Attachment attachment)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DisabledThumbNailManager
public DisabledThumbNailManager()
getThumbnails
public Collection<com.atlassian.core.util.thumbnail.Thumbnail> getThumbnails(Issue issue,
com.atlassian.crowd.embedded.api.User user)
throws 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:
Exception
isThumbnailable
public boolean isThumbnailable(Attachment attachment)
throws DataAccessException
- Specified by:
isThumbnailable
in interface ThumbnailManager
- Throws:
DataAccessException
isThumbnailable
public boolean isThumbnailable(Issue issue,
Attachment attachment)
throws DataAccessException
- Specified by:
isThumbnailable
in interface ThumbnailManager
- Throws:
DataAccessException
checkToolkit
public boolean checkToolkit()
- Description copied from interface:
ThumbnailManager
- Checks if there is an "Abstract Window Toolkit" (AWT Toolkit) available.
- Specified by:
checkToolkit
in interface ThumbnailManager
- Returns:
- true if there is an "Abstract Window Toolkit" (AWT Toolkit) available.
getThumbnail
public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Attachment attachment)
- Description copied from interface:
ThumbnailManager
- 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
getThumbnail
public com.atlassian.core.util.thumbnail.Thumbnail getThumbnail(Issue issue,
Attachment attachment)
- Description copied from interface:
ThumbnailManager
- 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:
issue
- the issue for the attachment (passed in for performance reasons)attachment
- an Attachment
- Returns:
- returns a Thumbnail, or null
Copyright © 2002-2012 Atlassian. All Rights Reserved.