Class BackwardCompatibleTemporaryAttachmentUtil
java.lang.Object
com.atlassian.jira.web.action.issue.util.BackwardCompatibleTemporaryAttachmentUtil
This class gives ability to handle temporary attachment conversion with backward compatible way. It is meant to be
used in places where we cannot introduce breaking changes. Hopefully it can go to void really quick and we can
re-introduce peace into JIRA code base...
Be warned: this class pretends to be smart, but in fact it keeps the fingers crossed on any action it performs.
- Since:
- v6.4
-
Constructor Summary
ConstructorsConstructorDescriptionBackwardCompatibleTemporaryAttachmentUtil
(TemporaryAttachmentsMonitorLocator temporaryAttachmentsMonitorLocator, TemporaryWebAttachmentManager temporaryWebAttachmentManager, AttachmentManager attachmentManager, I18nHelper.BeanFactory i18nFactory) -
Method Summary
Modifier and TypeMethodDescriptionboolean
allAttachmentsExists
(List<String> temporaryAttachmentEntryIds) void
clearTemporaryAttachmentsByFormToken
(String formToken) convertTemporaryAttachments
(ApplicationUser user, Issue issue, List<String> temporaryAttachmentsIds) Collection<?>
getTemporaryWebAttachmentsByFormToken
(String formToken)
-
Constructor Details
-
BackwardCompatibleTemporaryAttachmentUtil
public BackwardCompatibleTemporaryAttachmentUtil(TemporaryAttachmentsMonitorLocator temporaryAttachmentsMonitorLocator, TemporaryWebAttachmentManager temporaryWebAttachmentManager, AttachmentManager attachmentManager, I18nHelper.BeanFactory i18nFactory)
-
-
Method Details
-
allAttachmentsExists
-
convertTemporaryAttachments
public AttachmentsBulkOperationResult<ChangeItemBean> convertTemporaryAttachments(ApplicationUser user, Issue issue, List<String> temporaryAttachmentsIds) -
getTemporaryWebAttachmentsByFormToken
-
clearTemporaryAttachmentsByFormToken
-