public class DefaultAttachmentHelper extends Object implements AttachmentHelper
Constructor and Description |
---|
DefaultAttachmentHelper(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService,
AttachmentValidator attachmentValidator,
FieldLayoutManager fieldLayoutManager,
JiraAuthenticationContext jiraAuthenticationContext,
FieldManager fieldManager,
FieldScreenRendererFactory fieldScreenRendererFactory) |
Modifier and Type | Method and Description |
---|---|
void |
populateFieldValuesHolder(String formToken,
Map<String,Object> fieldValuesHolder)
Populates
fieldValuesHolder from request parameters. |
void |
processAttachments(MutableIssue mutableIssue,
Map<String,Object> fieldValuesHolder)
Process attachments.
|
void |
requireResources()
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.
|
public DefaultAttachmentHelper(com.atlassian.webresource.api.assembler.PageBuilderService pageBuilderService, AttachmentValidator attachmentValidator, FieldLayoutManager fieldLayoutManager, JiraAuthenticationContext jiraAuthenticationContext, FieldManager fieldManager, FieldScreenRendererFactory fieldScreenRendererFactory)
public void requireResources()
AttachmentHelper
requireResources
in interface AttachmentHelper
public void populateFieldValuesHolder(String formToken, @Nonnull Map<String,Object> fieldValuesHolder)
AttachmentHelper
fieldValuesHolder
from request parameters.populateFieldValuesHolder
in interface AttachmentHelper
public void validate(@Nonnull OperationContext operationContext, @Nonnull ErrorCollection errorCollectionToAddTo, @Nonnull I18nHelper i18n, String formToken, @Nonnull Issue issue, @Nonnull Map<String,Object> fieldValuesHolder)
AttachmentHelper
validate
in interface AttachmentHelper
public void processAttachments(@Nonnull MutableIssue mutableIssue, @Nonnull Map<String,Object> fieldValuesHolder)
AttachmentHelper
processAttachments
in interface AttachmentHelper
Copyright © 2002-2017 Atlassian. All Rights Reserved.