public interface

FileUploadManager

com.atlassian.confluence.pages.FileUploadManager
Known Indirect Subclasses

Summary

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

Public Methods

public void setAttachmentManager (AttachmentManager attachmentManager)

@Deprecated public void storeFile (FileUploadUtils.UploadedFile uploadedFile, String comment, ContentEntityObject ceo)

This method is deprecated.
since 3.1 use storeResource(AttachmentResource, String, ContentEntityObject) instead. Note that UploadedResource provides a simple way to convert one to the other.

@Deprecated public void storeResource (AttachmentResource attachmentResource, String comment, ContentEntityObject content)

This method is 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

public 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

public 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

@Deprecated public Collection verifyFile (String fileName, UploadedFile[] uploadedFiles)

This method is deprecated.
since 3.1 because it is only used in tests