@PublicApi public class

Attachment

extends AbstractOfBizValueWrapper
java.lang.Object
   ↳ com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
     ↳ com.atlassian.jira.issue.attachment.Attachment

@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).

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
Public Constructors
Attachment(IssueManager issueManager, GenericValue genericValue, PropertySet attachmentProperties)
Construct an Attachment, with properties.
Attachment(IssueManager issueManager, GenericValue genericValue)
Construct an Attachment.
Public Methods
String getAuthor()
This method is deprecated. Use getAuthorObject() instead. Since v6.0.
String getAuthorKey()
ApplicationUser getAuthorObject()
Timestamp getCreated()
String getFilename()
Long getFilesize()
Long getId()
Issue getIssue()
Returns the Issue that this file is attached to.
Long getIssueId()
Issue getIssueObject()
Returns the Issue that this file is attached to.
String getMimetype()
PropertySet getProperties()
Get attachment properties
Boolean isThumbnailable()
Boolean isZip()
[Expand]
Inherited Methods
From class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
From class java.lang.Object
From interface com.atlassian.jira.ofbiz.OfBizValueWrapper

Public Constructors

public Attachment (IssueManager issueManager, GenericValue genericValue, PropertySet attachmentProperties)

Construct an Attachment, with properties.

Parameters
genericValue FileAttachment GenericValue
attachmentProperties Properties of the attachment.

public Attachment (IssueManager issueManager, GenericValue genericValue)

Construct an Attachment.

Parameters
genericValue FileAttachment GenericValue

Public Methods

public String getAuthor ()

This method is deprecated.
Use getAuthorObject() instead. Since v6.0.

Returns
  • author's key

public String getAuthorKey ()

public ApplicationUser getAuthorObject ()

public Timestamp getCreated ()

public String getFilename ()

public Long getFilesize ()

public Long getId ()

public Issue getIssue ()

Returns the Issue that this file is attached to.

Returns
  • the Issue that this file is attached to.

public Long getIssueId ()

public Issue getIssueObject ()

Returns the Issue that this file is attached to. Legacy synonym for getIssue().

Returns
  • the Issue that this file is attached to.

public String getMimetype ()

public PropertySet getProperties ()

Get attachment properties

Returns

public Boolean isThumbnailable ()

public Boolean isZip ()