|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 |
---|
java.util.Collection verifyFile(java.lang.String fileName, com.atlassian.xwork.FileUploadUtils.UploadedFile[] uploadedFiles)
void storeFile(com.atlassian.xwork.FileUploadUtils.UploadedFile uploadedFile, java.lang.String comment, ContentEntityObject ceo)
storeResource(AttachmentResource, String, ContentEntityObject)
instead.
Note that UploadedResource
provides a simple way to convert one to the other.
void storeResource(AttachmentResource attachmentResource, java.lang.String comment, ContentEntityObject content)
storeResource(AttachmentResource, ContentEntityObject)
instead because
the optional comment is now part of the AttachmentResource interface.
Attachment
on the specified content object.
attachmentResource
- contains the required state to create an attachmentcomment
- attachment commentcontent
- the content object which the attachment will be attached to
java.lang.RuntimeException
- if there are any problems saving the attachment resource as an attachmentvoid storeResource(AttachmentResource attachmentResource, ContentEntityObject content)
Attachment
on the specified content object.
attachmentResource
- contains the required state to create an attachmentcontent
- the content object which the attachment will be attached to
java.lang.RuntimeException
- if there are any problems saving the attachment resource as an attachmentvoid setAttachmentManager(AttachmentManager attachmentManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |