Class BulkMove
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.ProjectActionSupport
com.atlassian.jira.web.action.IssueActionSupport
com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
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
- See Also:
-
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
FieldsModifier and TypeFieldDescriptionprotected BulkMoveOperation
protected final ConstantsManager
protected final FieldManager
protected final IssueFactory
protected final PermissionManager
protected final 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, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
Fields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessages
Fields inherited from interface webwork.action.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
ConstructorsConstructorDescriptionBulkMove
(SearchService searchService, BulkMoveOperation bulkMoveOperation, FieldManager fieldManager, WorkflowManager workflowManager, ConstantsManager constantsManager, IssueFactory issueFactory, PermissionManager permissionManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper, TaskManager taskManager, I18nHelper i18nHelper) -
Method Summary
Modifier and TypeMethodDescriptiongetFieldHtml
(FieldLayoutItem fieldLayoutItem) Used when displaying the fields to be edited during the bulk move operationgetFieldHtml
(String fieldId) getFieldHtml
(String fieldId, BulkEditBean bulkEditBean) Only invoked when displaying the Project and Issue type as part of the bulk move operationgetFieldName
(Field field) getFieldViewHtml
(OrderableField orderableField) protected MutableIssue
getIssueObject
(org.ofbiz.core.entity.GenericValue issueGV) getMappingViewHtml
(BulkEditBean bulkEditBean, OrderableField field, Long id, boolean showProject) getNewViewHtml
(OrderableField field) getNewViewHtml
(BulkEditBean bulkEditBean, OrderableField field) getStatusName
(String id) getSubstitutionsForField
(BulkEditBean bulkEditBean, OrderableField field) getTargetWorkflowStatuses
(String issueTypeId) getWorkflowForType
(Long projectId, String issueTypeId) boolean
boolean
isAllowProjectEdit
(BulkEditBean bulkEditBean) boolean
isAvailable
(String action) boolean
isFieldUsingSubstitutions
(BulkEditBean bulkEditBean, OrderableField field) boolean
boolean
boolean
isRetainMandatory
(OrderableField field) Method to determine if a field must try to retain the values already set in issues.boolean
boolean
protected void
populateFromParams
(OrderableField orderableField) protected void
void
setSubTaskPhase
(boolean subTaskPhase) Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
submitBulkOperationTask
Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
clearBulkEditBean, finishWizard, getColumns, getIssueTableLayoutBean, getRedirect, getRedirectUrl, getRootBulkEditBean, isCanDisableMailNotifications, isSendBulkNotification, redirectToStart, setSendBulkNotification, storeBulkEditBean, storeReturnUrl, watchProgress
Methods inherited from class com.atlassian.jira.web.action.IssueActionSupport
addIssueToHistory, getAttachmentManager, getCurrentDateTimeInUsersTimezone, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, 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, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequest
Methods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, addMessageToResponse, addReason, addReasons, checkIfUrlIsAllowed, execute, forceRedirect, getActionName, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getComponentInstanceOfType, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDefaultResourceBundle, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getI18nHelper, getJiraContactHelper, getJiraServiceContext, getKeysForPrefix, getLanguage, getLocale, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOfBizDelegator, getOutboundWhitelistProvider, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectSanitiser, getRequestSourceType, getResourceBundle, getResult, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTimeFormat, getUnescapedText, getUntransformedRawText, getUriValidator, getUserFullName, getUserManager, getUserPreferences, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasAnyErrors, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isAdministrator, isIndexing, isInlineDialogMode, isKeyDefined, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, removeKeyOrAddError, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
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 webwork.action.CommandDriven
getCommandName, setCommand
Methods inherited from interface com.atlassian.jira.util.ErrorCollection
addError, addErrorMessage, setErrorMessages
-
Field Details
-
bulkMoveOperation
-
fieldManager
-
workflowManager
-
constantsManager
-
issueFactory
-
permissionManager
-
-
Constructor Details
-
BulkMove
public BulkMove(SearchService searchService, BulkMoveOperation bulkMoveOperation, FieldManager fieldManager, WorkflowManager workflowManager, ConstantsManager constantsManager, IssueFactory issueFactory, PermissionManager permissionManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper, TaskManager taskManager, I18nHelper i18nHelper)
-
-
Method Details
-
doDefault
- Overrides:
doDefault
in classwebwork.action.ActionSupport
- Throws:
Exception
-
doDetails
- Specified by:
doDetails
in classAbstractBulkOperationDetailsAction
-
doPerform
- Specified by:
doPerform
in classAbstractBulkOperationDetailsAction
- Throws:
Exception
-
doDetailsValidation
- Specified by:
doDetailsValidation
in classAbstractBulkOperationDetailsAction
- Throws:
Exception
-
isHasAvailableActions
- Throws:
Exception
-
doContextValidation
- Throws:
Exception
-
doStatusValidation
- Throws:
Exception
-
doFieldsValidation
- Throws:
Exception
-
getFieldHtml
Only invoked when displaying the Project and Issue type as part of the bulk move operation- Returns:
- Field HTML
-
getFieldHtml
-
getFieldHtml
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
-
getMoveFieldLayoutItems
-
getFieldName
-
getNewViewHtml
-
getNewViewHtml
-
isFieldUsingSubstitutions
-
getSubstitutionsForField
-
getMappingViewHtml
public String getMappingViewHtml(BulkEditBean bulkEditBean, OrderableField field, Long id, boolean showProject) -
isAvailable
- Throws:
Exception
-
isAllowProjectEdit
public boolean isAllowProjectEdit() -
isAllowProjectEdit
-
getOperationDetailsActionName
-
populateFromParams
-
getTargetWorkflowStatuses
- Throws:
WorkflowException
-
getWorkflowForType
- Throws:
WorkflowException
-
getStatusName
-
getCurrentTargetPid
-
getCurrentTargetProject
-
progressToLastStep
protected void progressToLastStep() -
getIssueObject
-
getConstantsManager
- Overrides:
getConstantsManager
in classJiraWebActionSupport
-
getCurrentIssueType
-
isSubTaskPhase
public boolean isSubTaskPhase() -
setSubTaskPhase
public void setSubTaskPhase(boolean subTaskPhase) -
isRetainMandatory
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
- Overrides:
getBulkEditBean
in classAbstractBulkOperationAction
-