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 Summary
Modifier and TypeMethodDescriptionvoid
populateFieldValuesHolder
(String formToken, Map<String, Object> fieldValuesHolder) PopulatesfieldValuesHolder
from request parameters.void
processAttachments
(MutableIssue mutableIssue, Map<String, Object> fieldValuesHolder) Process attachments.void
Requires drag and drop resources used to handle image pasting and upload in javascript.void
validate
(OperationContext operationContext, ErrorCollection errorCollectionToAddTo, I18nHelper i18n, String formToken, Issue issue, Map<String, Object> fieldValuesHolder) Validates file upload parameters passed from request.
-
Method Details
-
requireResources
void requireResources()Requires drag and drop resources used to handle image pasting and upload in javascript. -
populateFieldValuesHolder
PopulatesfieldValuesHolder
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
-
-