public class MoveIssue extends AbstractCommentableAssignableIssue
JiraWebActionSupport.MessageTypeErrorCollection.ReasonI18nHelper.BeanFactory| Modifier and Type | Field and Description |
|---|---|
protected ConstantsManager |
constantsManager |
protected FieldLayoutManager |
fieldLayoutManager |
protected FieldManager |
fieldManager |
protected IssueFactory |
issueFactory |
static String |
SUBTASK_STATUS_PREFIX |
protected WorkflowManager |
workflowManager |
userUtilid, ISSUE_PERMISSION_ERROR, PREPOPULATED_ISSUE_OBJECTattachmentManagerprojectManagerISSUE_NOT_FOUND_RESULT, PERMISSION_VIOLATION_RESULT, request, RETURN_URL_PARAMETER, savedFilterslog| Constructor and Description |
|---|
MoveIssue(SubTaskManager subTaskManager,
ConstantsManager constantsManager,
WorkflowManager workflowManager,
FieldManager fieldManager,
FieldLayoutManager fieldLayoutManager,
IssueFactory issueFactory,
FieldScreenRendererFactory fieldScreenRendererFactory,
CommentService commentService,
UserUtil userUtil) |
| 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() |
Collection |
getAllowedProjects() |
String |
getBeanTargetStatusId() |
ConstantsManager |
getConstantsManager() |
String |
getCurrentIssueType() |
Status |
getCurrentStatus() |
Status |
getCurrentStatusObject() |
JiraWorkflow |
getCurrentWorkflow() |
String |
getFieldHtml(String fieldId) |
protected FieldLayoutManager |
getFieldLayoutManager() |
protected FieldManager |
getFieldManager() |
MutableIssue |
getIssueObject(org.ofbiz.core.entity.GenericValue issue) |
MoveIssueBean |
getMoveIssueBean() |
String |
getPrefixIssueTypeId(String issueType) |
String |
getPrefixTaskStatusId(String taskTypeId,
String taskStatusId) |
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTasks()
Retrieves the collection of sub-tasks associated with the current issue.
|
String |
getSubtaskTargetIssueType(String subtaskIssueType)
Get the target issue type for a migrating issue type.
|
String |
getSubTaskTargetStatus(String taskTypeId,
String taskStatusId)
Retrieve the task status associated with this type and current status.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTaskTypesUsed()
Gets the collection of sub-task types used in the sub-tasks associated with the current issue.
|
String |
getTargetIssueType() |
IssueType |
getTargetIssueTypeObject() |
Long |
getTargetPid() |
Project |
getTargetProjectObj() |
String |
getTargetStatusId() |
JiraWorkflow |
getTargetWorkflow() |
Collection<Status> |
getTargetWorkflowStatuses(String issueTypeId)
Retrieve a collection of target workflow statuses from the workflow associated with the specified issue type id.
|
Collection<Status> |
getTaskInvalidStatuses(String typeId) |
Collection |
getTaskInvalidStatusObjects(String typeId) |
Collection |
getTasksWithStatus(String invalidStatusId) |
protected Map |
getViewHtmlParams() |
JiraWorkflow |
getWorkflowForType(Long projectId,
String issueTypeId) |
protected WorkflowManager |
getWorkflowManager() |
boolean |
isHasSubTasks()
Checks if the current issue has sub-tasks.
|
boolean |
isIssueStatusValid() |
boolean |
isStatusChangeRequired()
Checks if the current statuses of the issue and its sub-tasks do not exist in the target workflow.
|
boolean |
isSubTask()
Determines whether the issue is a sub task - i.e.
|
boolean |
isTaskStatusChangeRequired() |
boolean |
isTaskStatusValid(String typeId,
String statusId) |
boolean |
isWorkflowMatch(String currentIssueTypeId,
String targetIssueTypeId)
Check if the workflow is the same for the current and target issue types
|
protected String |
redirectToSessionTimeoutPage() |
void |
setBeanTargetStatusId(String targetStatusId) |
protected void |
validateAttachmentMove() |
protected void |
validateCreateIssue() |
assigneeChanged, getAssignee, getAssignIn, hasAssigneePermission, setAssigneecreateComment, doCommentValidation, getComment, getCommentLevel, getDisplayParams, getFieldScreenRendererLayoutItemForField, getFieldScreenRendererWithAllFields, getFieldValuesHolder, getGroupLevel, getGroupLevels, getIssueOperation, getOrderableField, getRoleLevels, populateAttachmentsFieldValuesHolderAndValidate, populateCommentFields, processAttachments, processAttachments, requireAttachmentsResources, setComment, setCommentLevel, setFieldValuesHolder, setGroupLevelgetAttachments, getPossibleComponents, getPossibleVersions, getPossibleVersionsReleasedFirstaddErrorMessage, 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, setViewIssueKeyaddIssueToHistory, 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, updateSearchRequestgetBrowsableProjects, getSelectedProjectId, setSelectedProject, setSelectedProjectaddError, 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, urlEncodeaddErrorMessages, 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, removeKeyOrAddErroraddError, getCommandName, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoggedInApplicationUseraddError, addErrorMessages, addErrors, hasAnyErrors, setErrorMessagespublic static final String SUBTASK_STATUS_PREFIX
protected final ConstantsManager constantsManager
protected final WorkflowManager workflowManager
protected final FieldManager fieldManager
protected final FieldLayoutManager fieldLayoutManager
protected final IssueFactory issueFactory
public MoveIssue(SubTaskManager subTaskManager, ConstantsManager constantsManager, WorkflowManager workflowManager, FieldManager fieldManager, FieldLayoutManager fieldLayoutManager, IssueFactory issueFactory, FieldScreenRendererFactory fieldScreenRendererFactory, CommentService commentService, UserUtil userUtil)
protected String doExecute() throws Exception
MoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()doExecute in class webwork.action.ActionSupportMoveIssueSubtasks.doDefault()
so that the tasks issue types can be mapped; otherwise, it redirects to
MoveIssueUpdateWorkflow.doDefault()Exceptionpublic String doDefault() throws Exception
doDefault in class AbstractCommentableAssignableIssueAction.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.Exceptionprotected void doValidation()
doValidation in class AbstractCommentableAssignableIssueprotected String redirectToSessionTimeoutPage()
protected void validateAttachmentMove()
protected void validateCreateIssue()
throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityExceptionpublic Long getTargetPid()
public String getTargetStatusId()
public Project getTargetProjectObj()
public IssueType getTargetIssueTypeObject()
public JiraWorkflow getTargetWorkflow() throws WorkflowException
WorkflowExceptionpublic JiraWorkflow getCurrentWorkflow() throws WorkflowException, org.ofbiz.core.entity.GenericEntityException
WorkflowExceptionorg.ofbiz.core.entity.GenericEntityExceptionpublic JiraWorkflow getWorkflowForType(Long projectId, String issueTypeId) throws WorkflowException
WorkflowExceptionpublic Status getCurrentStatus()
public Status getCurrentStatusObject()
public String getTargetIssueType()
public String getCurrentIssueType()
public Collection getAllowedProjects()
public boolean isSubTask()
AbstractIssueSelectActionisSubTask in class AbstractIssueSelectActionpublic Collection<Status> getTargetWorkflowStatuses(String issueTypeId)
issueTypeId - the id of the specified issue type.public boolean isWorkflowMatch(String currentIssueTypeId, String targetIssueTypeId)
currentIssueTypeId - the id of the issue's current issue type.targetIssueTypeId - the id of the target issue type.public boolean isHasSubTasks()
public Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
public Collection<org.ofbiz.core.entity.GenericValue> getSubTaskTypesUsed()
public String getSubTaskTargetStatus(String taskTypeId, String taskStatusId)
taskTypeId - the id of the task type.taskStatusId - the id of the task status.public boolean isStatusChangeRequired()
This is used to determine if step 2 requires input from the user, i.e. If all current statuses exist in the target workflows - no input is needed.
public boolean isTaskStatusChangeRequired()
throws WorkflowException
WorkflowExceptionpublic boolean isIssueStatusValid()
throws WorkflowException
WorkflowExceptionpublic boolean isTaskStatusValid(String typeId, String statusId) throws WorkflowException
WorkflowExceptionpublic Collection<Status> getTaskInvalidStatuses(String typeId) throws WorkflowException
WorkflowExceptionpublic Collection getTaskInvalidStatusObjects(String typeId) throws WorkflowException
WorkflowExceptionpublic Collection getTasksWithStatus(String invalidStatusId) throws WorkflowException
WorkflowExceptionprotected FieldLayoutManager getFieldLayoutManager()
public ConstantsManager getConstantsManager()
getConstantsManager in class JiraWebActionSupportprotected WorkflowManager getWorkflowManager()
public MoveIssueBean getMoveIssueBean()
public void setBeanTargetStatusId(String targetStatusId)
public String getBeanTargetStatusId()
protected Map getViewHtmlParams()
public MutableIssue getIssueObject(org.ofbiz.core.entity.GenericValue issue)
protected FieldManager getFieldManager()
public String getSubtaskTargetIssueType(String subtaskIssueType)
NOTE: This is currently used solely in moveissue-updateworkflow.jsp to construct a dropdown of statuses for the subtask target issue type.
subtaskIssueType - the current issue type idCopyright © 2002-2020 Atlassian. All Rights Reserved.