Package com.codebarrel.jira.project
Class NativeProjectService
java.lang.Object
com.codebarrel.jira.project.NativeProjectService
- All Implemented Interfaces:
ProjectService
-
Constructor Summary
ConstructorsConstructorDescriptionNativeProjectService(JiraAuthenticationContext authenticationContext, ProjectService projectService, ProjectBeanTransformer projectBeanTransformer) -
Method Summary
Modifier and TypeMethodDescriptiongetProject(TenantContext context, Long projectId) Retrieves a project on the given tenant.getProject(TenantContext context, String projectKey) Retrieves a project on the given tenant.getProjectTypeKey(TenantContext context, String projectId) Retrieves project type for the specified project id on the given tenant.getProjectTypeKeys(TenantContext context, Set<String> projectIds) Retrieves project types for the specified project ids on the given tenant.
-
Constructor Details
-
NativeProjectService
@Inject public NativeProjectService(JiraAuthenticationContext authenticationContext, ProjectService projectService, ProjectBeanTransformer projectBeanTransformer)
-
-
Method Details
-
getProject
Description copied from interface:ProjectServiceRetrieves a project on the given tenant. Returns empty if project can't be found.- Specified by:
getProjectin interfaceProjectService- Parameters:
context- the tenant to look for the projectprojectKey- the key of the project- Returns:
- project or empty
-
getProject
Description copied from interface:ProjectServiceRetrieves a project on the given tenant. Returns empty if project can't be found.- Specified by:
getProjectin interfaceProjectService- Parameters:
context- the tenant to look for the projectprojectId- the id of the project- Returns:
- project or empty
-
getProjectTypeKeys
public Map<String,Optional<String>> getProjectTypeKeys(TenantContext context, Set<String> projectIds) Description copied from interface:ProjectServiceRetrieves project types for the specified project ids on the given tenant.- Specified by:
getProjectTypeKeysin interfaceProjectService- Parameters:
context- the tenant on which the look up is performedprojectIds- Projects whose types are being looked up- Returns:
- Mapping from project id to project type. In the event of a look up failure, an empty optional is returned.
-
getProjectTypeKey
Description copied from interface:ProjectServiceRetrieves project type for the specified project id on the given tenant.- Specified by:
getProjectTypeKeyin interfaceProjectService- Parameters:
context- the tenant on which the look up is performedprojectId- Project whose type is being looked up- Returns:
- project type or, in the event of a look up failure, an empty optional is returned.
-