Class DefaultProjectWorkflowContextLocator
java.lang.Object
com.atlassian.jira.projectconfig.util.DefaultProjectWorkflowContextLocator
- All Implemented Interfaces:
ProjectWorkflowContextLocator
@Component
public class DefaultProjectWorkflowContextLocator
extends Object
implements ProjectWorkflowContextLocator
- Since:
- v7.4
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectWorkflowContextLocator(ProjectService projectService, JiraAuthenticationContext authContext, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager, PermissionManager permissionManager) -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String projectKey, String workflowName) Find aProjectWorkflowContextfor the passed project and workflow name.
-
Constructor Details
-
DefaultProjectWorkflowContextLocator
@Autowired public DefaultProjectWorkflowContextLocator(ProjectService projectService, JiraAuthenticationContext authContext, WorkflowManager workflowManager, WorkflowSchemeManager workflowSchemeManager, PermissionManager permissionManager)
-
-
Method Details
-
getContext
@Nonnull public ServiceOutcome<ProjectWorkflowContext> getContext(String projectKey, @Nonnull String workflowName) Description copied from interface:ProjectWorkflowContextLocatorFind aProjectWorkflowContextfor the passed project and workflow name.- Specified by:
getContextin interfaceProjectWorkflowContextLocator- Parameters:
projectKey- the projectKey to search (it can be null since there're admin pages when no project is given)workflowName- the workflowName to search- Returns:
- the result of the operation. The
ServiceOutcomeeither contains errors or theProjectWorkflowContextif the operation was successful.
-