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 String
OCTET_STREAM_MIME_TYPE
-
Constructor Summary
Constructors Constructor Description DefaultFileUploadManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 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: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
public void setAttachmentManager(AttachmentManager attachmentManager)
- Specified by:
setAttachmentManager
in interfaceFileUploadManager
-
setMimeTypeTranslator
public void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)
-
-