public class BulkMigrateOperation extends Object implements ProgressAwareBulkOperation
| Modifier and Type | Field and Description |
|---|---|
static String |
NAME_KEY |
static String |
OPERATION_NAME |
| Constructor and Description |
|---|
BulkMigrateOperation(BulkMoveOperation bulkMoveOperation,
SubTaskManager subTaskManager,
IssueManager issueManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canPerform(BulkEditBean bulkEditBean,
ApplicationUser remoteUser)
Determines whether the operation can be performed with the given set of issues
|
void |
chooseContext(BulkEditBean rootBulkEditBean,
ApplicationUser applicationUser,
I18nHelper i18nHelper,
ErrorCollection errors) |
void |
chooseContextNoValidate(BulkEditBean rootBulkEditBean,
ApplicationUser applicationUser) |
BulkMoveOperation |
getBulkMoveOperation() |
String |
getCannotPerformMessageKey()
An i18n key to be used to render the error message to be displayed when the user can not perform this bulk
operation.
|
String |
getDescriptionKey() |
String |
getNameKey()
An i18n key used to display a short description of this operation in the UI.
|
int |
getNumberOfTasks(BulkEditBean rootBulkEditBean)
Returns number of tasks/stages to be executed as part of this bulk operation.
|
String |
getOperationName()
Returns the "operation name".
|
Optional<Issue> |
isConcurrentIssueUpdate(BulkEditBean rootBulkEditBean) |
Optional<Issue> |
isConcurrentIssueUpdateSingleBulkEditBean(BulkEditBean bulkEditBean) |
boolean |
isStatusValid(BulkEditBean rootBulkEditBean) |
void |
perform(BulkEditBean rootBulkEditBean,
ApplicationUser applicationUser,
Context taskContext)
Performs the operation on the given set of issues and updates the progress.
|
void |
setStatusFields(BulkEditBean rootBulkEditBean) |
void |
validatePopulateFields(BulkEditBean rootBulkEditBean,
I18nHelper i18nHelper,
ErrorCollection errors) |
public static final String OPERATION_NAME
public static final String NAME_KEY
public BulkMigrateOperation(BulkMoveOperation bulkMoveOperation, SubTaskManager subTaskManager, IssueManager issueManager)
public boolean canPerform(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
ProgressAwareBulkOperationcanPerform in interface ProgressAwareBulkOperationBulkEditBean.getSelectedIssues()public void perform(BulkEditBean rootBulkEditBean, ApplicationUser applicationUser, Context taskContext) throws BulkOperationException
ProgressAwareBulkOperation
During execution, the implementation class will update the progress by typically calling
Context.start(object); on the context passed to get a task object, and subsequently call
Context.Task.complete(); on the the task object to indicate task has finished.
perform in interface ProgressAwareBulkOperationBulkOperationExceptionpublic Optional<Issue> isConcurrentIssueUpdate(BulkEditBean rootBulkEditBean)
public Optional<Issue> isConcurrentIssueUpdateSingleBulkEditBean(BulkEditBean bulkEditBean)
public int getNumberOfTasks(BulkEditBean rootBulkEditBean)
ProgressAwareBulkOperationProgressAwareBulkOperation.perform(com.atlassian.jira.web.bean.BulkEditBean, com.atlassian.jira.user.ApplicationUser,
com.atlassian.jira.task.context.Context).getNumberOfTasks in interface ProgressAwareBulkOperationpublic void chooseContext(BulkEditBean rootBulkEditBean, ApplicationUser applicationUser, I18nHelper i18nHelper, ErrorCollection errors)
public void chooseContextNoValidate(BulkEditBean rootBulkEditBean, ApplicationUser applicationUser)
public boolean isStatusValid(BulkEditBean rootBulkEditBean)
public void setStatusFields(BulkEditBean rootBulkEditBean) throws WorkflowException
WorkflowExceptionpublic void validatePopulateFields(BulkEditBean rootBulkEditBean, I18nHelper i18nHelper, ErrorCollection errors)
public String getNameKey()
IssueOperationgetNameKey in interface IssueOperationpublic String getDescriptionKey()
getDescriptionKey in interface IssueOperationpublic String getOperationName()
ProgressAwareBulkOperation
This is used to build up the name of the action used to render the details screen
in the bulk change UI.
The action name that is generated as operationName + "Details.jspa". See BulkChooseOperation
for details
getOperationName in interface ProgressAwareBulkOperationpublic String getCannotPerformMessageKey()
ProgressAwareBulkOperationgetCannotPerformMessageKey in interface ProgressAwareBulkOperationpublic BulkMoveOperation getBulkMoveOperation()
Copyright © 2002-2017 Atlassian. All Rights Reserved.