public class WorkflowStatusesImpl extends Object implements WorkflowStatuses
DEFAULT_ICON_URL
Constructor and Description |
---|
WorkflowStatusesImpl(JiraAuthenticationContext authenticationContext,
ConstantsService constantsService,
StatusService statusService,
Workflows workflows,
StatusManager statusManager,
WorkflowService workflowService,
OutcomeHelper outcomeHelper,
WorkflowStatusesValidator workflowStatusesValidator) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<Workflow> |
addStatusAndGlobalTransitionToWorkflow(Status status,
String workflowName)
Add a status and a global transition to that status to a workflow.
|
ServiceOutcome<Workflow> |
addStatusToWorkflow(Status status,
String workflowName)
Add a status to a workflow.
|
ServiceOutcome<Workflow> |
createAndAddStatusToWorkflow(boolean createGlobalTransition,
String description,
String name,
String statusCategoryId,
String workflowName)
Create a status and add it to a workflow.
|
ServiceOutcome<Status> |
getStatus(String statusId,
String workflowName) |
ServiceOutcome<Collection<Status>> |
getStatuses(String workflowName) |
ServiceOutcome<Workflow> |
removeStatus(String statusId,
String workflowName)
Remove the status represented by the supplied status from the named workflow.
|
ServiceOutcome<Workflow> |
updateStatus(String description,
String name,
String statusCategoryId,
String statusId,
String workflowName)
Update a status, setting its description, name, and status category.
|
ServiceOutcome<Pair<Workflow,Status>> |
verifyStatusCanBeRemoved(Status status,
String workflowName) |
ServiceOutcome<Pair<Workflow,Status>> |
verifyStatusCanBeRemoved(String statusId,
String workflowName) |
public WorkflowStatusesImpl(JiraAuthenticationContext authenticationContext, ConstantsService constantsService, StatusService statusService, Workflows workflows, StatusManager statusManager, WorkflowService workflowService, OutcomeHelper outcomeHelper, WorkflowStatusesValidator workflowStatusesValidator)
public ServiceOutcome<Workflow> createAndAddStatusToWorkflow(boolean createGlobalTransition, String description, String name, String statusCategoryId, String workflowName)
WorkflowStatuses
createAndAddStatusToWorkflow
in interface WorkflowStatuses
createGlobalTransition
- Whether a global transition to the new status should also be created.description
- The status's description.name
- The status's name.statusCategoryId
- The ID of the status category to use.workflowName
- The name of the workflow to add the status to.public ServiceOutcome<Workflow> addStatusAndGlobalTransitionToWorkflow(Status status, String workflowName)
WorkflowStatuses
addStatusAndGlobalTransitionToWorkflow
in interface WorkflowStatuses
status
- The status.workflowName
- The workflow's name.ServiceOutcome
containing the new workflow step.public ServiceOutcome<Workflow> addStatusToWorkflow(Status status, String workflowName)
WorkflowStatuses
addStatusToWorkflow
in interface WorkflowStatuses
status
- The status.workflowName
- The workflow's name.ServiceOutcome
containing the updated workflow.public ServiceOutcome<Workflow> removeStatus(String statusId, String workflowName)
removeStatus
in interface WorkflowStatuses
statusId
- workflowName
- ServiceOutcome
containing the updated workflow.public ServiceOutcome<Workflow> updateStatus(String description, String name, String statusCategoryId, String statusId, String workflowName)
updateStatus
in interface WorkflowStatuses
description
- The status's new description.name
- The status's new name.statusCategoryId
- The ID of the status's new category.statusId
- The status's ID.workflowName
- The name of the workflow to operate on.public ServiceOutcome<Pair<Workflow,Status>> verifyStatusCanBeRemoved(String statusId, String workflowName)
verifyStatusCanBeRemoved
in interface WorkflowStatuses
public ServiceOutcome<Pair<Workflow,Status>> verifyStatusCanBeRemoved(@NotNull Status status, String workflowName)
verifyStatusCanBeRemoved
in interface WorkflowStatuses
public ServiceOutcome<Status> getStatus(String statusId, String workflowName)
getStatus
in interface WorkflowStatuses
public ServiceOutcome<Collection<Status>> getStatuses(String workflowName)
getStatuses
in interface WorkflowStatuses
workflowName
- Copyright © 2002-2018 Atlassian. All Rights Reserved.