|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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 |
Fields inherited from class com.atlassian.jira.action.JiraActionSupport |
log |
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Constructor Summary | |
AbstractIssueUpdateAction()
|
Method Summary | |
protected org.ofbiz.core.entity.GenericValue |
createComment()
This method will create a comment if possible (ie iff issue != null && comment != null). |
protected org.ofbiz.core.entity.GenericValue |
createComment(org.ofbiz.core.entity.GenericValue commentedIssue)
|
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,
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,
org.ofbiz.core.entity.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(org.ofbiz.core.entity.GenericValue issue)
Here we override the AbstractIssueAction.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, addErrorMessages, addErrors, getActionName, getApplicationProperties, getDelegator, getResult, isIndexing |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, addIllegalArgumentException, doExecute, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getLocale, getText, 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 |
Constructor Detail |
public AbstractIssueUpdateAction()
Method Detail |
protected void doUpdate(int eventType, org.ofbiz.core.entity.GenericValue commentGV) throws java.lang.Exception
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.
java.lang.Exception
protected void doUpdate(int eventType, org.ofbiz.core.entity.GenericValue commentGV, java.util.Map params) throws java.lang.Exception
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.
java.lang.Exception
protected void doUpdateWithChangelog(int eventType, java.util.List changeItems) throws java.lang.Exception
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.
java.lang.Exception
protected void doUpdate(int eventType, org.ofbiz.core.entity.GenericValue commentGV, java.util.List changeItems) throws java.lang.Exception
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.
java.lang.Exception
protected void doUpdateIfNeeded(int eventType) throws java.lang.Exception
java.lang.Exception
public void setIssue(org.ofbiz.core.entity.GenericValue issue)
This means we can automatically generate changelogs - nice!
setIssue
in class AbstractIssueAction
protected org.ofbiz.core.entity.GenericValue createComment() throws java.lang.Exception
java.lang.Exception
protected org.ofbiz.core.entity.GenericValue createComment(org.ofbiz.core.entity.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 |