@PublicApi public class

TemporaryAttachment

extends Object
implements Comparable<T>
java.lang.Object
   ↳ com.atlassian.jira.issue.attachment.TemporaryAttachment

@PublicApi

This class is designed for plugins to consume (call its methods).

Clients of @PublicApi can expect that programs compiled against a given version will remain binary compatible with later versions of the @PublicApi as per each product's API policy as long as the client does not implement/extend @PublicApi interfaces or classes (refer to each product's API policy for the exact guarantee---usually binary compatibility is guaranteed at least across minor versions).

Note: since @PublicApi interfaces and classes are not designed to be implemented or extended by clients, we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces annotated with @PublicSpi are safe to extend/implement).

Class Overview

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,

Summary

Public Constructors
@Deprecated TemporaryAttachment(Long id, Long issueId, File tempAttachment, String filename, String contentType)
TemporaryAttachment(Long id, File tempAttachment, String filename, String contentType, String formToken)
Public Methods
int compareTo(TemporaryAttachment other)
boolean equals(Object o)
String getContentType()
Date getCreated()
@Deprecated final static String getEntityToken(Either<IssueProject> entity)
File getFile()
String getFilename()
String getFormToken()
Long getId()
@Deprecated Long getIssueId()
@Deprecated final static String getIssueToken(Long issueId)
int hashCode()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Comparable

Public Constructors

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

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

Public Methods

public int compareTo (TemporaryAttachment other)

public boolean equals (Object o)

public String getContentType ()

public Date getCreated ()

@Deprecated public static final String getEntityToken (Either<IssueProject> entity)

public File getFile ()

public String getFilename ()

public String getFormToken ()

public Long getId ()

@Deprecated public Long getIssueId ()

@Deprecated public static final String getIssueToken (Long issueId)

public int hashCode ()

public String toString ()