public class BulkWorkflowTransitionOperation extends Object implements ProgressAwareBulkOperation
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
static String |
NAME |
static String |
NAME_KEY |
Constructor and Description |
---|
BulkWorkflowTransitionOperation(WorkflowManager workflowManager,
IssueWorkflowManager issueWorkflowManager,
FieldLayoutManager fieldLayoutManager) |
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
|
boolean |
canPerformOnAnyIssue(BulkEditBean bulkEditBean,
ApplicationUser remoteUser) |
com.opensymphony.workflow.loader.ActionDescriptor |
getActionDescriptor(WorkflowTransitionKey workflowTransitionKey) |
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 bulkEditBean)
Returns number of tasks/stages to be executed as part of this bulk operation.
|
String |
getOperationName()
Returns the "operation name".
|
void |
perform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
Context taskContext)
Performs the operation on the given set of issues and updates the progress.
|
protected static final org.apache.log4j.Logger log
public static final String NAME
public static final String NAME_KEY
public BulkWorkflowTransitionOperation(WorkflowManager workflowManager, IssueWorkflowManager issueWorkflowManager, FieldLayoutManager fieldLayoutManager)
public boolean canPerform(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
ProgressAwareBulkOperation
canPerform
in interface ProgressAwareBulkOperation
BulkEditBean.getSelectedIssues()
public boolean canPerformOnAnyIssue(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
public void perform(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) throws BulkOperationException
ProgressAwareBulkOperation
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 ProgressAwareBulkOperation
BulkOperationException
public int getNumberOfTasks(BulkEditBean bulkEditBean)
ProgressAwareBulkOperation
ProgressAwareBulkOperation.perform(com.atlassian.jira.web.bean.BulkEditBean, com.atlassian.jira.user.ApplicationUser,
com.atlassian.jira.task.context.Context)
.getNumberOfTasks
in interface ProgressAwareBulkOperation
public String getNameKey()
IssueOperation
getNameKey
in interface IssueOperation
public String getDescriptionKey()
getDescriptionKey
in interface IssueOperation
public 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 ProgressAwareBulkOperation
public String getCannotPerformMessageKey()
ProgressAwareBulkOperation
getCannotPerformMessageKey
in interface ProgressAwareBulkOperation
public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor(WorkflowTransitionKey workflowTransitionKey)
Copyright © 2002-2015 Atlassian. All Rights Reserved.