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, 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 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
 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)
           
 Collection getMoveFieldLayoutItems()
           
 String getNewViewHtml(BulkEditBean bulkEditBean, OrderableField field)
           
 String getNewViewHtml(OrderableField field)
           
 String getOperationDetailsActionName()
           
 String getStatusName(String id)
           
 Collection getTargetWorkflowStatuses(String issueTypeId)
           
 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId)
           
 boolean isAllowProjectEdit()
           
 boolean isAllowProjectEdit(BulkEditBean bulkEditBean)
           
 boolean isAvailable(String action)
           
 boolean isHasAvailableActions()
           
 boolean isIssueTypesAvailable()
           
 boolean isSubTaskPhase()
           
 boolean isSubTaskTypesAvailable()
           
 boolean isWarningRequiredForRetain(OrderableField field)
          Method to determine if a field should explicity warn the user that the value will not be retained accross projects.
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
getAttachmentManager, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getHoursPerDay, getIssueManager, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isFieldHidden, isFieldHidden, isFieldHidden, 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, forceRedirect, getAssignableUsers, getAssignableUsers, getCachedGroups, getComponentManager, getDateFormat, getDateTimeFormat, getDescTranslation, getExternalLinkUtils, getField, getFlushedErrorMessages, getGlobalPermissionManager, getJiraServiceContext, getLanguage, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getPropertySet, getRedirect, getRemoteUser, getReturnUrl, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getText, getTimeFormat, getUserFullName, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, htmlEncode, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isSystemAdministrator, isUserExists, setReturnUrl, setSelectedProjectId
 
Methods inherited from class com.atlassian.jira.action.JiraActionSupport
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getApplicationProperties, getDefaultResourceBundle, getDelegator, getJiraLocaleUtils, getLocale, getResult, 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, 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
 

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)
Method Detail

doDefault

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

doDetails

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

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)

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)

isWarningRequiredForRetain

public boolean isWarningRequiredForRetain(OrderableField field)
Method to determine if a field should explicity warn the user that the value will not be retained accross projects. This is to avoid confusion over Versions/Components during a move when retaining values is selected. We now give the user a better warning message.

Parameters:
field - the field to check for
Returns:
true if a warning should be displayed, otherwise false.

getBulkEditBean

public BulkEditBean getBulkEditBean()
Overrides:
getBulkEditBean in class AbstractBulkOperationAction


Copyright © 2002-2009 Atlassian. All Rights Reserved.