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, Comparable

public class Attachment
extends AbstractOfBizValueWrapper
implements Comparable


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
 int compareTo(Object o)
           
 String getAuthor()
           
protected  Comparator getComparator()
           
 Timestamp getCreated()
           
 String getFilename()
           
 Long getFilesize()
           
 Long getId()
           
 org.ofbiz.core.entity.GenericValue getIssue()
           
 Issue getIssueObject()
           
 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()

getIssue

public org.ofbiz.core.entity.GenericValue getIssue()

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

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getComparator

protected Comparator getComparator()


Copyright © 2002-2007 Atlassian. All Rights Reserved.