Class AttachmentUpload
java.lang.Object
com.atlassian.confluence.api.model.content.AttachmentUpload
Represents a single attachment being uploaded.
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentUpload
(File file, String name, String mediaType, String comment, boolean minorEdit) AttachmentUpload
(File file, String name, String mediaType, String comment, boolean minorEdit, boolean hidden) -
Method Summary
-
Constructor Details
-
AttachmentUpload
-
AttachmentUpload
-
-
Method Details
-
withName
Create a new AttachmentUpload object from this one, changing the logical filename but keeping other fields.- Parameters:
newName
- the new logical filename (i.e. the value forgetName()
on the new object)- Returns:
- new AttachmentUpload with new filename but other fields copied from this object.
-
getComment
-
getMediaType
-
getFile
-
getName
-
isMinorEdit
public boolean isMinorEdit() -
isHidden
public boolean isHidden() -
toString
-