public class AttachmentEntity extends SearchResultEntity
id
Constructor and Description |
---|
AttachmentEntity() |
Modifier and Type | Method and Description |
---|---|
void |
addLink(com.atlassian.plugins.rest.common.Link link)
Add a link to the list
|
boolean |
equals(Object o) |
String |
getComment()
Comment for the attachment.
|
String |
getContentType()
MIME type for the attached file, as reported by the browser when uploaded.
|
DateEntity |
getCreatedDate()
Date this attachment was created.
|
String |
getFileExtension()
Returns the file extension of the attachment.
|
String |
getFileName()
Name of the file.
|
long |
getFileSize()
Filesize in bytes.
|
String |
getIconClass() |
DateEntity |
getLastModifiedDate()
Date this attachment was last modified.
|
List<com.atlassian.plugins.rest.common.Link> |
getLinks()
Links to this attachment, should always contain "self".
|
String |
getNiceFileSize()
Human readable representation of the filesize such as 16k
|
String |
getNiceType()
A nice type representation of the mime type such as "image" or "pdf"
|
String |
getOwnerId()
Id of the owner of this attachment.
|
String |
getParentContentType()
Content type of the parent of this attachment
|
String |
getParentDatePath()
Date path of the parent of this attachment (if parent is blog)
|
String |
getParentTitle()
Title of the parent of this attachment.
|
SpaceEntity |
getSpace()
Space where this attachment (and it's parent page if any) resides.
|
int |
getThumbnailHeight() |
com.atlassian.plugins.rest.common.Link |
getThumbnailLink()
Link to a thumbnail representation of this attachment, only applicable to images.
|
int |
getThumbnailWidth() |
String |
getTitle()
Title of the attachment.
|
String |
getType() |
int |
getVersion()
Version number for the attachment.
|
String |
getWikiLink()
Link to this attachment in wiki format.
|
int |
hashCode() |
void |
setComment(String comment)
Comment for the attachment.
|
void |
setContentType(String contentType)
MIME type for the attached file, as reported by the browser when uploaded.
|
void |
setCreatedDate(DateEntity createdDate)
Date this attachment was created.
|
void |
setFileName(String fileName)
Name of the file.
|
void |
setFileSize(long fileSize)
Filesize in bytes.
|
void |
setIconClass(String iconClass) |
void |
setLastModifiedDate(DateEntity lastModifiedDate)
Date this attachment was last modified.
|
void |
setNiceFileSize(String niceFileSize)
Human readable representation of the filesize such as 16k
|
void |
setNiceType(String niceType)
A nice type representation of the mime type such as "image" or "pdf"
|
void |
setOwnerId(String ownerId)
Id of the owner of this attachment.
|
void |
setParentContentType(String parentContentType)
Content type of the parent of this attachment
|
void |
setParentDatePath(String parentDatePath)
Date path of the parent of this attachment (if parent is blog)
|
void |
setParentTitle(String parentTitle)
Title of the parent of this attachment.
|
void |
setSpace(SpaceEntity space)
Space where this attachment (and it's parent page if any) resides.
|
void |
setThumbnailHeight(int thumbnailHeight) |
void |
setThumbnailLink(com.atlassian.plugins.rest.common.Link thumbnailLink)
Link to a thumbnail representation of this attachment, only applicable to images.
|
void |
setThumbnailWidth(int thumbnailWidth) |
void |
setTitle(String title)
Title of the attachment.
|
void |
setVersion(int version)
Version number for the attachment.
|
void |
setWikiLink(String wikiLink)
Link to this attachment in wiki format.
|
String |
toString() |
getId, getIdLong, setId
public String getType()
public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- the ownerId to setpublic String getParentTitle()
public void setParentTitle(String parentTitle)
parentTitle
- the title to setpublic String getParentContentType()
public void setParentContentType(String parentContentType)
parentContentType
- public String getParentDatePath()
public void setParentDatePath(String parentDatePath)
parentDatePath
- public String getFileName()
public String getContentType()
public void setContentType(String contentType)
contentType
- the contentType to setpublic long getFileSize()
public void setFileSize(long fileSize)
fileSize
- the fileSize to setpublic String getNiceFileSize()
public void setNiceFileSize(String niceFileSize)
niceFileSize
- the niceFileSize to setpublic String getComment()
public void setComment(String comment)
comment
- the comment to setpublic int getVersion()
public void setVersion(int version)
version
- the version to setpublic void setNiceType(String niceType)
niceType
- the niceType to setpublic String getNiceType()
public String getTitle()
public void setTitle(String title)
title
- the title to setpublic com.atlassian.plugins.rest.common.Link getThumbnailLink()
public void setThumbnailLink(com.atlassian.plugins.rest.common.Link thumbnailLink)
thumbnailLink
- the thumbnailLink to setpublic int getThumbnailWidth()
public void setThumbnailWidth(int thumbnailWidth)
public int getThumbnailHeight()
public void setThumbnailHeight(int thumbnailHeight)
public String getWikiLink()
public void setWikiLink(String wikiLink)
wikiLink
- the wikiLink to setpublic SpaceEntity getSpace()
public void setSpace(SpaceEntity space)
space
- the space to setpublic DateEntity getLastModifiedDate()
public void setLastModifiedDate(DateEntity lastModifiedDate)
lastModifiedDate
- the lastModifiedDate to setpublic DateEntity getCreatedDate()
public void setCreatedDate(DateEntity createdDate)
createdDate
- the createdDate to setpublic void setFileName(String fileName)
fileName
- the fileName to setpublic void addLink(com.atlassian.plugins.rest.common.Link link)
link
- public List<com.atlassian.plugins.rest.common.Link> getLinks()
public String getIconClass()
public void setIconClass(String iconClass)
public String getFileExtension()
public String toString()
toString
in class SearchResultEntity
public boolean equals(Object o)
equals
in class SearchResultEntity
public int hashCode()
hashCode
in class SearchResultEntity
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences