Package com.atlassian.confluence.pages
Interface FileUploadManager
- All Known Implementing Classes:
DefaultFileUploadManager
public interface FileUploadManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidstoreResource(AttachmentResource attachmentResource, ContentEntityObject content) Stores the attachmentResource as anAttachmenton the specified content object.voidstoreResources(Collection<AttachmentResource> attachmentResources, ContentEntityObject content) Stores the attachmentResource as anAttachmenton the specified content object.
-
Method Details
-
storeResource
Stores the attachmentResource as anAttachmenton the specified content object.- Parameters:
attachmentResource- contains the required state to create an attachmentcontent- 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 anAttachmenton the specified content object.- Parameters:
attachmentResources- contains a collection of AttachmentResrouce objects, each containing the required state to create an individual attachmentcontent- the content object which the attachment will be attached to- Throws:
RuntimeException- if there are any problems saving the attachment resource as an attachment
-