com.atlassian.jira.issue.operation
Class BulkTransitionIssueOperation

java.lang.Object
  extended by com.atlassian.jira.issue.operation.BulkTransitionIssueOperation
All Implemented Interfaces:
BulkOperation, IssueOperation, WorkflowIssueOperation

public class BulkTransitionIssueOperation
extends Object
implements WorkflowIssueOperation, BulkOperation

Copyright (c) 2002-2004 All rights reserved.


Constructor Summary
BulkTransitionIssueOperation(BulkOperation operation, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
           
 
Method Summary
 boolean canPerform(BulkEditBean bulkEditBean, com.atlassian.crowd.embedded.api.User remoteUser)
          Determines whether the operation can be performed with the given set of issues
 com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()
           
 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 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, com.atlassian.crowd.embedded.api.User remoteUser)
          Performs the operation on the given set of issues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BulkTransitionIssueOperation

public BulkTransitionIssueOperation(BulkOperation operation,
                                    com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Method Detail

getActionDescriptor

public com.opensymphony.workflow.loader.ActionDescriptor getActionDescriptor()
Specified by:
getActionDescriptor in interface WorkflowIssueOperation

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 "

Specified by:
getNameKey in interface IssueOperation
Returns:
An i18n key used to display a short description of this operation in the UI

getDescriptionKey

public String getDescriptionKey()
Specified by:
getDescriptionKey in interface IssueOperation

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

Specified by:
canPerform in interface BulkOperation
See Also:
BulkEditBean.getSelectedIssues()

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

Specified by:
perform in interface BulkOperation
Throws:
Exception

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

Specified by:
getOperationName in interface BulkOperation
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.

Specified by:
getCannotPerformMessageKey in interface BulkOperation
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-2013 Atlassian. All Rights Reserved.