com.atlassian.jira.issue.attachment
Class TemporaryAttachment

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

@PublicApi
public class TemporaryAttachment
extends Object
implements 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(Long id, Long issueId, File tempAttachment, String filename, String contentType)
           
 
Method Summary
 int compareTo(TemporaryAttachment other)
           
 boolean equals(Object o)
           
 String getContentType()
           
 Date getCreated()
           
 File getFile()
           
 String getFilename()
           
 Long getId()
           
 Long getIssueId()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporaryAttachment

public TemporaryAttachment(Long id,
                           Long issueId,
                           File tempAttachment,
                           String filename,
                           String contentType)
Method Detail

getId

public Long getId()

getIssueId

public Long getIssueId()

getFile

public File getFile()

getContentType

public String getContentType()

getFilename

public String getFilename()

getCreated

public Date getCreated()

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.