Package com.codebarrel.jira.project
Interface ProjectService
- All Known Implementing Classes:
NativeProjectService
public interface ProjectService
Service to perform project related operations on a remote tenant.
-
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.
-
Method Details
-
getProject
Retrieves a project on the given tenant. Returns empty if project can't be found.- Parameters:
context- the tenant to look for the projectprojectKey- the key of the project- Returns:
- project or empty
-
getProject
Retrieves a project on the given tenant. Returns empty if project can't be found.- Parameters:
context- the tenant to look for the projectprojectId- the id of the project- Returns:
- project or empty
-
getProjectTypeKeys
Retrieves project types for the specified project ids on the given tenant.- 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
Retrieves project type for the specified project id on the given tenant.- 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.
-