com.atlassian.jira.action.issue
Class AbstractIssueUpdateAction
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.action.JiraNonWebActionSupport
com.atlassian.jira.action.issue.AbstractIssueAction
com.atlassian.jira.action.issue.AbstractIssueUpdateAction
- All Implemented Interfaces:
- webwork.action.Action, webwork.action.CommandDriven, I18nHelper, webwork.action.IllegalArgumentAware, Serializable
- Direct Known Subclasses:
- ActionCreate, ActionDelete, IssueUpdate
- public abstract class AbstractIssueUpdateAction
- extends AbstractIssueAction
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()
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Method Summary |
protected void |
doUpdate(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue originalIssue,
int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
List changeItems,
boolean dispatchEvent,
boolean generateChangeItems)
|
protected void |
doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV)
This method 'completes' the update of an issue entity. |
protected void |
doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
List changeItems,
boolean generateChangeItems)
This method 'completes' the update of an issue entity, given part of the
changelog being prewritten as a StringBuffer. |
protected void |
doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
Map params)
This method 'completes' the update of an issue entity. |
protected void |
doUpdateWithChangelog(int eventType,
List changeItems)
This method 'completes' the update of an issue entity. |
protected org.ofbiz.core.entity.GenericValue |
getOriginalIssue()
|
void |
setIssue(org.ofbiz.core.entity.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.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isProfessional |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doExecute, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface webwork.action.CommandDriven |
setCommand |
textAnalyzer
protected final TextAnalyzer textAnalyzer
AbstractIssueUpdateAction
public AbstractIssueUpdateAction(IssueUpdater issueUpdater,
TextAnalyzer textAnalyzer)
AbstractIssueUpdateAction
protected AbstractIssueUpdateAction()
AbstractIssueUpdateAction
public AbstractIssueUpdateAction(IssueUpdater issueUpdater)
doUpdate
protected void doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV)
throws Exception
- This method 'completes' the update of an issue entity.
It sets the update timestamp, stores the issue, updated the cache if needed,
creates the changelog and dispatches the event (if desired).
This method will ALWAYS generate an update - see also doUpdateIfNeeded.
- Throws:
Exception
doUpdate
protected void doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
Map params)
throws Exception
- This method 'completes' the update of an issue entity.
It sets the update timestamp, stores the issue, updated the cache if needed,
creates the changelog and dispatches the event (if desired).
This method will ALWAYS generate an update - see also doUpdateIfNeeded.
- Throws:
Exception
doUpdateWithChangelog
protected void doUpdateWithChangelog(int eventType,
List changeItems)
throws Exception
- This method 'completes' the update of an issue entity.
It sets the update timestamp, stores the issue, updated the cache if needed,
creates the changelog and dispatches the event (if desired).
This method will ALWAYS generate an update - see also doUpdateIfNeeded.
- Throws:
Exception
doUpdate
protected void doUpdate(int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
List changeItems,
boolean generateChangeItems)
throws Exception
- This method 'completes' the update of an issue entity, given part of the
changelog being prewritten as a StringBuffer.
It sets the update timestamp, stores the issue, updated the cache if needed,
creates the changelog and dispatches the event (if desired).
This method will ALWAYS generate an update - see also doUpdateIfNeeded.
- Throws:
Exception
doUpdate
protected void doUpdate(org.ofbiz.core.entity.GenericValue issue,
org.ofbiz.core.entity.GenericValue originalIssue,
int eventType,
org.ofbiz.core.entity.GenericValue commentGV,
List changeItems,
boolean dispatchEvent,
boolean generateChangeItems)
throws Exception
- Throws:
Exception
setIssue
public void setIssue(org.ofbiz.core.entity.GenericValue issue)
- Here we override the AbstractGVIssueAction.setIssue() method and store a clone of the original issue.
This means we can automatically generate changelogs - nice!
- Overrides:
setIssue
in class AbstractIssueAction
getOriginalIssue
protected org.ofbiz.core.entity.GenericValue getOriginalIssue()
Copyright © 2002-2006 Atlassian. All Rights Reserved.