public class MoveIssueUpdateFields extends MoveIssue implements OperationContext
JiraWebActionSupport.MessageType
ErrorCollection.Reason
I18nHelper.BeanFactory
constantsManager, fieldLayoutManager, fieldManager, issueFactory, SUBTASK_STATUS_PREFIX, workflowManager
userUtil
id, ISSUE_PERMISSION_ERROR, PREPOPULATED_ISSUE_OBJECT
attachmentManager
projectManager
ISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilters, SECURITY_BREACH_RESULT
log
Constructor and Description |
---|
MoveIssueUpdateFields(SubTaskManager subTaskManager,
ConstantsManager constantsManager,
WorkflowManager workflowManager,
FieldManager fieldManager,
FieldLayoutManager fieldLayoutManager,
IssueFactory issueFactory,
FieldScreenRendererFactory fieldScreenRendererFactory,
CommentService commentService,
IssueSecurityHelper issueSecurityHelper,
UserUtil userUtil,
HelpUrls helpUrls) |
Modifier and Type | Method and Description |
---|---|
String |
doDefault()
Handles the initial request to move an issue.
|
protected String |
doExecute()
Handles the request to submit the input from the first step of the wizard, the submitted information is the target
project and the target issue type.
|
protected void |
doValidation() |
protected Collection<CustomField> |
getCurrentCustomFieldObjects(String issueTypeId)
Retrieve a collection of custom field objects associated with the specified issue type.
|
String |
getCustomFieldContextHelpUrl() |
Map |
getCustomFieldValuesHolder() |
String |
getFieldHtml(FieldLayoutItem fieldLayoutItem) |
String |
getFieldName(Field field) |
Collection |
getMoveFieldLayoutItems() |
protected Collection<CustomField> |
getTargetCustomFieldObjects(String targetIssueTypeId)
Returns a collection of target custom field objects.
|
Collection |
getTargetCustomFields()
Retrieve the custom fields that are applicable in the target destination.
|
protected FieldLayout |
getTargetFieldLayout() |
protected Collection |
getTargetHiddenFields() |
protected MutableIssue |
getTargetIssueObject()
Retrieves the issue from the IssueManager and updates the Project and IssueType, and possibly clears the security.
|
protected MutableIssue |
getTargetIssueObjectWithSecurityLevel()
Retrieves the issue from the IssueManager and updates the Project and IssueType.
|
protected boolean |
isShouldCheckFieldValue(Issue origIssue,
Field field)
JRA-12671 - need to determine if we should call hasValue on the field.
|
boolean |
isUserAdmin() |
protected void |
popluateDefault(OrderableField orderableField) |
protected void |
populateFromParams(OrderableField orderableField) |
getAllowedProjects, getBeanTargetStatusId, getConstantsManager, getCurrentIssueType, getCurrentStatus, getCurrentStatusObject, getCurrentWorkflow, getFieldHtml, getFieldLayoutManager, getFieldManager, getIssueObject, getMoveIssueBean, getPrefixIssueTypeId, getPrefixTaskStatusId, getSubTasks, getSubtaskTargetIssueType, getSubTaskTargetStatus, getSubTaskTypesUsed, getTargetIssueType, getTargetIssueTypeObject, getTargetPid, getTargetProjectObj, getTargetStatusId, getTargetWorkflow, getTargetWorkflowStatuses, getTaskInvalidStatuses, getTaskInvalidStatusObjects, getTasksWithStatus, getViewHtmlParams, getWorkflowForType, getWorkflowManager, isHasSubTasks, isIssueStatusValid, isStatusChangeRequired, isSubTask, isTaskStatusChangeRequired, isTaskStatusValid, isWorkflowMatch, redirectToSessionTimeoutPage, setBeanTargetStatusId, validateAttachmentMove, validateCreateIssue
assigneeChanged, getAssignee, getAssignIn, hasAssigneePermission, setAssignee
createComment, doCommentValidation, getComment, getCommentLevel, getDisplayParams, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getFieldValuesHolder, getGroupLevel, getGroupLevels, getIssueOperation, getOrderableField, getRoleLevels, populateAttachmentsFieldValuesHolderAndValidate, populateCommentFields, processAttachments, processAttachments, requireAttachmentsResources, setComment, setCommentLevel, setFieldValuesHolder, setGroupLevel
getAttachments, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirst
addErrorMessage, assertIssueIsValid, cameFromIssue, cameFromParent, getId, getIssue, getIssueObject, getIssueObjectWithoutDatabaseRead, getIssuePath, getKey, getLayoutBean, getMutableIssue, getParentIssueObject, getProject, getProjectObject, getSecurityLevel, getSubTaskManager, getSummaryIssue, getViewIssueKey, getViewUrl, isEditable, isEditable, isHasEditIssuePermission, isIssueExists, isIssueValid, isSubTaskCreatable, isWorkflowAllowsEdit, redirectToView, refreshIssueObject, setId, setIssueObject, setKey, setViewIssueKey
addIssueToHistory, getAttachmentManager, getCurrentDateTimeInUsersTimezone, getCurrentFailedLoginCount, getCurrentJQL, getCustomFieldManager, getDaysPerWeek, getEverLoggedIn, getFormToken, getHoursPerDay, getIssueManager, getLastFailedLogin, getLastLogin, getLoginCount, getPossibleVersions, getPossibleVersionsReleasedFirst, getPrettyDuration, getPreviousLogin, getSearchRequest, getSelectedIssueId, getSessionPagerFilterManager, getSessionSearchRequestManager, getSessionSearchRequestManagerFactory, getSessionSelectedIssueManager, getTotalFailedLoginCount, getUrlEncoded, getWorkflow, getWorkflowTransitionDescription, getWorkflowTransitionDisplayName, isCustomFieldHidden, isElevatedSecurityCheckRequired, isFieldHidden, isFieldHidden, isTimeTrackingEnabled, setFormToken, setSearchRequest, setSelectedIssueId, updateSearchRequest
getBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProject
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addMessageToResponse, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getAuthorizationSupport, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDescTranslation, getDmyDateFormatter, getEmptyResponse, getErrorMessages, getErrors, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getHttpRequest, getHttpResponse, getHttpSession, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInApplicationUser, getLoggedInUser, getNameTranslation, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirect, getRedirectSanitiser, getRequestSourceType, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getServletContext, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, hasGlobalPermission, hasGlobalPermission, hasIssuePermission, hasIssuePermission, hasIssuePermission, hasPermission, hasProjectPermission, hasProjectPermission, htmlEncode, insertContextPath, isInlineDialogMode, isSystemAdministrator, isUserExists, isUserExistsByKey, isUserExistsByName, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId, tagMauEventWithApplication, tagMauEventWithProject, urlEncode
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getResourceBundle, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUntransformedRawText, getUserPreferences, hasAnyErrors, isIndexing, isKeyDefined, removeKeyOrAddError
addError, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFieldValuesHolder, getIssueOperation
getLoggedInApplicationUser
addError, addErrorMessages, addErrors, hasAnyErrors, setErrorMessages
public MoveIssueUpdateFields(SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, IssueSecurityHelper issueSecurityHelper, UserUtil userUtil, HelpUrls helpUrls)
public String doDefault()
MoveIssue
doDefault
in class MoveIssue
Action.ERROR
if
the issue can't be found (which means it was probably deleted), or if the user isn't authorised to browse the
issue; otherwise, Action.INPUT
} is returned to render the view for the first step of the
wizard.public Collection getMoveFieldLayoutItems()
protected MutableIssue getTargetIssueObject()
JRA-11605 - we need this method so that the display can prompt the user with values from system fields that are unencumbered by security level permission checks. It will set security level to null if the issue is moving somewhere that the old security level is no relevant.
getTargetIssueObjectWithSecurityLevel()
protected MutableIssue getTargetIssueObjectWithSecurityLevel()
getTargetIssueObject()
for an alternative method.getTargetIssueObject()
protected FieldLayout getTargetFieldLayout()
public String getFieldHtml(FieldLayoutItem fieldLayoutItem)
protected void doValidation()
doValidation
in class MoveIssue
protected void popluateDefault(OrderableField orderableField)
protected void populateFromParams(OrderableField orderableField)
protected String doExecute() throws Exception
MoveIssue
MoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()
doExecute
in class MoveIssue
MoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()
Exception
protected boolean isShouldCheckFieldValue(Issue origIssue, Field field)
protected to make it testable.
origIssue
- The original issue in which we'll check the contextfield
- The field in question.protected Collection getTargetHiddenFields()
public Map getCustomFieldValuesHolder()
protected Collection<CustomField> getCurrentCustomFieldObjects(String issueTypeId)
issueTypeId
- the id of the issue type.protected Collection<CustomField> getTargetCustomFieldObjects(String targetIssueTypeId)
targetIssueTypeId
- the id of the target issue type.public Collection getTargetCustomFields()
public String getCustomFieldContextHelpUrl()
public boolean isUserAdmin()
Copyright © 2002-2021 Atlassian. All Rights Reserved.