Class BulkEditOperation
java.lang.Object
com.atlassian.jira.bulkedit.operation.BulkEditOperation
- All Implemented Interfaces:
ProgressAwareBulkOperation
,IssueOperation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBulkEditOperation
(IssueManager issueManager, PermissionManager permissionManager, ProjectManager projectManager, FieldManager fieldManager, JiraAuthenticationContext authenticationContext, FeatureManager featureManager) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canPerform
(BulkEditBean bulkEditBean, ApplicationUser remoteUser) Determines whether the operation can be performed with the given set of issuesboolean
getActions
(BulkEditBean bulkEditBean, ApplicationUser applicationUser) Initialises all the bulk edit actions and returns them.An i18n key to be used to render the error message to be displayed when the user can not perform this bulk operation.getCustomFieldActions
(BulkEditBean bulkEditBean, ApplicationUser applicationUser) 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.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.
-
Field Details
-
NAME_KEY
- See Also:
-
NAME
- See Also:
-
-
Constructor Details
-
BulkEditOperation
public BulkEditOperation(IssueManager issueManager, PermissionManager permissionManager, ProjectManager projectManager, FieldManager fieldManager, JiraAuthenticationContext authenticationContext, FeatureManager featureManager)
-
-
Method Details
-
canPerform
Description copied from interface:ProgressAwareBulkOperation
Determines whether the operation can be performed with the given set of issues- Specified by:
canPerform
in interfaceProgressAwareBulkOperation
- See Also:
-
getActions
public Map<String,BulkEditAction> getActions(BulkEditBean bulkEditBean, ApplicationUser applicationUser) Initialises all the bulk edit actions and returns them.- Parameters:
bulkEditBean
- bean used for actions retrievalapplicationUser
- remote user- Returns:
- bulk edit actions
-
getCustomFieldActions
public Map<String,BulkEditAction> getCustomFieldActions(BulkEditBean bulkEditBean, ApplicationUser applicationUser) -
perform
public void perform(BulkEditBean bulkEditBean, ApplicationUser applicationUser, Context taskContext) throws BulkOperationException Description copied from interface:ProgressAwareBulkOperation
Performs the operation on the given set of issues and updates the progress.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 callContext.Task.complete();
on the the task object to indicate task has finished.- Specified by:
perform
in interfaceProgressAwareBulkOperation
- Throws:
BulkOperationException
-
getNumberOfTasks
Description copied from interface:ProgressAwareBulkOperation
Returns number of tasks/stages to be executed as part of this bulk operation. The number returned here must be consistent with the number of updates performed as part ofProgressAwareBulkOperation.perform(com.atlassian.jira.web.bean.BulkEditBean, com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.task.context.Context)
.- Specified by:
getNumberOfTasks
in interfaceProgressAwareBulkOperation
- Returns:
- Number of tasks/stages to be executed
-
getNameKey
Description copied from interface:IssueOperation
An i18n key used to display a short description of this operation in the UI. e.g " Watch Issues "- Specified by:
getNameKey
in interfaceIssueOperation
- Returns:
- An i18n key used to display a short description of this operation in the UI
-
getDescriptionKey
- Specified by:
getDescriptionKey
in interfaceIssueOperation
-
equals
-
getOperationName
Description copied from interface:ProgressAwareBulkOperation
Returns the "operation name".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- Specified by:
getOperationName
in interfaceProgressAwareBulkOperation
- Returns:
- The "operation name"
-
getCannotPerformMessageKey
Description copied from interface:ProgressAwareBulkOperation
An i18n key to be used to render the error message to be displayed when the user can not perform this bulk operation.- Specified by:
getCannotPerformMessageKey
in interfaceProgressAwareBulkOperation
- Returns:
- An i18n key to be used to render the error message to be displayed when the user can not perform this bulk operation.
-