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 ProgressAwareBulkOperationBulkEditBean.getSelectedIssues()public void perform(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) throws BulkOperationException
perform in interface ProgressAwareBulkOperationBulkOperationExceptionpublic int getNumberOfTasks(BulkEditBean bulkEditBean)
ProgressAwareBulkOperationProgressAwareBulkOperation.perform(com.atlassian.jira.web.bean.BulkEditBean, com.atlassian.jira.user.ApplicationUser,
com.atlassian.jira.task.context.Context).getNumberOfTasks in interface ProgressAwareBulkOperationpublic void moveIssuesAndIndex(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext)
moveIssuesAndIndex in interface BulkMoveOperationpublic void chooseContextNoValidate(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
chooseContextNoValidate in interface BulkMoveOperationpublic void chooseContext(BulkEditBean bulkEditBean, ApplicationUser applicationUser, I18nHelper i18nHelper, ErrorCollection errors)
chooseContext in interface BulkMoveOperation@Deprecated public void finishChooseContext(MultiBulkMoveBean multiBulkMoveBean, ApplicationUser applicationUser)
BulkMoveOperationfinishChooseContext in interface BulkMoveOperationmultiBulkMoveBean - MultiBulkMoveBean (Contains Collection of BulkEditBean objects).applicationUser - UserBulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.BulkEditBean, ApplicationUser)public void finishChooseContext(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
BulkMoveOperationThis method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
finishChooseContext in interface BulkMoveOperationbulkEditBean - 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 BulkMoveOperationpublic void moveIssuesAndIndex(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
moveIssuesAndIndex in interface BulkMoveOperationpublic void setStatusFields(BulkEditBean bulkEditBean) throws WorkflowException
setStatusFields in interface BulkMoveOperationWorkflowExceptionpublic void validatePopulateFields(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper)
validatePopulateFields in interface BulkMoveOperationpublic String getFieldName(Field field, I18nHelper i18nHelper)
protected Collection<Field> getTargetHiddenFields(BulkEditBean bulkEditBean)
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 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException
WorkflowExceptionCopyright © 2002-2017 Atlassian. All Rights Reserved.