|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.bulkedit.operation.AbstractBulkOperation
com.atlassian.jira.bulkedit.operation.BulkMoveOperationImpl
public class BulkMoveOperationImpl
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
|
| Fields inherited from interface com.atlassian.jira.bulkedit.operation.BulkMoveOperation |
|---|
CANNOT_PERFORM_MESSAGE_KEY, NAME, NAME_KEY |
| Constructor Summary | |
|---|---|
BulkMoveOperationImpl(WorkflowManager workflowManager,
ProjectManager projectManager,
FieldManager fieldManager,
IssueFactory issueFactory,
IssueManager issueManager,
IssueEventManager issueEventManager,
BulkEditBeanSessionHelper bulkEditBeanSessionHelper,
AttachmentManager attachmentManager)
|
|
| Method Summary | |
|---|---|
boolean |
canPerform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
Determines whether the operation can be performed with the given set of issues |
boolean |
canPerform(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
Determines whether the operation can be performed with the given set of issues |
void |
chooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
I18nHelper i18nHelper,
ErrorCollection errors)
|
void |
chooseContext(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser,
I18nHelper i18nHelper,
ErrorCollection errors)
Deprecated. |
void |
chooseContextNoValidate(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
|
void |
chooseContextNoValidate(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. |
void |
finishChooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
Does operations on the given BulkEditBean to finalise the "Choose Project and Issue Type" step of the Bulk Move. |
void |
finishChooseContext(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. |
void |
finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
ApplicationUser applicationUser)
Does the finishChooseContext() operation for all the BulkEditBeans in the given MultiBulkMoveBean. |
void |
finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. |
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 |
getFieldName(Field field,
I18nHelper i18nHelper)
|
String |
getNameKey()
An i18n key used to display a short description of this operation in the UI. |
String |
getOperationName()
Returns the "operation name". |
protected Collection<Field> |
getTargetHiddenFields(BulkEditBean bulkEditBean)
|
JiraWorkflow |
getWorkflowForType(Long projectId,
String issueTypeId)
|
boolean |
isStatusValid(BulkEditBean bulkEditBean)
|
void |
moveIssuesAndIndex(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
|
void |
moveIssuesAndIndex(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
Deprecated. |
void |
perform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
Performs the operation on the given set of issues |
void |
perform(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
| Constructor Detail |
|---|
public BulkMoveOperationImpl(WorkflowManager workflowManager,
ProjectManager projectManager,
FieldManager fieldManager,
IssueFactory issueFactory,
IssueManager issueManager,
IssueEventManager issueEventManager,
BulkEditBeanSessionHelper bulkEditBeanSessionHelper,
AttachmentManager attachmentManager)
| Method Detail |
|---|
public boolean canPerform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
BulkEditBean.getSelectedIssues()
public boolean canPerform(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
BulkOperation
canPerform in interface BulkOperationBulkEditBean.getSelectedIssues()
public void perform(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
throws Exception
Exception
public void perform(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
throws Exception
BulkOperation
perform in interface BulkOperationException
public void moveIssuesAndIndex(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
throws Exception
moveIssuesAndIndex in interface BulkMoveOperationException
@Deprecated
public void moveIssuesAndIndex(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
throws Exception
moveIssuesAndIndex in interface BulkMoveOperationException
@Deprecated
public void chooseContextNoValidate(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
chooseContextNoValidate in interface BulkMoveOperation
public void chooseContextNoValidate(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
chooseContextNoValidate in interface BulkMoveOperation
@Deprecated
public void chooseContext(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser,
I18nHelper i18nHelper,
ErrorCollection errors)
chooseContext in interface BulkMoveOperation
public void chooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser,
I18nHelper i18nHelper,
ErrorCollection errors)
chooseContext in interface BulkMoveOperation
@Deprecated
public void finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
com.atlassian.crowd.embedded.api.User remoteUser)
BulkMoveOperation
finishChooseContext in interface BulkMoveOperationmultiBulkMoveBean - MultiBulkMoveBean (Contains Collection of BulkEditBean objects).remoteUser - UserBulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.BulkEditBean, ApplicationUser)
public void finishChooseContext(MultiBulkMoveBean multiBulkMoveBean,
ApplicationUser applicationUser)
BulkMoveOperation
finishChooseContext in interface BulkMoveOperationmultiBulkMoveBean - MultiBulkMoveBean (Contains Collection of BulkEditBean objects).applicationUser - UserBulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.BulkEditBean, ApplicationUser)
@Deprecated
public void finishChooseContext(BulkEditBean bulkEditBean,
com.atlassian.crowd.embedded.api.User remoteUser)
BulkMoveOperationThis method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
finishChooseContext in interface BulkMoveOperationbulkEditBean - BulkEditBean containing Bulk Move information for a single target "Issue Context".remoteUser - User doing the operation.BulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.MultiBulkMoveBean, ApplicationUser)
public void finishChooseContext(BulkEditBean bulkEditBean,
ApplicationUser applicationUser)
BulkMoveOperationThis method should be called AFTER validation of the new context, and re-mapping the BulkEditBeans to be indexed by Target context.
finishChooseContext in interface BulkMoveOperationbulkEditBean - BulkEditBean containing Bulk Move information for a single target "Issue Context".applicationUser - User doing the operation.BulkMoveOperation.finishChooseContext(com.atlassian.jira.web.bean.MultiBulkMoveBean, ApplicationUser)public boolean isStatusValid(BulkEditBean bulkEditBean)
isStatusValid in interface BulkMoveOperation
public void setStatusFields(BulkEditBean bulkEditBean)
throws WorkflowException
setStatusFields in interface BulkMoveOperationWorkflowException
public void validatePopulateFields(BulkEditBean bulkEditBean,
ErrorCollection errors,
I18nHelper i18nHelper)
validatePopulateFields in interface BulkMoveOperation
public String getFieldName(Field field,
I18nHelper i18nHelper)
protected Collection<Field> getTargetHiddenFields(BulkEditBean bulkEditBean)
public String getNameKey()
IssueOperation
getNameKey in interface IssueOperationpublic String getDescriptionKey()
getDescriptionKey in interface IssueOperationpublic String getOperationName()
BulkOperationThis 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
getOperationName in interface BulkOperationpublic String getCannotPerformMessageKey()
BulkOperation
getCannotPerformMessageKey in interface BulkOperation
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 | |||||||||