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, java.lang.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, java.lang.String comment, ContentEntityObject content)
          Deprecated. since 3.1 use storeResource(AttachmentResource, ContentEntityObject) instead because the optional comment is now part of the AttachmentResource interface.
 java.util.Collection verifyFile(java.lang.String fileName, com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
          Deprecated. since 3.1 because it is only used in tests
 

Method Detail

verifyFile

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


storeFile

void storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile,
               java.lang.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

void storeResource(AttachmentResource attachmentResource,
                   java.lang.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:
java.lang.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:
java.lang.RuntimeException - if there are any problems saving the attachment resource as an attachment

setAttachmentManager

void setAttachmentManager(AttachmentManager attachmentManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.