com.atlassian.jira.web.action.issue.bulkedit
Class BulkMove

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.jira.web.action.ProjectActionSupport
                  extended by com.atlassian.jira.web.action.IssueActionSupport
                      extended by com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
                          extended by com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
                              extended by com.atlassian.jira.web.action.issue.bulkedit.BulkMove
All Implemented Interfaces:
ErrorCollection, I18nHelper, HttpServletVariables, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
Direct Known Subclasses:
BulkMigrate

public class BulkMove
extends AbstractBulkOperationDetailsAction

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
JiraWebActionSupport.MessageType
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.Reason
 
Nested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory
 
Field Summary
protected  BulkMoveOperation bulkMoveOperation
           
protected  ConstantsManager constantsManager
           
protected  FieldManager fieldManager
           
protected  IssueFactory issueFactory
           
protected  PermissionManager permissionManager
           
static String RADIO_ERROR_MSG
           
protected  WorkflowManager workflowManager
           
 
Fields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManager
 
Fields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManager
 
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
BulkMove(SearchService searchService, BulkMoveOperation bulkMoveOperation, FieldManager fieldManager, WorkflowManager workflowManager, ConstantsManager constantsManager, IssueFactory issueFactory, PermissionManager permissionManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper)
           
 
Method Summary
 String doContextValidation()
           
 String doDefault()
           
 String doDetails()
           
 String doDetailsValidation()
           
 String doFieldsValidation()
           
 String doPerform()
           
 String doStatusValidation()
           
 BulkEditBean getBulkEditBean()
           
 ConstantsManager getConstantsManager()
           
 String getCurrentIssueType()
           
 String getCurrentTargetPid()
           
 org.ofbiz.core.entity.GenericValue getCurrentTargetProject()
           
 String getFieldHtml(FieldLayoutItem fieldLayoutItem)
          Used when displaying the fields to be edited during the bulk move operation
 String getFieldHtml(String fieldId)
           
 String getFieldHtml(String fieldId, BulkEditBean bulkEditBean)
          Only invoked when displaying the Project and Issue type as part of the bulk move operation
 String getFieldName(Field field)
           
 String getFieldViewHtml(OrderableField orderableField)
           
protected  MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issueGV)
           
 String getMappingViewHtml(BulkEditBean bulkEditBean, OrderableField field, Long id, boolean showProject)
           
 Collection getMoveFieldLayoutItems()
           
 String getNewViewHtml(BulkEditBean bulkEditBean, OrderableField field)
           
 String getNewViewHtml(OrderableField field)
           
 String getOperationDetailsActionName()
           
 String getStatusName(String id)
           
 Map<Long,Long> getSubstitutionsForField(BulkEditBean bulkEditBean, OrderableField field)
           
 Collection getTargetWorkflowStatuses(String issueTypeId)
           
 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId)
           
 boolean isAllowProjectEdit()
           
 boolean isAllowProjectEdit(BulkEditBean bulkEditBean)
           
 boolean isAvailable(String action)
           
 boolean isFieldUsingSubstitutions(BulkEditBean bulkEditBean, OrderableField field)
           
 boolean isHasAvailableActions()
           
 boolean isIssueTypesAvailable()
           
 boolean isRetainMandatory(OrderableField field)
          Method to determine if a field must try to retain the values already set in issues.
 boolean isSubTaskPhase()
           
 boolean isSubTaskTypesAvailable()
           
protected  void populateFromParams(OrderableField orderableField)
           
protected  void progressToLastStep()
           
protected  String redirectToStart()
           
 void setSubTaskPhase(boolean subTaskPhase)
           
 
Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
clearBulkEditBean, finishWizard, getColumns, getIssueTableLayoutBean, getRootBulkEditBean, isCanDisableMailNotifications, isSendBulkNotification, redirectToStart, setSendBulkNotification
 
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
addIssueToHistory, clearSelectedIssue, getAttachmentManager, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getBrowseableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasIssuePermission, hasPermission, hasProjectPermission, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, urlEncode
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, 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, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

RADIO_ERROR_MSG

public static final String RADIO_ERROR_MSG
See Also:
Constant Field Values

bulkMoveOperation

protected BulkMoveOperation bulkMoveOperation

fieldManager

protected final FieldManager fieldManager

workflowManager

protected final WorkflowManager workflowManager

constantsManager

protected final ConstantsManager constantsManager

issueFactory

protected final IssueFactory issueFactory

permissionManager

protected final PermissionManager permissionManager
Constructor Detail

BulkMove

