com.atlassian.confluence.pages
Interface FileUploadManager

All Known Implementing Classes:
DefaultFileUploadManager

public interface FileUploadManager


Method Summary
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void storeResource(AttachmentResource attachmentResource, ContentEntityObject content)
          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.
 

Method Detail

storeResource

void storeResource(AttachmentResource attachmentResource,
                   ContentEntityObject content)
Stores the attachmentResource as an Attachment on the specified content object.

Parameters:
attachmentResource - contains the required state to create an attachment
content - the content object which the attachment will be attached to
Throws:
java.lang.RuntimeException - if there are any problems saving the attachment resource as an attachment

storeResources

void storeResources(java.util.Collection<AttachmentResource> attachmentResources,
                    ContentEntityObject content)
Stores the attachmentResource as an Attachment on the specified content object.

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
Throws:
java.lang.RuntimeException - if there are any problems saving the attachment resource as an attachment

setAttachmentManager

void setAttachmentManager(AttachmentManager attachmentManager)


Copyright © 2003-2014 Atlassian. All Rights Reserved.