Interface ProjectService

All Known Implementing Classes:
NativeProjectService

public interface ProjectService
Service to perform project related operations on a remote tenant.
  • Method Details

    • getProject

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

      Optional<Project> getProject(TenantContext context, Long projectId)
      Retrieves a project on the given tenant. Returns empty if project can't be found.
      Parameters:
      context - the tenant to look for the project
      projectId - the id of the project
      Returns:
      project or empty
    • getProjectTypeKeys

      Map<String,Optional<String>> getProjectTypeKeys(TenantContext context, Set<String> projectIds)
      Retrieves project types for the specified project ids on the given tenant.
      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

      Optional<String> getProjectTypeKey(TenantContext context, String projectId)
      Retrieves project type for the specified project id on the given tenant.
      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.