com.atlassian.jira.bulkedit
Class DefaultBulkOperationManager

java.lang.Object
  extended by com.atlassian.jira.bulkedit.DefaultBulkOperationManager
All Implemented Interfaces:
BulkOperationManager

public class DefaultBulkOperationManager
extends Object
implements BulkOperationManager


Field Summary
static String BULK_WATCH_DARK_FEATURE
           
 
Constructor Summary
DefaultBulkOperationManager(JiraAuthenticationContext jiraAuthenticationContext, WatcherService watcherService, FeatureManager featureManager)
           
 
Method Summary
 void addBulkOperation(String operationName, Class<? extends BulkOperation> componentClass)
          Add a new operation using the given class
 Collection<BulkOperation> getBulkOperations()
          Returns all available BulkOperation objects
protected  Map<String,BulkOperation> getBulkOperationsMap()
           
 BulkOperation getOperation(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BULK_WATCH_DARK_FEATURE

public static final String BULK_WATCH_DARK_FEATURE
See Also:
Constant Field Values
Constructor Detail

DefaultBulkOperationManager

public DefaultBulkOperationManager(JiraAuthenticationContext jiraAuthenticationContext,
                                   WatcherService watcherService,
                                   FeatureManager featureManager)
Method Detail

getBulkOperations

public Collection<BulkOperation> getBulkOperations()
Description copied from interface: BulkOperationManager
Returns all available BulkOperation objects

Specified by:
getBulkOperations in interface BulkOperationManager
Returns:
Collection of BulkOperation objects

getOperation

public BulkOperation getOperation(String operationName)
Description copied from interface: BulkOperationManager
Returns a BulkOperation object registered with corresponding name

Specified by:
getOperation in interface BulkOperationManager
Parameters:
operationName - the operation name
Returns:
BulkOperation object. Null if doesn't exist

isValidOperation

public boolean isValidOperation(String operationName)
Description copied from interface: BulkOperationManager
Returns true if the operation name is of an existing registered BulkOperation

Specified by:
isValidOperation in interface BulkOperationManager
Parameters:
operationName - the operation name
Returns:
true if the operation name is of an existing BulkOperation else false

addBulkOperation

public void addBulkOperation(String operationName,
                             Class<? extends BulkOperation> componentClass)
Description copied from interface: BulkOperationManager
Add a new operation using the given class

Specified by:
addBulkOperation in interface BulkOperationManager
Parameters:
operationName - - name to register the loaded class under
componentClass - - class to load

getBulkOperationsMap

protected Map<String,BulkOperation> getBulkOperationsMap()


Copyright © 2002-2013 Atlassian. All Rights Reserved.