com.atlassian.greenhopper.web.rapid.issue.attachment
Class AttachmentsFactory
java.lang.Object
com.atlassian.greenhopper.web.rapid.issue.attachment.AttachmentsFactory
@Service
public class AttachmentsFactory
- extends java.lang.Object
Adapted copy of com.atlassian.jira.plugin.viewissue.AttachmentBlockContextProvider
Provides two sets of attachments, image attachments and file attachments. If enabled zip file attachments
are expanded to include zip entries
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final LoggerWrapper log
AttachmentsFactory
public AttachmentsFactory()
getAttachments
public ServiceOutcome<Attachments> getAttachments(com.atlassian.crowd.embedded.api.User user,
java.lang.Long issueId,
java.lang.String issueKey)
getAttachments
public ServiceOutcome<Attachments> getAttachments(com.atlassian.crowd.embedded.api.User user,
com.atlassian.jira.issue.Issue issue)
attachmentComparator
protected java.util.Comparator<com.atlassian.jira.issue.attachment.Attachment> attachmentComparator()
- Returns:
- a Comparator<AttachmentEntry> according to the user's selection.
getZipContents
public ServiceOutcome<AttachmentEntry.ZipContents> getZipContents(com.atlassian.jira.issue.Issue issue,
com.atlassian.jira.issue.attachment.AttachmentItem item)
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 © 2007-2014 Atlassian. All Rights Reserved.