Interface IPromptScopeService


public interface IPromptScopeService
Service interface for handling the assignee of prompt objects. This service is temporary and internal, as it should be provided by another domain, but that domain is not yet available (as we are in the process of migrating the architecture).
Since:
8.5.0
  • Method Details

    • tenantId

      Long tenantId(UUID tenantUuid)
      Retrieves the ID of a tenant given its UUID.
      Parameters:
      tenantUuid - The UUID of the tenant.
      Returns:
      The ID of the tenant, or null when no such tenant exists.
    • tenantIdByProject

      Long tenantIdByProject(Long projectId)
      Retrieves the tenant ID given a project ID. I.e. find the tenant that owns the project and returns its ID.
      Parameters:
      projectId - The ID of the project.
      Returns:
      The ID of the tenant associated with the project.
    • tenantName

      String tenantName(UUID tenantUuid)
      Retrieves the name of a tenant given its UUID.
      Parameters:
      tenantUuid - The UUID of the tenant.
      Returns:
      The name of the tenant, or null when no such tenant exists.
    • tenantName

      String tenantName(Long tenantId)
      Retrieves the name of a tenant given its ID
      Parameters:
      tenantId - The ID of the tenant.
      Returns:
      The name of the tenant, or null when no such tenant exists.
    • tenantNameByProject

      String tenantNameByProject(Long projectId)
      Retrieves the name of a tenant given a project ID. I.e. find the tenant that owns the project and returns its name.
      Parameters:
      projectId - The ID of the project.
      Returns:
      The name of the tenant associated with the project.
    • tenantUuid

      UUID tenantUuid(Long tenantId)
      Retrieves the UUID of a tenant given its ID.
      Parameters:
      tenantId - The ID of the tenant.
      Returns:
      The UUID of the tenant.
    • tenantUuidByProject

      UUID tenantUuidByProject(Long projectId)
      Retrieves the UUID of a tenant given a project ID. I.e. find the tenant that owns the project and returns its UUID.
      Parameters:
      projectId - The ID of the project.
      Returns:
      The UUID of the tenant associated with the project.
    • projectIdsByTenant

      Set<Long> projectIdsByTenant(Long tenantId)
      Retrieves all project IDs owned with a particular tenant.
      Parameters:
      tenantId - The ID of the tenant.
      Returns:
      A set of IDs of the projects owned by the tenant.
    • projectName

      String projectName(Long projectId)
      Retrieves the name of a project given its ID.
      Parameters:
      projectId - The ID of the project.
      Returns:
      The name of the project, or null when no such project exists.