|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.bulkedit.operation.AbstractBulkOperation com.atlassian.jira.bulkedit.operation.BulkMoveOperation
public class BulkMoveOperation
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.Logger |
log
|
static String |
NAME
|
static String |
NAME_KEY
|
Constructor Summary | |
---|---|
BulkMoveOperation(WorkflowManager workflowManager,
ProjectManager projectManager,
FieldManager fieldManager,
IssueFactory issueFactory,
IssueManager issueManager,
AttachmentPathManager attachmentPathManager)
|
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)
Does operations on the given BulkEditBean to finalise the "Choose Project and Issue Type" step of the Bulk Move. |
void |
finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
User remoteUser)
Does the finishChooseContext() operation for all the BulkEditBeans in the given MultiBulkMoveBean. |
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 |
moveIssuesAndIndex(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 |
---|
protected static final org.apache.log4j.Logger log
public static final String NAME_KEY
public static final String NAME
Constructor Detail |
---|
public BulkMoveOperation(WorkflowManager workflowManager, ProjectManager projectManager, FieldManager fieldManager, IssueFactory issueFactory, IssueManager issueManager, AttachmentPathManager attachmentPathManager)
Method Detail |
---|
public boolean canPerform(BulkEditBean bulkEditBean, User remoteUser)
BulkOperation
public void perform(BulkEditBean bulkEditBean, User remoteUser) throws Exception
BulkOperation
Exception
public void moveIssuesAndIndex(BulkEditBean bulkEditBean, User remoteUser) throws Exception
Exception
public void chooseContextNoValidate(BulkEditBean bulkEditBean, User remoteUser) throws FieldLayoutStorageException
FieldLayoutStorageException
public void chooseContext(BulkEditBean bulkEditBean, User remoteUser, I18nHelper i18nHelper, ErrorCollection errors) throws FieldLayoutStorageException
FieldLayoutStorageException
public void finishChooseContext(MultiBulkMoveBean multiBulkMoveBean, User remoteUser) throws FieldLayoutStorageException
multiBulkMoveBean
- MultiBulkMoveBean (Contains Collection of BulkEditBean objects).remoteUser
- User
FieldLayoutStorageException
- If there is a persistence error trying to find the Target FieldLayout.finishChooseContext(com.atlassian.jira.web.bean.BulkEditBean, com.opensymphony.user.User)
public void finishChooseContext(BulkEditBean bulkEditBean, User remoteUser) throws FieldLayoutStorageException
This method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
bulkEditBean
- BulkEditBean containing Bulk Move information for a single target "Issue Context".remoteUser
- User doing the operation.
FieldLayoutStorageException
- If there is a persistence error trying to find the Target FieldLayout.finishChooseContext(com.atlassian.jira.web.bean.MultiBulkMoveBean, com.opensymphony.user.User)
public boolean isStatusValid(BulkEditBean bulkEditBean)
public void setStatusFields(BulkEditBean bulkEditBean) throws WorkflowException
WorkflowException
public void validatePopulateFields(BulkEditBean bulkEditBean, ErrorCollection errors, I18nHelper i18nHelper) throws FieldLayoutStorageException
FieldLayoutStorageException
public String getFieldName(Field field, I18nHelper i18nHelper)
protected Collection getTargetHiddenFields(BulkEditBean bulkEditBean, User remoteUser)
public String getNameKey()
public String getDescriptionKey()
public boolean equals(Object o)
equals
in class Object
public String getOperationName()
public String getCannotPerformMessageKey()
public JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException
WorkflowException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |