Class DefaultProjectContextLocator
java.lang.Object
com.atlassian.jira.projectconfig.util.DefaultProjectContextLocator
- All Implemented Interfaces:
ProjectContextLocator
@Component
public class DefaultProjectContextLocator
extends Object
implements ProjectContextLocator
- Since:
- v6.2
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectContextLocator(ProjectService projectService, JiraAuthenticationContext authContext) -
Method Summary
Modifier and TypeMethodDescriptiongetContext(String projectKey, long issueTypeId) Find aProjectContextfor the passed project and issue type.
-
Constructor Details
-
DefaultProjectContextLocator
@Autowired public DefaultProjectContextLocator(ProjectService projectService, JiraAuthenticationContext authContext)
-
-
Method Details
-
getContext
@Nonnull public ServiceOutcome<ProjectContext> getContext(@Nonnull String projectKey, long issueTypeId) Description copied from interface:ProjectContextLocatorFind aProjectContextfor the passed project and issue type.- Specified by:
getContextin interfaceProjectContextLocator- Parameters:
projectKey- the projectKey to search.issueTypeId- the issueTypeId to search.- Returns:
- the result of the operation. The
ServiceOutcomeeither contains errors or theProjectContextif the operation was successful.
-