public class WorkflowGlobalTransitionsImpl extends Object implements WorkflowGlobalTransitions
Constructor and Description |
---|
WorkflowGlobalTransitionsImpl(StatusManager statusManager,
Workflows workflows,
FieldScreenManager fieldScreenManager,
JiraAuthenticationContext jiraAuthenticationContext,
OutcomeHelper outcomeHelper,
WorkflowService workflowService) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<TransitionData> |
addGlobalTransitionToWorkflow(String workflowName,
String statusId,
String globalTransitionName,
String globalTransitionDescription,
Long screenId)
Add a global transition with the specified properties to the named workflow.
|
ServiceOutcome<Workflow> |
createGlobalTransition(String statusId,
String workflowName,
String globalTransitionName,
String globalTransitionDescription,
Long screenId)
Create a global transition to a specified status on a workflow.
|
ServiceOutcome<Workflow> |
deleteGlobalTransition(String globalTransitionId,
String workflowName)
Delete the global transition in the specified workflow.
|
String |
resolveUniqueGlobalTransitionName(Workflow workflow,
String globalTransitionName)
Checks if a global transition name conflict occurs, returns a generated unique name if it does
|
ServiceOutcome<Workflow> |
updateGlobalTransition(int transitionId,
String name,
String description,
Long screenId,
String workflowName)
Update the global transition identified by the specified transition id with the supplied properties.
|
ServiceOutcome<Workflow> |
verifyGlobalTransitionCanBeUpdated(int transitionId,
String name,
String workflowName,
Long screenId) |
public WorkflowGlobalTransitionsImpl(StatusManager statusManager, Workflows workflows, FieldScreenManager fieldScreenManager, JiraAuthenticationContext jiraAuthenticationContext, OutcomeHelper outcomeHelper, WorkflowService workflowService)
public ServiceOutcome<Workflow> createGlobalTransition(String statusId, String workflowName, String globalTransitionName, String globalTransitionDescription, Long screenId)
WorkflowGlobalTransitions
createGlobalTransition
in interface WorkflowGlobalTransitions
ServiceOutcome
containing the updated workflow.public ServiceOutcome<TransitionData> addGlobalTransitionToWorkflow(String workflowName, String statusId, String globalTransitionName, String globalTransitionDescription, Long screenId)
WorkflowGlobalTransitions
addGlobalTransitionToWorkflow
in interface WorkflowGlobalTransitions
public ServiceOutcome<Workflow> deleteGlobalTransition(String globalTransitionId, String workflowName)
WorkflowGlobalTransitions
deleteGlobalTransition
in interface WorkflowGlobalTransitions
globalTransitionId
- The global transition to delete.workflowName
- The workflow to delete the global transition from.ServiceOutcome
containing the updated workflow.public ServiceOutcome<Workflow> updateGlobalTransition(int transitionId, String name, String description, Long screenId, String workflowName)
WorkflowGlobalTransitions
updateGlobalTransition
in interface WorkflowGlobalTransitions
public ServiceOutcome<Workflow> verifyGlobalTransitionCanBeUpdated(int transitionId, String name, String workflowName, Long screenId)
verifyGlobalTransitionCanBeUpdated
in interface WorkflowGlobalTransitions
public String resolveUniqueGlobalTransitionName(Workflow workflow, String globalTransitionName)
WorkflowGlobalTransitions
resolveUniqueGlobalTransitionName
in interface WorkflowGlobalTransitions
workflow
- derived names are only unique within this workflowglobalTransitionName
- The desired name for the global transitionCopyright © 2002-2024 Atlassian. All Rights Reserved.