com.atlassian.jira.bulkedit.operation
Class BulkEditOperation

java.lang.Object
  extended by com.atlassian.jira.bulkedit.operation.AbstractBulkOperation
      extended by com.atlassian.jira.bulkedit.operation.BulkEditOperation
All Implemented Interfaces:
BulkOperation, IssueOperation

public class BulkEditOperation
extends AbstractBulkOperation


Field Summary
static String NAME
           
static String NAME_KEY
           
 
Constructor Summary
BulkEditOperation(IssueManager issueManager, PermissionManager permissionManager, ProjectManager projectManager, FieldManager fieldManager, JiraAuthenticationContext authenticationContext)
           
 
Method Summary
 boolean canPerform(BulkEditBean bulkEditBean, ApplicationUser remoteUser)
           
 boolean canPerform(BulkEditBean bulkEditBean, com.atlassian.crowd.embedded.api.User remoteUser)
          Determines whether the operation can be performed with the given set of issues
 boolean equals(Object o)
           
 Map getActions(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
          Initialises all the bulk edit actions and returns them.
 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.
 Map getCustomFieldActions(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
           
 String getDescriptionKey()
           
 String getNameKey()
          An i18n key used to display a short description of this operation in the UI.
 String getOperationName()
          Returns the "operation name".
 void perform(BulkEditBean bulkEditBean, ApplicationUser applicationUser)
           
 void perform(BulkEditBean bulkEditBean, com.atlassian.crowd.embedded.api.User remoteUser)
          Performs the operation on the given set of issues
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME_KEY

public static final String NAME_KEY
See Also:
Constant Field Values

NAME

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

BulkEditOperation

public BulkEditOperation(IssueManager issueManager,
                         PermissionManager permissionManager,
                         ProjectManager projectManager,
                         FieldManager fieldManager,
                         JiraAuthenticationContext authenticationContext)
Method Detail

canPerform

public boolean canPerform(BulkEditBean bulkEditBean,
                          com.atlassian.crowd.embedded.api.User remoteUser)
Description copied from interface: BulkOperation
Determines whether the operation can be performed with the given set of issues

See Also:
BulkEditBean.getSelectedIssues()

canPerform

public boolean canPerform(BulkEditBean bulkEditBean,
                          ApplicationUser remoteUser)

getActions

public Map getActions(BulkEditBean bulkEditBean,
                      ApplicationUser applicationUser)
Initialises all the bulk edit actions and returns them.

Parameters:
bulkEditBean - bean used for actions retrieval
applicationUser - remote user
Returns:
bulk edit actions

getCustomFieldActions

public Map getCustomFieldActions(BulkEditBean bulkEditBean,
                                 ApplicationUser applicationUser)

perform

public void perform(BulkEditBean bulkEditBean,
                    com.atlassian.crowd.embedded.api.User remoteUser)
             throws Exception
Description copied from interface: BulkOperation
Performs the operation on the given set of issues

Throws:
Exception

perform

public void perform(BulkEditBean bulkEditBean,
                    ApplicationUser applicationUser)
             throws Exception
Throws:
Exception

getNameKey

public String 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 "

Returns:
An i18n key used to display a short description of this operation in the UI

getDescriptionKey

public String getDescriptionKey()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getOperationName

public String getOperationName()
Description copied from interface: BulkOperation
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

Returns:
The "operation name"

getCannotPerformMessageKey

public String getCannotPerformMessageKey()
Description copied from interface: BulkOperation
An i18n key to be used to render the error message to be displayed when the user can not perform this bulk operation.

Returns:
An i18n key to be used to render the error message to be displayed when the user can not perform this bulk operation.


Copyright © 2002-2014 Atlassian. All Rights Reserved.