|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ActionSupport com.atlassian.jira.action.JiraActionSupport com.atlassian.jira.action.JiraNonWebActionSupport com.atlassian.jira.action.issue.AbstractIssueAction com.atlassian.jira.action.issue.AbstractIssueUpdateAction
This action should be subclassed by any action which changes issues and might want to generate a changelog.
It automatically stores a copy of the original issue, so that changelogs can be created easily using createChangeLog()
Field Summary | |
protected TextAnalyzer |
textAnalyzer
|
Fields inherited from class com.atlassian.jira.action.JiraActionSupport |
log |
Constructor Summary | |
protected |
AbstractIssueUpdateAction()
|
|
AbstractIssueUpdateAction(IssueUpdater issueUpdater)
|
|
AbstractIssueUpdateAction(IssueUpdater issueUpdater,
TextAnalyzer textAnalyzer)
|
Method Summary | |
protected GenericValue |
createComment()
This method will create a comment if possible (ie iff issue != null && comment != null). |
protected GenericValue |
createComment(GenericValue commentedIssue)
|
protected void |
doUpdate(int eventType,
GenericValue commentGV)
This method 'completes' the update of an issue entity. |
protected void |
doUpdate(int eventType,
GenericValue commentGV,
java.util.List changeItems)
This method 'completes' the update of an issue entity, given part of the changelog being prewritten as a StringBuffer. |
protected void |
doUpdate(int eventType,
GenericValue commentGV,
java.util.Map params)
This method 'completes' the update of an issue entity. |
protected void |
doUpdateIfNeeded(int eventType)
This method 'completes' the update of an entity if the entity has been modified during the action. |
protected void |
doUpdateWithChangelog(int eventType,
java.util.List changeItems)
This method 'completes' the update of an issue entity. |
java.lang.String |
getComment()
|
java.lang.String |
getCommentLevel()
|
void |
setComment(java.lang.String comment)
|
void |
setCommentLevel(java.lang.String commentLevel)
|
void |
setIssue(GenericValue issue)
Here we override the AbstractGVIssueAction.setIssue() method and store a clone of the original issue. |
Methods inherited from class com.atlassian.jira.action.issue.AbstractIssueAction |
doValidation, getIssue |
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 |
Field Detail |
protected final TextAnalyzer textAnalyzer
Constructor Detail |
public AbstractIssueUpdateAction(IssueUpdater issueUpdater, TextAnalyzer textAnalyzer)
protected AbstractIssueUpdateAction()
public AbstractIssueUpdateAction(IssueUpdater issueUpdater)
Method Detail |
protected void doUpdate(int eventType, GenericValue commentGV) throws java.lang.Exception
java.lang.Exception
protected void doUpdate(int eventType, GenericValue commentGV, java.util.Map params) throws java.lang.Exception
java.lang.Exception
protected void doUpdateWithChangelog(int eventType, java.util.List changeItems) throws java.lang.Exception
java.lang.Exception
protected void doUpdate(int eventType, GenericValue commentGV, java.util.List changeItems) throws java.lang.Exception
java.lang.Exception
protected void doUpdateIfNeeded(int eventType) throws java.lang.Exception
java.lang.Exception
public void setIssue(GenericValue issue)
setIssue
in class AbstractIssueAction
protected GenericValue createComment() throws java.lang.Exception
java.lang.Exception
protected GenericValue createComment(GenericValue commentedIssue) throws java.lang.Exception
java.lang.Exception
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public java.lang.String getCommentLevel()
public void setCommentLevel(java.lang.String commentLevel)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |