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:
- SafeAction, I18nHelper, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
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(IssueUpdateBean issueUpdateBean,
boolean generateChangeItems)
|
protected void |
doUpdate(Long eventTypeId,
Comment comment)
This method 'completes' the update of an issue entity. |
protected void |
doUpdate(Long eventTypeId,
Comment comment,
Map params)
This method 'completes' the update of an issue entity. |
protected void |
doUpdate(Long eventTypeId,
IssueChangeHolder issueChangeHolder,
boolean generateChangeItems,
boolean sendMail)
This method 'completes' the update of an issue entity, given part of the changelog being prewritten as a
StringBuffer. |
protected void |
doUpdateWithChangelog(Long eventTypeId,
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, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doExecute, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, 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 |
getCommandName, setCommand |
AbstractIssueUpdateAction
public AbstractIssueUpdateAction(IssueUpdater issueUpdater)
AbstractIssueUpdateAction
protected AbstractIssueUpdateAction()
doUpdate
protected void doUpdate(Long eventTypeId,
Comment comment)
- 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.
doUpdate
protected void doUpdate(Long eventTypeId,
Comment comment,
Map params)
- 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.
doUpdate
protected void doUpdate(IssueUpdateBean issueUpdateBean,
boolean generateChangeItems)
doUpdateWithChangelog
protected void doUpdateWithChangelog(Long eventTypeId,
List changeItems)
- 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.
doUpdate
protected void doUpdate(Long eventTypeId,
IssueChangeHolder issueChangeHolder,
boolean generateChangeItems,
boolean sendMail)
- 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.
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-2012 Atlassian. All Rights Reserved.