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, java.io.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 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 java.lang.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)
           
 
Method Summary
 java.lang.String doContextValidation()
           
 java.lang.String doDefault()
           
 java.lang.String doDetails()
           
 java.lang.String doDetailsValidation()
           
 java.lang.String doFieldsValidation()
           
 java.lang.String doPerform()
           
 java.lang.String doStatusValidation()
           
 BulkEditBean getBulkEditBean()
           
 ConstantsManager getConstantsManager()
           
 java.lang.String getCurrentIssueType()
           
 java.lang.String getCurrentTargetPid()
           
 org.ofbiz.core.entity.GenericValue getCurrentTargetProject()
           
 java.lang.String getFieldHtml(FieldLayoutItem fieldLayoutItem)
          Used when displaying the fields to be edited during the bulk move operation
 java.lang.String getFieldHtml(java.lang.String fieldId)
           
 java.lang.String getFieldHtml(java.lang.String fieldId, BulkEditBean bulkEditBean)
          Only invoked when displaying the Project and Issue type as part of the bulk move operation
 java.lang.String getFieldName(Field field)
           
 java.lang.String getFieldViewHtml(OrderableField orderableField)
           
protected  MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issueGV)
           
 java.lang.String getMappingViewHtml(BulkEditBean bulkEditBean, OrderableField field, java.lang.Long id, boolean showProject)
           
 java.util.Collection getMoveFieldLayoutItems()
           
 java.lang.String getNewViewHtml(BulkEditBean bulkEditBean, OrderableField field)
           
 java.lang.String getNewViewHtml(OrderableField field)
           
 java.lang.String getOperationDetailsActionName()
           
 java.lang.String getStatusName(java.lang.String id)
           
 java.util.Map<java.lang.Long,java.lang.Long> getSubstitutionsForField(BulkEditBean bulkEditBean, OrderableField field)
           
 java.util.Collection getTargetWorkflowStatuses(java.lang.String issueTypeId)
           
 JiraWorkflow getWorkflowForType(java.lang.Long projectId, java.lang.String issueTypeId)
           
 boolean isAllowProjectEdit()
           
 boolean isAllowProjectEdit(BulkEditBean bulkEditBean)
           
 boolean isAvailable(java.lang.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  java.lang.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
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, isFieldHidden, isTimeTrackingEnabled, setCurrentIssue, setSearchRequest, setSelectedIssueId, updateSearchRequest
 
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowseableProjects, getBrowseableProjectsInCategory, getSelectedProjectId, setSelectedProject, setSelectedProject
 
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addErrorCollection, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, forceRedirect, getApplicationProperties, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRandomHint, getRedirect, getRemoteUser, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUriValidator, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, 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, getDefaultResourceBundle, getDelegator, getKeysForPrefix, getLocale, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText0, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isEnterprise, isIndexing, isProfessional, isProfessionalOrEnterprise, isStandard, removeKeyOrAddError
 
Methods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, 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 com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, addErrorMessages, addErrors, getErrorMessages, getErrors, hasAnyErrors, setErrorMessages
 
Methods inherited from interface webwork.action.CommandDriven
getCommandName, setCommand
 

Field Detail

RADIO_ERROR_MSG

public static final java.lang.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)
Method Detail

doDefault

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

doDetails

public java.lang.String doDetails()
                           throws FieldLayoutStorageException
Specified by:
doDetails in class AbstractBulkOperationDetailsAction
Throws:
FieldLayoutStorageException

doPerform

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

doDetailsValidation

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

isHasAvailableActions

public boolean isHasAvailableActions()
                              throws java.lang.Exception
Throws:
java.lang.Exception

doContextValidation

public java.lang.String doContextValidation()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

doStatusValidation

public java.lang.String doStatusValidation()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

doFieldsValidation

public java.lang.String doFieldsValidation()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getFieldHtml

public java.lang.String getFieldHtml(java.lang.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 java.lang.String getFieldHtml(java.lang.String fieldId)

getFieldHtml

public java.lang.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 java.lang.String getFieldViewHtml(OrderableField orderableField)

getMoveFieldLayoutItems

public java.util.Collection getMoveFieldLayoutItems()

getFieldName

public java.lang.String getFieldName(Field field)

getNewViewHtml

public java.lang.String getNewViewHtml(OrderableField field)

getNewViewHtml

public java.lang.String getNewViewHtml(BulkEditBean bulkEditBean,
                                       OrderableField field)

isFieldUsingSubstitutions

public boolean isFieldUsingSubstitutions(BulkEditBean bulkEditBean,
                                         OrderableField field)

getSubstitutionsForField

public java.util.Map<java.lang.Long,java.lang.Long> getSubstitutionsForField(BulkEditBean bulkEditBean,
                                                                             OrderableField field)

getMappingViewHtml

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

isAvailable

public boolean isAvailable(java.lang.String action)
                    throws java.lang.Exception
Throws:
java.lang.Exception

isAllowProjectEdit

public boolean isAllowProjectEdit()

isAllowProjectEdit

public boolean isAllowProjectEdit(BulkEditBean bulkEditBean)

getOperationDetailsActionName

public java.lang.String getOperationDetailsActionName()

populateFromParams

protected void populateFromParams(OrderableField orderableField)

getTargetWorkflowStatuses

public java.util.Collection getTargetWorkflowStatuses(java.lang.String issueTypeId)
                                               throws WorkflowException
Throws:
WorkflowException

getWorkflowForType

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

getStatusName

public java.lang.String getStatusName(java.lang.String id)

getCurrentTargetPid

public java.lang.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 java.lang.String getCurrentIssueType()

redirectToStart

protected java.lang.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-2010 Atlassian. All Rights Reserved.