@Component public class DefaultProjectWorkflowContextLocator extends Object implements ProjectWorkflowContextLocator
Constructor and Description |
---|
DefaultProjectWorkflowContextLocator(ProjectService projectService,
JiraAuthenticationContext authContext,
WorkflowManager workflowManager,
WorkflowSchemeManager workflowSchemeManager,
PermissionManager permissionManager) |
Modifier and Type | Method and Description |
---|---|
ServiceOutcome<ProjectWorkflowContext> |
getContext(String projectKey,
String workflowName)
Find a
ProjectWorkflowContext for the passed project and workflow name. |
@Autowired public DefaultProjectWorkflowContextLocator(ProjectService projectService, JiraAuthenticationContext authContext, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager, PermissionManager permissionManager)
@Nonnull public ServiceOutcome<ProjectWorkflowContext> getContext(String projectKey, @Nonnull String workflowName)
ProjectWorkflowContextLocator
ProjectWorkflowContext
for the passed project and workflow name.getContext
in interface ProjectWorkflowContextLocator
projectKey
- the projectKey to search (it can be null since there're admin pages when no project is given)workflowName
- the workflowName to searchServiceOutcome
either contains errors
or the ProjectWorkflowContext
if the operation was successful.Copyright © 2002-2023 Atlassian. All Rights Reserved.