public class

AbstractWorkflowStep

extends AbstractWorkflowAction
java.lang.Object
   ↳ webwork.action.ActionSupport
     ↳ com.atlassian.jira.action.JiraActionSupport
       ↳ com.atlassian.jira.web.action.JiraWebActionSupport
         ↳ com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowAction
           ↳ com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowStep
Known Direct Subclasses

Class Overview

Copyright (c) 2002-2004 All rights reserved.

Summary

[Expand]
Inherited Constants
From class com.atlassian.jira.web.action.JiraWebActionSupport
From interface webwork.action.Action
Fields
protected final ConstantsManager constantsManager
protected final WorkflowService workflowService
[Expand]
Inherited Fields
From class com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
Public Constructors
AbstractWorkflowStep(JiraWorkflow workflow, ConstantsManager constantsManager, WorkflowService workflowService)
Public Methods
ConstantsManager getConstantsManager()
String getStepName()
String getStepStatus()
Collection<GenericValue> getUnlinkedStatuses()
Collection<GenericValue> getUnlinkedStatuses(boolean genericValues)
Collection<GenericValue> getUnlinkedStatusesGVs()
JiraWorkflow getWorkflow()
boolean isCanDeleteStep(StepDescriptor stepDescriptor)
boolean isOldStepOnDraft(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.
boolean isStepWithoutTransitionsOnDraft(int stepId)
Used to detect if a step on a draft, does not have any outgoing transitions on the original workflow.
void setStepName(String stepName)
void setStepStatus(String stepStatus)
[Expand]
Inherited Methods
From class com.atlassian.jira.web.action.admin.workflow.AbstractWorkflowAction
From class com.atlassian.jira.web.action.JiraWebActionSupport
From class com.atlassian.jira.action.JiraActionSupport
From class webwork.action.ActionSupport
From class java.lang.Object
From interface com.atlassian.jira.util.ErrorCollection
From interface com.atlassian.jira.util.I18nHelper
From interface com.atlassian.jira.web.HttpServletVariables
From interface com.atlassian.jira.web.util.AuthorizationSupport
From interface webwork.action.Action
From interface webwork.action.CommandDriven
From interface webwork.action.IllegalArgumentAware

Fields

protected final ConstantsManager constantsManager

protected final WorkflowService workflowService

Public Constructors

public AbstractWorkflowStep (JiraWorkflow workflow, ConstantsManager constantsManager, WorkflowService workflowService)

Public Methods

public ConstantsManager getConstantsManager ()

public String getStepName ()

public String getStepStatus ()

public Collection<GenericValue> getUnlinkedStatuses ()

public Collection<GenericValue> getUnlinkedStatuses (boolean genericValues)

public Collection<GenericValue> getUnlinkedStatusesGVs ()

public JiraWorkflow getWorkflow ()

public boolean isCanDeleteStep (StepDescriptor stepDescriptor)

public boolean isOldStepOnDraft (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

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

public void setStepName (String stepName)

public void setStepStatus (String stepStatus)