public class

AttachmentEntity

extends SearchResultEntity
java.lang.Object
   ↳ com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
     ↳ com.atlassian.confluence.plugins.rest.entities.AttachmentEntity

Summary

[Expand]
Inherited Fields
From class com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
Public Constructors
AttachmentEntity()
Public Methods
void addLink(Link link)
Add a link to the list
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<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.
SpaceEntity getSpace()
Space where this attachment (and it's parent page if any) resides.
Link getThumbnailLink()
Link to a thumbnail representation of this attachment, only applicable to images.
String getTitle()
Title of the attachment.
String getType()
int getVersion()
Version number for the attachment.
String getWikiLink()
Link to this attachment in wiki format.
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 setSpace(SpaceEntity space)
Space where this attachment (and it's parent page if any) resides.
void setThumbnailLink(Link thumbnailLink)
Link to a thumbnail representation of this attachment, only applicable to images.
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.
[Expand]
Inherited Methods
From class com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
From class java.lang.Object

Public Constructors

public AttachmentEntity ()

Public Methods

public void addLink (Link link)

Add a link to the list

public String getComment ()

Comment for the attachment.

Returns
  • the comment

public String getContentType ()

MIME type for the attached file, as reported by the browser when uploaded.

Returns
  • the contentType

public DateEntity getCreatedDate ()

Date this attachment was created.

Returns
  • the createdDate

public String getFileExtension ()

Returns the file extension of the attachment. If there is no extension, an empty string is returned.

Returns
  • the file extension of the attachment in lower case

public String getFileName ()

Name of the file.

Returns
  • the fileName

public long getFileSize ()

Filesize in bytes.

Returns
  • the fileSize

public String getIconClass ()

public DateEntity getLastModifiedDate ()

Date this attachment was last modified.

Returns
  • the lastModifiedDate

public List<Link> getLinks ()

Links to this attachment, should always contain "self".

Returns
  • the links

public String getNiceFileSize ()

Human readable representation of the filesize such as 16k

Returns
  • the niceFileSize

public String getNiceType ()

A nice type representation of the mime type such as "image" or "pdf"

Returns
  • the niceType

public String getOwnerId ()

Id of the owner of this attachment.

Returns
  • the ownerId

public SpaceEntity getSpace ()

Space where this attachment (and it's parent page if any) resides.

Returns
  • the space

public Link getThumbnailLink ()

Link to a thumbnail representation of this attachment, only applicable to images.

Returns
  • the thumbnailLink

public String getTitle ()

Title of the attachment.

Returns
  • the title

public String getType ()

Returns
  • the type

public int getVersion ()

Version number for the attachment.

Returns
  • the version

public String getWikiLink ()

Link to this attachment in wiki format.

Returns
  • the wikiLink

public void setComment (String comment)

Comment for the attachment.

Parameters
comment the comment to set

public void setContentType (String contentType)

MIME type for the attached file, as reported by the browser when uploaded.

Parameters
contentType the contentType to set

public void setCreatedDate (DateEntity createdDate)

Date this attachment was created.

Parameters
createdDate the createdDate to set

public void setFileName (String fileName)

Name of the file. Also sets the title to the fileName.

Parameters
fileName the fileName to set

public void setFileSize (long fileSize)

Filesize in bytes.

Parameters
fileSize the fileSize to set

public void setIconClass (String iconClass)

public void setLastModifiedDate (DateEntity lastModifiedDate)

Date this attachment was last modified.

Parameters
lastModifiedDate the lastModifiedDate to set

public void setNiceFileSize (String niceFileSize)

Human readable representation of the filesize such as 16k

Parameters
niceFileSize the niceFileSize to set

public void setNiceType (String niceType)

A nice type representation of the mime type such as "image" or "pdf"

Parameters
niceType the niceType to set

public void setOwnerId (String ownerId)

Id of the owner of this attachment.

Parameters
ownerId the ownerId to set

public void setSpace (SpaceEntity space)

Space where this attachment (and it's parent page if any) resides.

Parameters
space the space to set

public void setThumbnailLink (Link thumbnailLink)

Link to a thumbnail representation of this attachment, only applicable to images.

Parameters
thumbnailLink the thumbnailLink to set

public void setTitle (String title)

Title of the attachment.

Parameters
title the title to set

public void setVersion (int version)

Version number for the attachment.

Parameters
version the version to set

public void setWikiLink (String wikiLink)

Link to this attachment in wiki format.

Parameters
wikiLink the wikiLink to set