public class BulkMoveOperationImpl extends Object implements BulkMoveOperation
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
CANNOT_PERFORM_MESSAGE_KEY, NAME, NAME_KEY
Constructor and Description |
---|
BulkMoveOperationImpl(WorkflowManager workflowManager,
ProjectManager projectManager,
FieldManager fieldManager,
IssueFactory issueFactory,
IssueManager issueManager,
IssueEventManager issueEventManager,
BulkEditBeanSessionHelper bulkEditBeanSessionHelper,
AttachmentManager attachmentManager,
IssueEventBundleFactory issueEventBundleFactory,
IssueLinkManager issueLinkManager,
SubTaskManager subTaskManager,
IssueToSubTaskConversionService issueToSubTaskConversionService,
TxnAwareEventFactory txnAwareEventFactory) |
Modifier and Type | Method and Description |
---|---|
boolean |
canPerform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
Determines whether the operation can be performed with the given set of issues
|
void |
chooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
I18nHelper i18nHelper,
ErrorCollection errors) |
void |
chooseContextNoValidate(BulkEditBean bulkEditBean,
ApplicationUser applicationUser) |
void |
finishChooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
Does operations on the given BulkEditBean to finalise the "Choose Project and Issue Type" step of the Bulk Move.
|
void |
finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
ApplicationUser applicationUser)
Deprecated.
|
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 |
getFieldName(Field field,
I18nHelper i18nHelper) |
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".
|
protected Object |
getParam(String id,
Map<String,String[]> params) |
protected Collection<Field> |
getTargetHiddenFields(BulkEditBean bulkEditBean) |
JiraWorkflow |
getWorkflowForType(Long projectId,
String issueTypeId) |
boolean |
isStatusValid(BulkEditBean bulkEditBean) |
void |
moveIssuesAndIndex(BulkEditBean bulkEditBean,
ApplicationUser remoteUser) |
void |
moveIssuesAndIndex(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
Context taskContext) |
void |
perform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
Context taskContext)
Performs the operation on the given set of issues
|
void |
setStatusFields(BulkEditBean bulkEditBean) |
void |
validatePopulateFields(BulkEditBean bulkEditBean,
ErrorCollection errors,
I18nHelper i18nHelper) |
public BulkMoveOperationImpl(WorkflowManager workflowManager, ProjectManager projectManager, FieldManager fieldManager, IssueFactory issueFactory, IssueManager issueManager, IssueEventManager issueEventManager, BulkEditBeanSessionHelper bulkEditBeanSessionHelper, AttachmentManager attachmentManager, IssueEventBundleFactory issueEventBundleFactory, IssueLinkManager issueLinkManager, SubTaskManager subTaskManager, IssueToSubTaskConversionService issueToSubTaskConversionService, TxnAwareEventFactory txnAwareEventFactory)
public boolean canPerform(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
canPerform
in interface ProgressAwareBulkOperation
BulkEditBean.getSelectedIssues()
public void perform(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) throws BulkOperationException
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 void moveIssuesAndIndex(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext)
moveIssuesAndIndex
in interface BulkMoveOperation
public void chooseContextNoValidate(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
chooseContextNoValidate
in interface BulkMoveOperation
public void chooseContext(BulkEditBean bulkEditBean, ApplicationUser applicationUser, I18nHelper i18nHelper, ErrorCollection errors)
chooseContext
in interface BulkMoveOperation
@Deprecated public void finishChooseContext(MultiBulkMoveBean multiBulkMoveBean, ApplicationUser applicationUser)
BulkMoveOperation
finishChooseContext
in interface BulkMoveOperation
multiBulkMoveBean
- MultiBulkMoveBean (Contains Collection of BulkEditBean objects).applicationUser
- UserBulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.BulkEditBean, ApplicationUser)
public void finishChooseContext(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
BulkMoveOperation
This method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
finishChooseContext
in interface BulkMoveOperation
bulkEditBean
- BulkEditBean containing Bulk Move information for a single target "Issue Context".applicationUser
- User doing the operation.BulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.MultiBulkMoveBean, ApplicationUser)
public boolean isStatusValid(BulkEditBean bulkEditBean)
isStatusValid
in interface BulkMoveOperation
public void moveIssuesAndIndex(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
moveIssuesAndIndex
in interface BulkMoveOperation
public void setStatusFields(BulkEditBean bulkEditBean) throws WorkflowException
setStatusFields
in interface BulkMoveOperation
WorkflowException
public void validatePopulateFields(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper)
validatePopulateFields
in interface BulkMoveOperation
public String getFieldName(Field field, I18nHelper i18nHelper)
protected Collection<Field> getTargetHiddenFields(BulkEditBean bulkEditBean)
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 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException
WorkflowException
Copyright © 2002-2017 Atlassian. All Rights Reserved.