public class DefaultFileUploadManager extends Object implements FileUploadManager
| Modifier and Type | Field and Description |
|---|---|
static String |
OCTET_STREAM_MIME_TYPE |
| Constructor and Description |
|---|
DefaultFileUploadManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
setAttachmentManager(AttachmentManager attachmentManager) |
void |
setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator) |
void |
storeResource(AttachmentResource resource,
ContentEntityObject ceo)
Stores the attachmentResource as an
Attachment on the specified content object. |
void |
storeResources(Collection<AttachmentResource> attachmentResources,
ContentEntityObject content)
Stores the attachmentResource as an
Attachment on the specified content object. |
public static final String OCTET_STREAM_MIME_TYPE
public void storeResource(AttachmentResource resource, ContentEntityObject ceo)
FileUploadManagerAttachment on the specified content object.storeResource in interface FileUploadManagerresource - contains the required state to create an attachmentceo - the content object which the attachment will be attached topublic void storeResources(Collection<AttachmentResource> attachmentResources, ContentEntityObject content)
FileUploadManagerAttachment on the specified content object.storeResources in interface FileUploadManagerattachmentResources - contains a collection of AttachmentResrouce objects, each containing the required state to create an individual attachmentcontent - the content object which the attachment will be attached topublic void setAttachmentManager(AttachmentManager attachmentManager)
setAttachmentManager in interface FileUploadManagerpublic void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)
Copyright © 2003–2017 Atlassian. All rights reserved.