Package com.atlassian.jira.workflow.edit
Class WorkflowTransitionsImpl
java.lang.Object
com.atlassian.jira.workflow.edit.WorkflowTransitionsImpl
- All Implemented Interfaces:
WorkflowTransitions
-
Constructor Summary
ConstructorsConstructorDescriptionWorkflowTransitionsImpl(Workflows workflows, FieldScreenManager fieldScreenManager, StatusManager statusManager, GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, OutcomeHelper outcomeHelper, WorkflowService workflowService) -
Method Summary
Modifier and TypeMethodDescriptionaddCommonTransition(String sourceStatusId, int transitionId, String workflowName) Add a common transition to a workflow.addTransitionToWorkflow(String name, String description, Long screenId, int sourceStepId, int targetStepId, String workflowName) Add a transition with the specified properties to the named workflow.deleteTransition(int transitionId, int sourceStepId, String workflowName) Delete the transition represented by transition id on the specified workflow.updateTransition(int transitionId, String name, String description, Long screenId, int sourceStepId, String workflowName) Update an existing transition with the supplied properties on the named workflow.updateTransitionSource(int transitionId, String newSourceStatusId, String originalSourceStatusId, String workflowName) Update the source of an existing transition on the named workflow.updateTransitionTarget(int transitionId, String targetStatusId, String workflowName) Update the target of an existing transition on the named workflow.
-
Constructor Details
-
WorkflowTransitionsImpl
public WorkflowTransitionsImpl(Workflows workflows, FieldScreenManager fieldScreenManager, StatusManager statusManager, GlobalPermissionManager globalPermissionManager, JiraAuthenticationContext jiraAuthenticationContext, OutcomeHelper outcomeHelper, WorkflowService workflowService)
-
-
Method Details
-
addTransitionToWorkflow
public ServiceOutcome<TransitionData> addTransitionToWorkflow(String name, String description, Long screenId, int sourceStepId, int targetStepId, String workflowName) Description copied from interface:WorkflowTransitionsAdd a transition with the specified properties to the named workflow.- Specified by:
addTransitionToWorkflowin interfaceWorkflowTransitions- Returns:
- ServiceOutcome
New transition data.
-
updateTransition
public ServiceOutcome<Workflow> updateTransition(int transitionId, String name, String description, Long screenId, int sourceStepId, String workflowName) Description copied from interface:WorkflowTransitionsUpdate an existing transition with the supplied properties on the named workflow.- Specified by:
updateTransitionin interfaceWorkflowTransitions
-
deleteTransition
public ServiceOutcome<Workflow> deleteTransition(int transitionId, int sourceStepId, String workflowName) Description copied from interface:WorkflowTransitionsDelete the transition represented by transition id on the specified workflow.- Specified by:
deleteTransitionin interfaceWorkflowTransitions- Parameters:
transitionId-sourceStepId-workflowName-- Returns:
- ServiceOutcome
-
updateTransitionTarget
public ServiceOutcome<Workflow> updateTransitionTarget(int transitionId, String targetStatusId, String workflowName) Description copied from interface:WorkflowTransitionsUpdate the target of an existing transition on the named workflow.- Specified by:
updateTransitionTargetin interfaceWorkflowTransitions
-
updateTransitionSource
public ServiceOutcome<Workflow> updateTransitionSource(int transitionId, String newSourceStatusId, String originalSourceStatusId, String workflowName) Description copied from interface:WorkflowTransitionsUpdate the source of an existing transition on the named workflow.- Specified by:
updateTransitionSourcein interfaceWorkflowTransitions- Parameters:
transitionId- The id of the transition being modified.newSourceStatusId- The status id representing the new source status.originalSourceStatusId- The status id representing the original source status.workflowName- The name of the workflow the transition exists on.- Returns:
- ServiceOutcome
The result of the update source action.
-
addCommonTransition
public ServiceOutcome<Workflow> addCommonTransition(String sourceStatusId, int transitionId, String workflowName) Description copied from interface:WorkflowTransitionsAdd a common transition to a workflow.- Specified by:
addCommonTransitionin interfaceWorkflowTransitions- Parameters:
sourceStatusId- The ID of the source status to use.transitionId- The ID of the transition to use.workflowName- The name of the workflow to add the common transition to.- Returns:
- transitionId
-