Interface AttachmentHelper

All Known Implementing Classes:
DefaultAttachmentHelper

@Internal public interface AttachmentHelper
Helper used in webwork actions for processing attachments via drag and drop in forms.
  • Method Details

    • requireResources

      void requireResources()
      Requires drag and drop resources used to handle image pasting and upload in javascript.
    • populateFieldValuesHolder

      void populateFieldValuesHolder(String formToken, @Nonnull Map<String,Object> fieldValuesHolder)
      Populates fieldValuesHolder from request parameters.
      Parameters:
      formToken -
      fieldValuesHolder -
    • validate

      void validate(@Nonnull OperationContext operationContext, @Nonnull ErrorCollection errorCollectionToAddTo, @Nonnull I18nHelper i18n, String formToken, @Nonnull Issue issue, @Nonnull Map<String,Object> fieldValuesHolder)
      Validates file upload parameters passed from request.
      Parameters:
      operationContext -
      errorCollectionToAddTo -
      i18n -
      formToken -
      issue -
      fieldValuesHolder -
    • processAttachments

      void processAttachments(@Nonnull MutableIssue mutableIssue, @Nonnull Map<String,Object> fieldValuesHolder)
      Process attachments. Turns temporary attachments to regular attachments for specified issue.
      Parameters:
      mutableIssue -
      fieldValuesHolder -