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 TypeMethodDescriptionvoidsetAttachmentManager(AttachmentManager attachmentManager) voidsetMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator) voidstoreResource(AttachmentResource resource, ContentEntityObject ceo) Stores the attachmentResource as anAttachmenton the specified content object.voidstoreResources(Collection<AttachmentResource> attachmentResources, ContentEntityObject content) Stores the attachmentResource as anAttachmenton the specified content object.
-
Field Details
-
OCTET_STREAM_MIME_TYPE
- See Also:
-
-
Constructor Details
-
DefaultFileUploadManager
public DefaultFileUploadManager()
-
-
Method Details
-
storeResource
Description copied from interface:FileUploadManagerStores the attachmentResource as anAttachmenton the specified content object.- Specified by:
storeResourcein 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:FileUploadManagerStores the attachmentResource as anAttachmenton the specified content object.- Specified by:
storeResourcesin 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
-