public BulkMove(SearchService searchService,
                BulkMoveOperation bulkMoveOperation,
                FieldManager fieldManager,
                WorkflowManager workflowManager,
                ConstantsManager constantsManager,
                IssueFactory issueFactory,
                PermissionManager permissionManager,
                BulkEditBeanSessionHelper bulkEditBeanSessionHelper)
Method Detail

doDefault

public String doDefault()
                 throws Exception
Overrides:
doDefault in class webwork.action.ActionSupport
Throws:
Exception

doDetails

public String doDetails()
Specified by:
doDetails in class AbstractBulkOperationDetailsAction

doPerform

public String doPerform()
                 throws Exception
Specified by:
doPerform in class AbstractBulkOperationDetailsAction
Throws:
Exception

doDetailsValidation

public String doDetailsValidation()
                           throws Exception
Specified by:
doDetailsValidation in class AbstractBulkOperationDetailsAction
Throws:
Exception

isHasAvailableActions

public boolean isHasAvailableActions()
                              throws Exception
Throws:
Exception

doContextValidation

public String doContextValidation()
                           throws Exception
Throws:
Exception

doStatusValidation

public String doStatusValidation()
                          throws Exception
Throws:
Exception

doFieldsValidation

public String doFieldsValidation()
                          throws Exception
Throws:
Exception

getFieldHtml

public String getFieldHtml(String fieldId,
                           BulkEditBean bulkEditBean)
Only invoked when displaying the Project and Issue type as part of the bulk move operation

Returns:
Field HTML

getFieldHtml

public String getFieldHtml(String fieldId)

getFieldHtml

public String getFieldHtml(FieldLayoutItem fieldLayoutItem)
Used when displaying the fields to be edited during the bulk move operation

Returns:
Field HTML

isIssueTypesAvailable

public boolean isIssueTypesAvailable()

isSubTaskTypesAvailable

public boolean isSubTaskTypesAvailable()

getFieldViewHtml

public String getFieldViewHtml(OrderableField orderableField)

getMoveFieldLayoutItems

public Collection getMoveFieldLayoutItems()

getFieldName

public String getFieldName(Field field)

getNewViewHtml

public String getNewViewHtml(OrderableField field)

getNewViewHtml

public String getNewViewHtml(BulkEditBean bulkEditBean,
                             OrderableField field)

isFieldUsingSubstitutions

public boolean isFieldUsingSubstitutions(BulkEditBean bulkEditBean,
                                         OrderableField field)

getSubstitutionsForField

public Map<Long,Long> getSubstitutionsForField(BulkEditBean bulkEditBean,
                                               OrderableField field)

getMappingViewHtml

public String getMappingViewHtml(BulkEditBean bulkEditBean,
                                 OrderableField field,
                                 Long id,
                                 boolean showProject)

isAvailable

public boolean isAvailable(String action)
                    throws Exception
Throws:
Exception

isAllowProjectEdit

public boolean isAllowProjectEdit()

isAllowProjectEdit

public boolean isAllowProjectEdit(BulkEditBean bulkEditBean)

getOperationDetailsActionName

public String getOperationDetailsActionName()

populateFromParams

protected void populateFromParams(OrderableField orderableField)

getTargetWorkflowStatuses

public Collection getTargetWorkflowStatuses(String issueTypeId)
                                     throws WorkflowException
Throws:
WorkflowException

getWorkflowForType

public JiraWorkflow getWorkflowForType(Long projectId,
                                       String issueTypeId)
                                throws WorkflowException
Throws:
WorkflowException

getStatusName

public String getStatusName(String id)

getCurrentTargetPid

public String getCurrentTargetPid()

getCurrentTargetProject

public org.ofbiz.core.entity.GenericValue getCurrentTargetProject()

progressToLastStep

protected void progressToLastStep()

getIssueObject

protected MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issueGV)

getConstantsManager

public ConstantsManager getConstantsManager()
Overrides:
getConstantsManager in class JiraWebActionSupport

getCurrentIssueType

public String getCurrentIssueType()

redirectToStart

protected String redirectToStart()

isSubTaskPhase

public boolean isSubTaskPhase()

setSubTaskPhase

public void setSubTaskPhase(boolean subTaskPhase)

isRetainMandatory

public boolean isRetainMandatory(OrderableField field)
Method to determine if a field must try to retain the values already set in issues. In the case of Components, Versions and Version custom fields, we must retain where possible since if we select issues that don't need moving, then no mapping options will be presented, but we don't want other values to be chosen for those issues. Hence, their values must be retained.

Parameters:
field - the field to check for
Returns:
true if retaining should be mandatory; false otherwise.

getBulkEditBean

public BulkEditBean getBulkEditBean()
Overrides:
getBulkEditBean in class AbstractBulkOperationAction


Copyright © 2002-2014 Atlassian. All Rights Reserved.