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()
           
 Timestamp getCreated()
           
 String getFilename()
           
 Long getFilesize()
           
 Long getId()
           
 org.ofbiz.core.entity.GenericValue getIssue()
          Deprecated. Use getIssueObject() instead. Since v4.4.
 Issue getIssueObject()
          Returns the Issue that this file is attached to.
 String getMimetype()
           
 com.opensymphony.module.propertyset.PropertySet getProperties()
          Get attachment properties
 
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.

Returns:
the Issue that this file is attached to.

getIssue

public org.ofbiz.core.entity.GenericValue getIssue()
Deprecated. Use getIssueObject() instead. Since v4.4.

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

getProperties

public com.opensymphony.module.propertyset.PropertySet getProperties()
Get attachment properties

Returns:
A Map of key -> PropertySets


Copyright © 2002-2012 Atlassian. All Rights Reserved.