com.atlassian.greenhopper.web.issue.edit
Class BacklogBoardEditFieldAction

java.lang.Object
  extended by webwork.action.ActionSupport
      extended by com.atlassian.jira.action.JiraActionSupport
          extended by com.atlassian.jira.web.action.JiraWebActionSupport
              extended by com.atlassian.greenhopper.web.GreenHopperWebActionSupport
                  extended by com.atlassian.greenhopper.web.issue.edit.BacklogBoardEditFieldAction
All Implemented Interfaces:
com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.util.I18nHelper, com.atlassian.jira.web.util.AuthorizationSupport, java.io.Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware

public class BacklogBoardEditFieldAction
extends GreenHopperWebActionSupport

Handles field edits on the backlog board, either through direct field modification or through drag/drop operations. TODO currently this suffers from what I'd like to call "Ajax-Hopping"... part of the flow control resides in vms/javascript. When we're starting to clean up the JS, this should become more transparent.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
com.atlassian.jira.util.I18nHelper.BeanFactory
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.web.GreenHopperWebActionSupport
ERROR_DIALOG_CANCEL, ERROR_DIALOG_SIMPLE
 
Fields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters
 
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
BacklogBoardEditFieldAction()
           
 
Method Summary
 java.lang.String doEditField()
          Change a field into edit mode
 java.lang.String doMoveIssuesToBacklog()
          Execute moving of issues to another backlog.
 java.lang.String doMovingIssuesToBacklog()
          Start moving an issue to another backlog.
 java.lang.String doToggleFlag()
          Called when an issue is flagged or unflagged.
 java.lang.String doUpdateField()
          Called when a field is changed in the card view.
 ErrorPopupViewModel getErrorModel()
           
 EditFieldViewModel getModel()
           
 MoveIssuesData getMoveIssuesData()
           
 void setErrorModel(ErrorPopupViewModel errorModel)
           
 void setModel(EditFieldViewModel model)
           
 void setMoveIssuesData(MoveIssuesData moveIssuesData)
           
 
Methods inherited from class com.atlassian.greenhopper.web.GreenHopperWebActionSupport
attachErrors, getI18n, getIssueOperations, getUtil
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getComponentManager, getConglomerateCookieValue, getConstantsManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRedirectChecker, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, setConglomerateCookieValue, setInline, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doDefault, doExecute, doValidation, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
setCommand
 

Constructor Detail

BacklogBoardEditFieldAction

public BacklogBoardEditFieldAction()
Method Detail

doEditField

public java.lang.String doEditField()
Change a field into edit mode


doUpdateField

public java.lang.String doUpdateField()
Called when a field is changed in the card view. For most fields we don't need to do much, just refresh the field. For the backlog fied, a larger refresh is necessary, since we're grouping by backlog here.


doToggleFlag

public java.lang.String doToggleFlag()
Called when an issue is flagged or unflagged.


doMovingIssuesToBacklog

public java.lang.String doMovingIssuesToBacklog()
Start moving an issue to another backlog. This can either trigger a dialog (if there are child issues to be included) or trigger a direct execution. TODO once the bloody javascript mess is tidied up, we can stop doing that back-and-forth-ajax-hopping and handle that internally here. At the moment, the request parameters are all borked because we get different names for the same stuff, and we don't want to touch JS first.


doMoveIssuesToBacklog

public java.lang.String doMoveIssuesToBacklog()
Execute moving of issues to another backlog. Possible children have been handled by the previously displayed dialog.


setModel

public void setModel(EditFieldViewModel model)

getModel

public EditFieldViewModel getModel()

setErrorModel

public void setErrorModel(ErrorPopupViewModel errorModel)

getErrorModel

public ErrorPopupViewModel getErrorModel()

setMoveIssuesData

public void setMoveIssuesData(MoveIssuesData moveIssuesData)

getMoveIssuesData

public MoveIssuesData getMoveIssuesData()


Copyright © 2007-2011 Atlassian. All Rights Reserved.