public class

AttachmentsCategoriser

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.AttachmentsCategoriser

Class Overview

Helper class for handling attachments on the view issue page. This class sorts attachments into two categories:

  • attachments that have thumbnails
  • attachments that do not have thumbnails

This is useful because of the different way in which these two types of attachments are displayed on the view issue page. Note that an attachment may be "thumbnailable" but not have a thumbnail in practice, i.e. because there was an error creating the thumbnail. This class cares not about theoretical thumbnailability, but only about actual presence/absence of a thumbnail.

Summary

Nested Classes
class AttachmentsCategoriser.AttachmentItemCreator  
interface AttachmentsCategoriser.Source  
Public Constructors
AttachmentsCategoriser(ThumbnailManager thumbnailManager, AttachmentsCategoriser.Source attachmentsSource)
Creates a new AttachmentsCategoriser
Public Methods
AttachmentItems items()
AttachmentItems itemsThatDoNotHaveThumbs()
AttachmentItems itemsThatHaveThumbs()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttachmentsCategoriser (ThumbnailManager thumbnailManager, AttachmentsCategoriser.Source attachmentsSource)

Creates a new AttachmentsCategoriser

Parameters
thumbnailManager a ThumbnailManager
attachmentsSource the Source used to get Attachments from

Public Methods

public AttachmentItems items ()

Returns
  • a AttachmentItems containing all the attachments for current issue

public AttachmentItems itemsThatDoNotHaveThumbs ()

Returns
  • as AttachmentItems containing all the attachments that do not have thumbnails

public AttachmentItems itemsThatHaveThumbs ()

Returns
  • as AttachmentItems containing all the attachments that have thumbnails