com.atlassian.jira.plugin.viewissue
Class AttachmentBlockContextProvider.SimpleAttachment
java.lang.Object
com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider.SimpleAttachment
- Enclosing class:
- AttachmentBlockContextProvider
public class AttachmentBlockContextProvider.SimpleAttachment
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AttachmentBlockContextProvider.SimpleAttachment
public AttachmentBlockContextProvider.SimpleAttachment(Attachment attachment,
boolean latest,
boolean exapandAsZip,
ThumbnailedImage thumbnail,
boolean canDelete)
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.