com.atlassian.jira.web.action.admin.workflow
Class AbstractWorkflowStep
java.lang.Object
webwork.action.ActionSupport
com.atlassian.jira.action.JiraActionSupport
com.atlassian.jira.web.action.JiraWebActionSupport
com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowStep
- All Implemented Interfaces:
- ErrorCollection, I18nHelper, AuthorizationSupport, Serializable, webwork.action.Action, webwork.action.CommandDriven, webwork.action.IllegalArgumentAware
- Direct Known Subclasses:
- DeleteWorkflowStep, EditWorkflowStep, ViewWorkflowStep, ViewWorkflowSteps
public class AbstractWorkflowStep
- extends JiraWebActionSupport
Copyright (c) 2002-2004
All rights reserved.
- See Also:
- Serialized Form
Fields inherited from class webwork.action.ActionSupport |
command, errorMap, errorMessages |
Fields inherited from interface webwork.action.Action |
ERROR, INPUT, LOGIN, NONE, SUCCESS |
Methods inherited from class com.atlassian.jira.web.action.JiraWebActionSupport |
addError, addErrorCollection, addErrorMessage, addErrorMessageByKeyIfAbsent, addErrorMessageIfAbsent, addReason, addReasons, forceRedirect, getAdministratorContactLink, getApplicationProperties, getConglomerateCookieValue, getDateFormat, getDateTimeFormat, getDateTimeFormatter, getDescTranslation, getDmyDateFormatter, getField, getFlushedErrorMessages, getGlobalPermissionManager, getHint, getHintManager, getJiraContactHelper, getJiraServiceContext, getLanguage, getLoggedInUser, getNameTranslation, getOutlookDate, getPermissionManager, getProjectManager, getRandomHint, getReasons, getRedirect, getRedirectChecker, getReturnUrl, getReturnUrlForCancelLink, getSearchSortDescriptions, getSelectedProject, getSelectedProjectObject, getServerId, getTimeFormat, getUriValidator, getUserFullName, getUserManager, getUserProjectHistoryManager, getVersionManager, getWebworkStack, getWebworkStack, getXsrfToken, hasErrorMessage, hasErrorMessageByKey, htmlEncode, insertContextPath, isHasIssuePermission, isHasIssuePermission, isHasPermission, isHasPermission, isHasPermission, isHasProjectPermission, isHasProjectPermission, isInlineDialogMode, isSystemAdministrator, isUserExists, returnComplete, returnComplete, returnCompleteWithInlineRedirect, returnCompleteWithInlineRedirectAndMsg, returnMsgToUser, setConglomerateCookieValue, setInline, setReasons, setReturnUrl, setSelectedProjectId |
Methods inherited from class com.atlassian.jira.action.JiraActionSupport |
addErrorMessages, addErrorMessages, addErrors, addIllegalArgumentException, execute, getActionName, getComponentInstanceOfType, getDefaultResourceBundle, getDelegator, getI18nHelper, getKeysForPrefix, getLocale, getOfBizDelegator, getRemoteUser, getResult, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getText, getUnescapedText, getUserPreferences, getWatcherManager, hasAnyErrors, isIndexing, removeKeyOrAddError |
Methods inherited from class webwork.action.ActionSupport |
addError, addErrorMessage, doDefault, doExecute, doValidation, getCommandName, getErrorMessages, getErrors, getHasErrorMessages, getHasErrors, getPropertyEditorMessage, getTexts, getTexts, getTimezone, invalidInput, invokeCommand, isCommand, setCommand, setErrorMessages, setErrors, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface webwork.action.CommandDriven |
getCommandName, setCommand |
workflow
protected final JiraWorkflow workflow
constantsManager
protected final ConstantsManager constantsManager
workflowService
protected final WorkflowService workflowService
AbstractWorkflowStep
public AbstractWorkflowStep(JiraWorkflow workflow,
ConstantsManager constantsManager,
WorkflowService workflowService)
getStepName
public String getStepName()
setStepName
public void setStepName(String stepName)
getUnlinkedStatusesGVs
public Collection getUnlinkedStatusesGVs()
getUnlinkedStatuses
public Collection getUnlinkedStatuses()
getUnlinkedStatuses
public Collection getUnlinkedStatuses(boolean genericValues)
getStepStatus
public String getStepStatus()
setStepStatus
public void setStepStatus(String stepStatus)
getWorkflow
public JiraWorkflow getWorkflow()
getWorkflowDisplayName
public String getWorkflowDisplayName()
getConstantsManager
public ConstantsManager getConstantsManager()
- Overrides:
getConstantsManager
in class JiraWebActionSupport
isOldStepOnDraft
public boolean isOldStepOnDraft(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
- This method is used to determine if workflowstep belongs to a draft workflow and is present on the original
workflow that was used to create the draft.
This means this step cannot be deleted, and cannot be associated with a different status.
- Parameters:
stepDescriptor
- The stepDescriptor in being edited.
- Returns:
- True if the step is an existing step and the workflow is a draft workflow
isCanDeleteStep
public boolean isCanDeleteStep(com.opensymphony.workflow.loader.StepDescriptor stepDescriptor)
throws WorkflowException
- Throws:
WorkflowException
isStepWithoutTransitionsOnDraft
public boolean isStepWithoutTransitionsOnDraft(int stepId)
- Used to detect if a step on a draft, does not have any outgoing transitions on the original workflow.
Adding transitions to such a step is not allowed.
- Parameters:
stepId
- The id of the step in question.
- Returns:
- True if the step does not have any outgoing transitions on the original workflow
Copyright © 2002-2012 Atlassian. All Rights Reserved.