com.atlassian.jira.bulkedit.operation
Class BulkMoveOperation

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

public class BulkMoveOperation
extends AbstractBulkOperation

Operatin for moving parent and their sub-takks issues from one or many contexts to a single target context.


Field Summary
protected static org.apache.log4j.Category log
           
static String NAME
           
static String NAME_KEY
           
 
Constructor Summary
BulkMoveOperation(WorkflowManager workflowManager, ApplicationProperties applicationProperties, ProjectManager projectManager, FieldManager fieldManager, IssueIndexManager issueIndexManager, IssueFactory issueFactory)
           
 
Method Summary
 boolean canPerform(BulkEditBean bulkEditBean, User remoteUser)
          Determines whether the operation can be performed with the given set of issues
 void chooseContext(BulkEditBean bulkEditBean, User remoteUser, I18nHelper i18nHelper, ErrorCollection errors)
           
 void chooseContextNoValidate(BulkEditBean bulkEditBean, User remoteUser)
           
 boolean equals(Object o)
           
 void finishChooseContext(BulkEditBean bulkEditBean, User remoteUser, org.ofbiz.core.entity.GenericValue targetProject)
           
 String getCannotPerformMessageKey()
           
 String getDescriptionKey()
           
 String getFieldName(Field field, I18nHelper i18nHelper)
           
 String getNameKey()
           
 String getOperationName()
           
protected  Collection getTargetHiddenFields(BulkEditBean bulkEditBean, User remoteUser)
           
 JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId)
           
 boolean isStatusValid(BulkEditBean bulkEditBean)
           
 void moveIssuesNoIndex(BulkEditBean bulkEditBean, User remoteUser)
           
 void perform(BulkEditBean bulkEditBean, User remoteUser)
          Performs the operation on the given set of issues
 void setStatusFields(BulkEditBean bulkEditBean)
           
 void validatePopulateFields(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Category log

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

BulkMoveOperation

public BulkMoveOperation(WorkflowManager workflowManager,
                         ApplicationProperties applicationProperties,
                         ProjectManager projectManager,
                         FieldManager fieldManager,
                         IssueIndexManager issueIndexManager,
                         IssueFactory issueFactory)
Method Detail

canPerform

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


perform

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

Throws:
Exception

moveIssuesNoIndex

public void moveIssuesNoIndex(BulkEditBean bulkEditBean,
                              User remoteUser)
                       throws Exception
Throws:
Exception

chooseContextNoValidate

public void chooseContextNoValidate(BulkEditBean bulkEditBean,
                                    User remoteUser)
                             throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

chooseContext

public void chooseContext(BulkEditBean bulkEditBean,
                          User remoteUser,
                          I18nHelper i18nHelper,
                          ErrorCollection errors)
                   throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

finishChooseContext

public void finishChooseContext(BulkEditBean bulkEditBean,
                                User remoteUser,
                                org.ofbiz.core.entity.GenericValue targetProject)
                         throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

isStatusValid

public boolean isStatusValid(BulkEditBean bulkEditBean)

setStatusFields

public void setStatusFields(BulkEditBean bulkEditBean)
                     throws WorkflowException
Throws:
WorkflowException

validatePopulateFields

public void validatePopulateFields(BulkEditBean bulkEditBean,
                                   ErrorCollection errors,
                                   I18nHelper i18nHelper)
                            throws FieldLayoutStorageException
Throws:
FieldLayoutStorageException

getFieldName

public String getFieldName(Field field,
                           I18nHelper i18nHelper)

getTargetHiddenFields

protected Collection getTargetHiddenFields(BulkEditBean bulkEditBean,
                                           User remoteUser)

getNameKey

public String getNameKey()

getDescriptionKey

public String getDescriptionKey()

equals

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

getOperationName

public String getOperationName()

getCannotPerformMessageKey

public String getCannotPerformMessageKey()

getWorkflowForType

public JiraWorkflow getWorkflowForType(Long projectId,
                                       String issueTypeId)
                                throws WorkflowException
Throws:
WorkflowException


Copyright © 2002-2007 Atlassian. All Rights Reserved.