com.atlassian.confluence.pages
Class DefaultFileUploadManager

java.lang.Object
  extended by com.atlassian.confluence.pages.DefaultFileUploadManager
All Implemented Interfaces:
FileUploadManager

public class DefaultFileUploadManager
extends java.lang.Object
implements FileUploadManager


Field Summary
static java.lang.String OCTET_STREAM_MIME_TYPE
           
 
Constructor Summary
DefaultFileUploadManager()
           
 
Method Summary
 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(java.util.Collection<AttachmentResource> attachmentResources, ContentEntityObject content)
          Stores the attachmentResource as an Attachment on the specified content object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OCTET_STREAM_MIME_TYPE

public static final java.lang.String OCTET_STREAM_MIME_TYPE
See Also:
Constant Field Values
Constructor Detail

DefaultFileUploadManager

public DefaultFileUploadManager()
Method Detail

storeResource

public void storeResource(AttachmentResource resource,
                          ContentEntityObject ceo)
Description copied from interface: FileUploadManager
Stores the attachmentResource as an Attachment on the specified content object.

Specified by:
storeResource in interface FileUploadManager
Parameters:
resource - contains the required state to create an attachment
ceo - the content object which the attachment will be attached to

storeResources

public void storeResources(java.util.Collection<AttachmentResource> attachmentResources,
                           ContentEntityObject content)
Description copied from interface: FileUploadManager
Stores the attachmentResource as an Attachment on the specified content object.

Specified by:
storeResources in interface FileUploadManager
Parameters:
attachmentResources - contains a collection of AttachmentResrouce objects, each containing the required state to create an individual attachment
content - the content object which the attachment will be attached to

setAttachmentManager

public void setAttachmentManager(AttachmentManager attachmentManager)
Specified by:
setAttachmentManager in interface FileUploadManager

setMimeTypeTranslator

public void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)


Copyright © 2003-2014 Atlassian. All Rights Reserved.