com.atlassian.jira.issue.attachment
Class Attachment

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

@PublicApi
public class Attachment
extends AbstractOfBizValueWrapper


Field Summary
 
Fields inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
genericValue
 
Constructor Summary
Attachment(IssueManager issueManager, org.ofbiz.core.entity.GenericValue genericValue)
          Construct an Attachment.
Attachment(IssueManager issueManager, org.ofbiz.core.entity.GenericValue genericValue, com.opensymphony.module.propertyset.PropertySet attachmentProperties)
          Construct an Attachment, with properties.
 
Method Summary
 String getAuthor()
          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.
 Issue getIssueObject()
          Returns the Issue that this file is attached to.
 String getMimetype()
           
 com.opensymphony.module.propertyset.PropertySet getProperties()
          Get attachment properties
 Boolean isThumbnailable()
           
 Boolean isZip()
           
 
Methods inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
equals, getGenericValue, getLong, getString, getTimestamp, hashCode, store
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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.

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()


Copyright © 2002-2014 Atlassian. All Rights Reserved.