public class DefaultBulkOperationManager extends Object implements BulkOperationManager
Constructor and Description |
---|
DefaultBulkOperationManager(JiraAuthenticationContext jiraAuthenticationContext,
WatcherService watcherService,
BulkEditOperation bulkEditOperation,
BulkMigrateOperation bulkMigrateOperation,
BulkWorkflowTransitionOperation bulkWorkflowTransitionOperation,
BulkDeleteOperation bulkDeleteOperation,
BulkWatchOperation bulkWatchOperation,
BulkUnwatchOperation bulkUnwatchOperation) |
Modifier and Type | Method and Description |
---|---|
void |
addBulkOperation(String operationName,
Class<? extends BulkOperation> componentClass)
Add a new operation using the given class
|
void |
addProgressAwareBulkOperation(String operationName,
Class<? extends ProgressAwareBulkOperation> componentClass)
Add a new operation using the given class
|
Collection<BulkOperation> |
getBulkOperations()
Returns all available
BulkOperation objects |
protected Map<String,ProgressAwareBulkOperation> |
getBulkOperationsMap() |
BulkOperation |
getOperation(String operationName)
Returns a
BulkOperation object registered with corresponding name |
Collection<ProgressAwareBulkOperation> |
getProgressAwareBulkOperations()
Returns all available
BulkOperation objects |
ProgressAwareBulkOperation |
getProgressAwareOperation(String operationName)
Returns a
BulkOperation object registered with corresponding name |
boolean |
isValidOperation(String operationName)
Returns true if the operation name is of an existing registered
BulkOperation |
public DefaultBulkOperationManager(JiraAuthenticationContext jiraAuthenticationContext, WatcherService watcherService, BulkEditOperation bulkEditOperation, BulkMigrateOperation bulkMigrateOperation, BulkWorkflowTransitionOperation bulkWorkflowTransitionOperation, BulkDeleteOperation bulkDeleteOperation, BulkWatchOperation bulkWatchOperation, BulkUnwatchOperation bulkUnwatchOperation)
public Collection<BulkOperation> getBulkOperations()
BulkOperationManager
BulkOperation
objectsgetBulkOperations
in interface BulkOperationManager
BulkOperation
objectspublic Collection<ProgressAwareBulkOperation> getProgressAwareBulkOperations()
BulkOperationManager
BulkOperation
objectsgetProgressAwareBulkOperations
in interface BulkOperationManager
BulkOperation
objectspublic BulkOperation getOperation(String operationName)
BulkOperationManager
BulkOperation
object registered with corresponding namegetOperation
in interface BulkOperationManager
operationName
- the operation nameBulkOperation
object. Null if doesn't existpublic ProgressAwareBulkOperation getProgressAwareOperation(String operationName)
BulkOperationManager
BulkOperation
object registered with corresponding namegetProgressAwareOperation
in interface BulkOperationManager
operationName
- the operation nameBulkOperation
object. Null if doesn't existpublic boolean isValidOperation(String operationName)
BulkOperationManager
BulkOperation
isValidOperation
in interface BulkOperationManager
operationName
- the operation nameBulkOperation
else falsepublic void addBulkOperation(String operationName, Class<? extends BulkOperation> componentClass)
BulkOperationManager
addBulkOperation
in interface BulkOperationManager
operationName
- - name to register the loaded class undercomponentClass
- - class to loadpublic void addProgressAwareBulkOperation(String operationName, Class<? extends ProgressAwareBulkOperation> componentClass)
BulkOperationManager
addProgressAwareBulkOperation
in interface BulkOperationManager
operationName
- - name to register the loaded class undercomponentClass
- - class to loadprotected Map<String,ProgressAwareBulkOperation> getBulkOperationsMap()
Copyright © 2002-2015 Atlassian. All Rights Reserved.