Class Attachment
java.lang.Object
com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
com.atlassian.jira.issue.attachment.Attachment
- All Implemented Interfaces:
OfBizValueWrapper
-
Field Summary
Fields inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
genericValue
-
Constructor Summary
ConstructorsConstructorDescriptionAttachment
(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
Methods inherited from class com.atlassian.jira.ofbiz.AbstractOfBizValueWrapper
equals, getGenericValue, getLong, getString, getTimestamp, hashCode, store
-
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 GenericValueattachmentProperties
- Properties of the attachment.
-
Attachment
Construct an Attachment.- Parameters:
issueManager
-genericValue
- FileAttachment GenericValue
-
-
Method Details
-
getIssueObject
Returns the Issue that this file is attached to. Legacy synonym forgetIssue()
.- Returns:
- the Issue that this file is attached to.
-
getIssue
Returns the Issue that this file is attached to.- Returns:
- the Issue that this file is attached to.
-
getIssueId
-
getId
-
getMimetype
-
getFilename
-
getCreated
-
getFilesize
-
getAuthor
Deprecated.UsegetAuthorObject()
instead. Since v6.0.- Returns:
- author's key
-
getAuthorKey
-
getAuthorObject
-
getProperties
public com.opensymphony.module.propertyset.PropertySet getProperties()Get attachment properties- Returns:
- A Map of key ->
PropertySet
s
-
isZip
-
isThumbnailable
-
isImage
public boolean isImage()
-
getAuthorObject()
instead.