@PublicApi public class CreateAttachmentParamsBean extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateAttachmentParamsBean.Builder |
Constructor and Description |
---|
CreateAttachmentParamsBean(File file,
String filename,
String contentType,
ApplicationUser author,
Issue issue,
Boolean zip,
Boolean thumbnailable,
Map<String,Object> attachmentProperties,
Date createdTime,
Boolean copySourceFile) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttachmentProperties() |
ApplicationUser |
getAuthor() |
String |
getContentType() |
Boolean |
getCopySourceFile() |
Date |
getCreatedTime() |
File |
getFile() |
String |
getFilename() |
Issue |
getIssue() |
Boolean |
getThumbnailable() |
Boolean |
getZip() |
public CreateAttachmentParamsBean(File file, String filename, String contentType, @Nullable ApplicationUser author, Issue issue, Boolean zip, Boolean thumbnailable, Map<String,Object> attachmentProperties, Date createdTime, Boolean copySourceFile)
file
- A file on a locally accessible filesystemfilename
- The desired filename for this attachment. This may be different to the filename on disk (for
example with temp files used in file uploads)contentType
- The desired contentType. Implementations of this interface can choose to override this value
as appropriateauthor
- The user who created this attachmentissue
- The issue that this file is to be attached tozip
- This file is a zip file. Null indicates that it is not know if this attachment is a zip file or notthumbnailable
- This file is thumbnailable (e.g. a png image). Null indicates that it is not know if this
attachment is thumbnailable or notattachmentProperties
- Attachment properties (a Map of String -> Object properties). These are optional,
and are used to populate a PropertySet on the Attachment (Attachment.getProperties()
.
Pass null to set no propertiescreatedTime
- The created timecopySourceFile
- The source file should remain in file system. Null or false indicates that should be
removed.public File getFile()
public String getFilename()
public String getContentType()
@Nullable public ApplicationUser getAuthor()
public Issue getIssue()
public Boolean getZip()
public Boolean getThumbnailable()
public Map<String,Object> getAttachmentProperties()
Attachment.getProperties()
.
Pass null to set no propertiespublic Date getCreatedTime()
public Boolean getCopySourceFile()
Copyright © 2002-2022 Atlassian. All Rights Reserved.