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.MessageTypeNested classes/interfaces inherited from interface com.atlassian.jira.util.ErrorCollection
ErrorCollection.ReasonNested classes/interfaces inherited from interface com.atlassian.jira.util.I18nHelper
I18nHelper.BeanFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BulkMoveOperationprotected final ConstantsManagerprotected final FieldManagerprotected final IssueFactoryprotected final PermissionManagerprotected final WorkflowManagerFields inherited from class com.atlassian.jira.web.action.IssueActionSupport
attachmentManagerFields inherited from class com.atlassian.jira.web.action.ProjectActionSupport
projectManagerFields inherited from class com.atlassian.jira.web.action.JiraWebActionSupport
ISSUE_NOT_FOUND_RESULT, log, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULTFields inherited from class webwork.action.ActionSupport
command, errorMap, errorMessagesFields 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 MutableIssuegetIssueObject(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) booleanbooleanisAllowProjectEdit(BulkEditBean bulkEditBean) booleanisAvailable(String action) booleanisFieldUsingSubstitutions(BulkEditBean bulkEditBean, OrderableField field) booleanbooleanbooleanisRetainMandatory(OrderableField field) Method to determine if a field must try to retain the values already set in issues.booleanbooleanprotected voidpopulateFromParams(OrderableField orderableField) protected voidvoidsetSubTaskPhase(boolean subTaskPhase) Methods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationDetailsAction
submitBulkOperationTaskMethods inherited from class com.atlassian.jira.web.action.issue.bulkedit.AbstractBulkOperationAction
clearBulkEditBean, finishWizard, getColumns, getIssueTableLayoutBean, getRedirect, getRedirectUrl, getRootBulkEditBean, isCanDisableMailNotifications, isSendBulkNotification, redirectToStart, setSendBulkNotification, storeBulkEditBean, storeReturnUrl, watchProgressMethods 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, updateSearchRequestMethods inherited from class com.atlassian.jira.web.action.ProjectActionSupport
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProjectMethods 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, getActionNameJspa, 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, urlEncodeMethods inherited from class webwork.action.ActionSupport
addError, addErrorMessage, doExecute, doValidation, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface webwork.action.CommandDriven
getCommandName, setCommandMethods 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:
doDefaultin classwebwork.action.ActionSupport- Throws:
Exception
-
doDetails
- Specified by:
doDetailsin classAbstractBulkOperationDetailsAction
-
doPerform
- Specified by:
doPerformin classAbstractBulkOperationDetailsAction- Throws:
Exception
-
doDetailsValidation
- Specified by:
doDetailsValidationin 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:
getConstantsManagerin 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:
getBulkEditBeanin classAbstractBulkOperationAction
-