Class Attachment

java.lang.Object
com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
com.atlassian.jira.issue.attachment.Attachment
All Implemented Interfaces:
OfBizValueWrapper

@PublicApi public class Attachment extends AbstractOfBizValueWrapper
  • Constructor Details

    • Attachment

      public Attachment(IssueManager issueManager, org.ofbiz.core.entity.GenericValue genericValue, com.opensymphony.module.propertyset.PropertySet attachmentProperties)
      Construct an Attachment, with properties.
      Parameters:
      issueManager -
      genericValue - FileAttachment GenericValue
      attachmentProperties - Properties of the attachment.
    • Attachment

      public Attachment(IssueManager issueManager, org.ofbiz.core.entity.GenericValue genericValue)
      Construct an Attachment.
      Parameters:
      issueManager -
      genericValue - FileAttachment GenericValue
  • Method Details

    • getIssueObject

      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.
    • getIssue

      public Issue getIssue()
      Returns the Issue that this file is attached to.
      Returns:
      the Issue that this file is attached to.
    • getIssueId

      public Long getIssueId()
    • getId

      public Long getId()
    • getMimetype

      public String getMimetype()
    • getFilename

      public String getFilename()
    • getCreated

      public Timestamp getCreated()
    • getFilesize

      public Long getFilesize()
    • getAuthor

      public String getAuthor()
      Deprecated.
      Use getAuthorObject() instead. Since v6.0.
      Returns:
      author's key
    • getAuthorKey

      public String getAuthorKey()
    • getAuthorObject

      public ApplicationUser getAuthorObject()
    • getProperties

      public com.opensymphony.module.propertyset.PropertySet getProperties()
      Get attachment properties
      Returns:
      A Map of key -> PropertySets
    • isZip

      public Boolean isZip()
    • isThumbnailable

      public Boolean isThumbnailable()
    • isImage

      public boolean isImage()