Class NativeProjectService

java.lang.Object
com.codebarrel.jira.project.NativeProjectService
All Implemented Interfaces:
ProjectService

@Named public class NativeProjectService extends Object implements ProjectService
  • Constructor Details

  • Method Details

    • getProject

      public Optional<Project> getProject(TenantContext context, String projectKey)
      Description copied from interface: ProjectService
      Retrieves a project on the given tenant. Returns empty if project can't be found.
      Specified by:
      getProject in interface ProjectService
      Parameters:
      context - the tenant to look for the project
      projectKey - the key of the project
      Returns:
      project or empty
    • getProject

      public Optional<Project> getProject(TenantContext context, Long projectId)
      Description copied from interface: ProjectService
      Retrieves a project on the given tenant. Returns empty if project can't be found.
      Specified by:
      getProject in interface ProjectService
      Parameters:
      context - the tenant to look for the project
      projectId - 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: ProjectService
      Retrieves project types for the specified project ids on the given tenant.
      Specified by:
      getProjectTypeKeys in interface ProjectService
      Parameters:
      context - the tenant on which the look up is performed
      projectIds - 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

      public Optional<String> getProjectTypeKey(TenantContext context, String projectId)
      Description copied from interface: ProjectService
      Retrieves project type for the specified project id on the given tenant.
      Specified by:
      getProjectTypeKey in interface ProjectService
      Parameters:
      context - the tenant on which the look up is performed
      projectId - Project whose type is being looked up
      Returns:
      project type or, in the event of a look up failure, an empty optional is returned.