com.atlassian.jira.action.attachment
Class AttachmentDelete

java.lang.Object
  extended byActionSupport
      extended bycom.atlassian.jira.action.JiraActionSupport
          extended bycom.atlassian.jira.action.JiraNonWebActionSupport
              extended bycom.atlassian.jira.action.issue.AbstractIssueAction
                  extended bycom.atlassian.jira.action.issue.AbstractIssueUpdateAction
                      extended bycom.atlassian.jira.action.attachment.AttachmentDelete

public class AttachmentDelete
extends AbstractIssueUpdateAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.jira.action.issue.AbstractIssueUpdateAction
textAnalyzer
 
Fields inherited from class com.atlassian.jira.action.JiraActionSupport
log
 
Constructor Summary
AttachmentDelete(IssueUpdater issueUpdater)
           
 
Method Summary
protected  java.lang.String doExecute()
           
protected  void doValidation()
           
 GenericValue getAttachment()
           
 GenericValue getIssue()
          Override the superclass getIssue() method so that we always return the issue that is the parent of the attachment.
 void setAttachment(GenericValue attachment)
           
 
Methods inherited from class com.atlassian.jira.action.issue.AbstractIssueUpdateAction
createComment, createComment, doUpdate, doUpdate, doUpdate, doUpdateIfNeeded, doUpdateWithChangelog, getComment, getCommentLevel, setComment, setCommentLevel, setIssue
 
Methods inherited from class com.atlassian.jira.action.JiraNonWebActionSupport
doDefault, execute, getRemoteUser, isDispatchEvent, setDispatchEvent, setRemoteUser
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrors, getActionName, getApplicationProperties, getDelegator, getLocaleUtils, getResult, getText, isIndexing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentDelete

public AttachmentDelete(IssueUpdater issueUpdater)
Method Detail

doValidation

protected void doValidation()
Overrides:
doValidation in class AbstractIssueAction

doExecute

protected java.lang.String doExecute()
                              throws java.lang.Exception
Throws:
java.lang.Exception

getAttachment

public GenericValue getAttachment()

setAttachment

public void setAttachment(GenericValue attachment)

getIssue

public GenericValue getIssue()
Override the superclass getIssue() method so that we always return the issue that is the parent of the attachment.

Overrides:
getIssue in class AbstractIssueAction