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)
FileUploadManager
Attachment
on the specified content object.storeResource
in interface FileUploadManager
resource
- 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)
FileUploadManager
Attachment
on the specified content object.storeResources
in interface FileUploadManager
attachmentResources
- 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 FileUploadManager
public void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)
Copyright © 2003–2020 Atlassian. All rights reserved.