com.atlassian.confluence.pages
Interface FileUploadManager

All Known Implementing Classes:
DefaultFileUploadManager

public interface FileUploadManager


Method Summary
 void setAttachmentManager(AttachmentManager attachmentManager)
           
 void storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile, String comment, ContentEntityObject ceo)
          Deprecated. since 3.1 use storeResource(AttachmentResource, String, ContentEntityObject) instead. Note that UploadedResource provides a simple way to convert one to the other.
 void storeResource(AttachmentResource attachmentResource, ContentEntityObject content)
          Stores the attachmentResource as an Attachment on the specified content object.
 void storeResource(AttachmentResource attachmentResource, String comment, ContentEntityObject content)
          Deprecated. since 3.1 use storeResource(AttachmentResource, ContentEntityObject) instead because the optional comment is now part of the AttachmentResource interface.
 void storeResources(Collection<AttachmentResource> attachmentResources, ContentEntityObject content)
          Stores the attachmentResource as an Attachment on the specified content object.
 Collection verifyFile(String fileName, com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
          Deprecated. since 3.1 because it is only used in tests
 

Method Detail

verifyFile

@Deprecated
Collection verifyFile(String fileName,
                                 com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
Deprecated. since 3.1 because it is only used in tests


storeFile

@Deprecated
void storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile,
                          String comment,
                          ContentEntityObject ceo)
Deprecated. since 3.1 use storeResource(AttachmentResource, String, ContentEntityObject) instead. Note that UploadedResource provides a simple way to convert one to the other.


storeResource

@Deprecated
void storeResource(AttachmentResource attachmentResource,
                              String comment,
                              ContentEntityObject content)
Deprecated. since 3.1 use storeResource(AttachmentResource, ContentEntityObject) instead because the optional comment is now part of the AttachmentResource interface.

Stores the attachmentResource as an Attachment on the specified content object.

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

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

storeResources

void storeResources(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:
RuntimeException - if there are any problems saving the attachment resource as an attachment

setAttachmentManager

void setAttachmentManager(AttachmentManager attachmentManager)


Copyright © 2003-2012 Atlassian. All Rights Reserved.