Package com.atlassian.confluence.pages
Class DefaultFileUploadManager
java.lang.Object
com.atlassian.confluence.pages.DefaultFileUploadManager
- All Implemented Interfaces:
FileUploadManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAttachmentManager
(AttachmentManager attachmentManager) void
setMimeTypeTranslator
(AttachmentMimeTypeTranslator mimeTypeTranslator) void
storeResource
(AttachmentResource resource, ContentEntityObject ceo) Stores the attachmentResource as anAttachment
on the specified content object.void
storeResources
(Collection<AttachmentResource> attachmentResources, ContentEntityObject content) Stores the attachmentResource as anAttachment
on the specified content object.
-
Field Details
-
OCTET_STREAM_MIME_TYPE
- See Also:
-
-
Constructor Details
-
DefaultFileUploadManager
public DefaultFileUploadManager()
-
-
Method Details
-
storeResource
Description copied from interface:FileUploadManager
Stores the attachmentResource as anAttachment
on the specified content object.- Specified by:
storeResource
in interfaceFileUploadManager
- Parameters:
resource
- contains the required state to create an attachmentceo
- the content object which the attachment will be attached to
-
storeResources
public void storeResources(Collection<AttachmentResource> attachmentResources, ContentEntityObject content) Description copied from interface:FileUploadManager
Stores the attachmentResource as anAttachment
on the specified content object.- Specified by:
storeResources
in interfaceFileUploadManager
- Parameters:
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 to
-
setAttachmentManager
-
setMimeTypeTranslator
-