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 storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile, java.lang.String comment, ContentEntityObject ceo)
           
 void storeResource(AttachmentResource resource, ContentEntityObject ceo)
          Stores the attachmentResource as an Attachment on the specified content object.
 void storeResource(AttachmentResource resource, java.lang.String comment, ContentEntityObject ceo)
          Stores the attachmentResource as an Attachment on the specified content object.
 java.util.Collection verifyFile(java.lang.String fileName, com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
          Deprecated. since 3.1 because it isn't used anywhere
 
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

verifyFile

public java.util.Collection verifyFile(java.lang.String fileName,
                                       com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
Deprecated. since 3.1 because it isn't used anywhere

Specified by:
verifyFile in interface FileUploadManager

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

storeResource

public void storeResource(AttachmentResource resource,
                          java.lang.String comment,
                          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
comment - attachment comment
ceo - the content object which the attachment will be attached to

storeFile

public void storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile,
                      java.lang.String comment,
                      ContentEntityObject ceo)
Specified by:
storeFile in interface FileUploadManager

setAttachmentManager

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

setMimeTypeTranslator

public void setMimeTypeTranslator(AttachmentMimeTypeTranslator mimeTypeTranslator)


Copyright © 2003-2010 Atlassian. All Rights Reserved.