Package com.atlassian.confluence.pages
Class DefaultFileUploadManager
- java.lang.Object
-
- com.atlassian.confluence.pages.DefaultFileUploadManager
-
- All Implemented Interfaces:
FileUploadManager
public class DefaultFileUploadManager extends Object implements FileUploadManager
-
-
Field Summary
Fields Modifier and Type Field Description static StringOCTET_STREAM_MIME_TYPE
-
Constructor Summary
Constructors Constructor Description DefaultFileUploadManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetAttachmentManager(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 Detail
-
OCTET_STREAM_MIME_TYPE
public static final String OCTET_STREAM_MIME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
storeResource
public void storeResource(AttachmentResource resource, ContentEntityObject ceo)
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
public void setAttachmentManager(AttachmentManager attachmentManager)
- Specified by:
setAttachmentManagerin interfaceFileUploadManager
-
setMimeTypeTranslator
public void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)
-
-