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, File tempAttachment, String filename, String contentType, String formToken)
           
TemporaryAttachment(Long id, Long issueId, File tempAttachment, String filename, String contentType)
          Deprecated. 
 
Method Summary
 int compareTo(TemporaryAttachment other)
           
 boolean equals(Object o)
           
 String getContentType()
           
 Date getCreated()
           
static String getEntityToken(com.atlassian.fugue.Either<Issue,Project> entity)
          Deprecated. 
 File getFile()
           
 String getFilename()
           
 String getFormToken()
           
 Long getId()
           
 Long getIssueId()
          Deprecated. 
static String getIssueToken(Long issueId)
          Deprecated. 
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporaryAttachment

@Deprecated
public TemporaryAttachment(Long id,
                                      Long issueId,
                                      File tempAttachment,
                                      String filename,
                                      String contentType)
Deprecated. 


TemporaryAttachment

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

getId

public Long getId()

getIssueId

@Deprecated
public Long getIssueId()
Deprecated. 


getFile

public File getFile()

getContentType

public String getContentType()

getFilename

public String getFilename()

getCreated

public Date getCreated()

getFormToken

public String getFormToken()

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

getIssueToken

@Deprecated
public static final String getIssueToken(Long issueId)
Deprecated. 


getEntityToken

@Deprecated
public static final String getEntityToken(com.atlassian.fugue.Either<Issue,Project> entity)
Deprecated. 



Copyright © 2002-2014 Atlassian. All Rights Reserved.