com.atlassian.jira.plugin.viewissue
Class AttachmentBlockContextProvider.SimpleAttachment

java.lang.Object
  extended by com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.SimpleAttachment
Enclosing class:
AttachmentBlockContextProvider

public class AttachmentBlockContextProvider.SimpleAttachment
extends Object


Constructor Summary
AttachmentBlockContextProvider.SimpleAttachment(Attachment attachment, boolean latest, boolean exapandAsZip, ThumbnailedImage thumbnail, boolean canDelete)
           
 
Method Summary
 String getAuthor()
           
 String getCreatedFormatted()
           
 String getDisplayAuthor()
           
 String getFilename()
           
 String getFilenameUrlEncoded()
           
 String getFilesize()
           
 Long getId()
           
 String getMimetype()
           
 ThumbnailedImage getThumbnail()
           
 AttachmentZipKit.AttachmentZipEntries getZipEntries()
          Returns a list of zip entries for the specified attachment.
 boolean isCanDelete()
           
 boolean isExpandAsZip()
           
 boolean isLatest()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentBlockContextProvider.SimpleAttachment

public AttachmentBlockContextProvider.SimpleAttachment(Attachment attachment,
                                                       boolean latest,
                                                       boolean exapandAsZip,
                                                       ThumbnailedImage thumbnail,
                                                       boolean canDelete)
Method Detail

isLatest

public boolean isLatest()

getId

public Long getId()

getMimetype

public String getMimetype()

getFilename

public String getFilename()

getFilenameUrlEncoded

public String getFilenameUrlEncoded()

getCreatedFormatted

public String getCreatedFormatted()

getFilesize

public String getFilesize()

getAuthor

public String getAuthor()

getDisplayAuthor

public String getDisplayAuthor()

isExpandAsZip

public boolean isExpandAsZip()

getThumbnail

public ThumbnailedImage getThumbnail()

isCanDelete

public boolean isCanDelete()

getZipEntries

public AttachmentZipKit.AttachmentZipEntries getZipEntries()

Returns a list of zip entries for the specified attachment. The number of entries returned is limited to the value of MAX_ZIP_ENTRIES.

It is assumed that this attachment represents a valid zip file.

Returns:
A List of AttachmentZipKit.AttachmentZipEntry for the specified attachment. Limited to APKeys.JIRA_ATTACHMENT_NUMBER_OF_ZIP_ENTRIES_TO_SHOW.


Copyright © 2002-2013 Atlassian. All Rights Reserved.