com.atlassian.jira.rest.client.domain
Class Attachment

java.lang.Object
  extended by com.atlassian.jira.rest.client.domain.Attachment
All Implemented Interfaces:
AddressableEntity

public class Attachment
extends Object
implements AddressableEntity

A file attachment attached to an issue

Since:
v0.1

Constructor Summary
Attachment(URI self, String filename, BasicUser author, org.joda.time.DateTime creationDate, int size, String mimeType, URI contentUri, URI thumbnailUri)
           
 
Method Summary
 boolean equals(Object obj)
           
 BasicUser getAuthor()
           
 URI getContentUri()
           
 org.joda.time.DateTime getCreationDate()
           
 String getFilename()
           
 String getMimeType()
           
 URI getSelf()
           
 int getSize()
           
 URI getThumbnailUri()
           
 int hashCode()
           
 boolean hasThumbnail()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Attachment

public Attachment(URI self,
                  String filename,
                  BasicUser author,
                  org.joda.time.DateTime creationDate,
                  int size,
                  String mimeType,
                  URI contentUri,
                  URI thumbnailUri)
Method Detail

hasThumbnail

public boolean hasThumbnail()

getSelf

public URI getSelf()
Specified by:
getSelf in interface AddressableEntity
Returns:
URI to this resource or (usually) its complete version - when partial representation is embedded in other resources

getFilename

public String getFilename()

getAuthor

public BasicUser getAuthor()

getCreationDate

public org.joda.time.DateTime getCreationDate()

getSize

public int getSize()

getMimeType

public String getMimeType()

getContentUri

public URI getContentUri()

getThumbnailUri

@Nullable
public URI getThumbnailUri()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.