com.atlassian.confluence.plugins.rest.entities
Class AttachmentEntity

java.lang.Object
  extended by com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
      extended by com.atlassian.confluence.plugins.rest.entities.AttachmentEntity

public class AttachmentEntity
extends SearchResultEntity


Field Summary
 
Fields inherited from class com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
id
 
Constructor Summary
AttachmentEntity()
           
 
Method Summary
 void addLink(com.atlassian.plugins.rest.common.Link link)
           
 java.lang.String getComment()
           
 java.lang.String getContentType()
           
 DateEntity getCreatedDate()
           
 java.lang.String getFileExtension()
          Returns the file extension of the attachment.
 java.lang.String getFileName()
           
 long getFileSize()
           
 java.lang.String getIconClass()
           
 DateEntity getLastModifiedDate()
           
 java.util.List<com.atlassian.plugins.rest.common.Link> getLinks()
           
 java.lang.String getNiceFileSize()
           
 java.lang.String getNiceType()
           
 java.lang.String getOwnerId()
           
 SpaceEntity getSpace()
           
 com.atlassian.plugins.rest.common.Link getThumbnailLink()
           
 java.lang.String getTitle()
           
 int getVersion()
           
 java.lang.String getWikiLink()
           
 void setComment(java.lang.String comment)
           
 void setContentType(java.lang.String contentType)
           
 void setCreatedDate(DateEntity createdDate)
           
 void setFileName(java.lang.String fileName)
           
 void setFileSize(long fileSize)
           
 void setIconClass(java.lang.String iconClass)
           
 void setLastModifiedDate(DateEntity lastModifiedDate)
           
 void setNiceFileSize(java.lang.String niceFileSize)
           
 void setNiceType(java.lang.String niceType)
           
 void setOwnerId(java.lang.String ownerId)
           
 void setSpace(SpaceEntity space)
           
 void setThumbnailLink(com.atlassian.plugins.rest.common.Link thumbnailLink)
           
 void setVersion(int version)
           
 void setWikiLink(java.lang.String wikiLink)
           
 
Methods inherited from class com.atlassian.confluence.plugins.rest.entities.SearchResultEntity
getId, getIdLong, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentEntity

public AttachmentEntity()
Method Detail

getFileName

public java.lang.String getFileName()

setFileName

public void setFileName(java.lang.String fileName)

getContentType

public java.lang.String getContentType()

setContentType

public void setContentType(java.lang.String contentType)

getFileSize

public long getFileSize()

setFileSize

public void setFileSize(long fileSize)

getNiceFileSize

public java.lang.String getNiceFileSize()

setNiceFileSize

public void setNiceFileSize(java.lang.String niceFileSize)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getVersion

public int getVersion()

setVersion

public void setVersion(int version)

setNiceType

public void setNiceType(java.lang.String niceType)

getNiceType

public java.lang.String getNiceType()

getOwnerId

public java.lang.String getOwnerId()

setOwnerId

public void setOwnerId(java.lang.String ownerId)

getTitle

public java.lang.String getTitle()

getThumbnailLink

public com.atlassian.plugins.rest.common.Link getThumbnailLink()

setThumbnailLink

public void setThumbnailLink(com.atlassian.plugins.rest.common.Link thumbnailLink)

getWikiLink

public java.lang.String getWikiLink()

setWikiLink

public void setWikiLink(java.lang.String wikiLink)

getSpace

public SpaceEntity getSpace()

setSpace

public void setSpace(SpaceEntity space)

setLastModifiedDate

public void setLastModifiedDate(DateEntity lastModifiedDate)

getLastModifiedDate

public DateEntity getLastModifiedDate()

setCreatedDate

public void setCreatedDate(DateEntity createdDate)

getCreatedDate

public DateEntity getCreatedDate()

addLink

public void addLink(com.atlassian.plugins.rest.common.Link link)

getLinks

public java.util.List<com.atlassian.plugins.rest.common.Link> getLinks()

getIconClass

public java.lang.String getIconClass()

setIconClass

public void setIconClass(java.lang.String iconClass)

getFileExtension

public java.lang.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


Copyright © 2003-2010 Atlassian. All Rights Reserved.