com.atlassian.jira.issue.attachment
Class TemporaryAttachment

java.lang.Object
  extended by com.atlassian.jira.issue.attachment.TemporaryAttachment
All Implemented Interfaces:
java.lang.Comparable<TemporaryAttachment>

public class TemporaryAttachment
extends java.lang.Object
implements java.lang.Comparable<TemporaryAttachment>

Represents a temporary attachment, that is an attachment that's been uploaded to the server but not yet attached to an issue. The issueId may be null for newly created issues! Temporary Attachments can be sorted by created date,

Since:
v4.2

Constructor Summary
TemporaryAttachment(java.lang.Long id, java.lang.Long issueId, java.io.File tempAttachment, java.lang.String filename, java.lang.String contentType)
           
 
Method Summary
 int compareTo(TemporaryAttachment other)
           
 boolean equals(java.lang.Object o)
           
 java.lang.String getContentType()
           
 java.util.Date getCreated()
           
 java.io.File getFile()
           
 java.lang.String getFilename()
           
 java.lang.Long getId()
           
 java.lang.Long getIssueId()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemporaryAttachment

public TemporaryAttachment(java.lang.Long id,
                           java.lang.Long issueId,
                           java.io.File tempAttachment,
                           java.lang.String filename,
                           java.lang.String contentType)
Method Detail

getId

public java.lang.Long getId()

getIssueId

public java.lang.Long getIssueId()

getFile

public java.io.File getFile()

getContentType

public java.lang.String getContentType()

getFilename

public java.lang.String getFilename()

getCreated

public java.util.Date getCreated()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(TemporaryAttachment other)
Specified by:
compareTo in interface java.lang.Comparable<TemporaryAttachment>


Copyright © 2002-2010 Atlassian. All Rights Reserved.