Uses of Record Class
dev.dokimos.server.tenant.TenantScope
Packages that use TenantScope
Package
Description
-
Uses of TenantScope in dev.dokimos.server.filter
Methods in dev.dokimos.server.filter that return TenantScopeModifier and TypeMethodDescriptionPrincipal.tenantScope()Resolves theTenantScopethis principal reads and writes under. -
Uses of TenantScope in dev.dokimos.server.repository
Methods in dev.dokimos.server.repository with parameters of type TenantScopeModifier and TypeMethodDescriptionbooleanDatasetRepositoryFragment.existsByName(String name, TenantScope scope) Returns whether a dataset with the name exists within the scope.booleanDatasetRepositoryFragmentImpl.existsByName(String name, TenantScope scope) booleanLlmConnectionRepositoryFragment.existsByName(String name, TenantScope scope) Returns whether a connection with the name exists within the scope.booleanLlmConnectionRepositoryFragmentImpl.existsByName(String name, TenantScope scope) booleanTraceEvalRuleRepositoryFragment.existsByProjectIdAndName(UUID projectId, String name, TenantScope scope) Returns whether a rule of the name already exists in the project, within the scope.booleanTraceEvalRuleRepositoryFragmentImpl.existsByProjectIdAndName(UUID projectId, String name, TenantScope scope) ProjectRepositoryFragmentImpl.findAll(TenantScope scope) DatasetRepositoryFragment.findAllOrdered(TenantScope scope) Lists datasets visible under the scope, newest first.DatasetRepositoryFragmentImpl.findAllOrdered(TenantScope scope) LlmConnectionRepositoryFragment.findAllOrdered(TenantScope scope) Lists connections visible under the scope, newest first.LlmConnectionRepositoryFragmentImpl.findAllOrdered(TenantScope scope) org.springframework.data.domain.Page<Trace> TraceRepositoryFragment.findAllOrdered(org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first within the scope, paginated.org.springframework.data.domain.Page<Trace> TraceRepositoryFragmentImpl.findAllOrdered(org.springframework.data.domain.Pageable pageable, TenantScope scope) ProjectRepositoryFragment.findAllWithExperimentCount(TenantScope scope) Returns each visible project paired with its experiment count, newest first, as[Project, Long]rows.ProjectRepositoryFragmentImpl.findAllWithExperimentCount(TenantScope scope) ExperimentRunRepositoryFragment.findBaselineCandidates(Experiment experiment, UUID candidateId, UUID datasetVersionId, String branch, org.springframework.data.domain.Pageable pageable, TenantScope scope) SUCCESS baseline candidates for automatic gate resolution, within the scope, newest first.ExperimentRunRepositoryFragmentImpl.findBaselineCandidates(Experiment experiment, UUID candidateId, UUID datasetVersionId, String branch, org.springframework.data.domain.Pageable pageable, TenantScope scope) ExperimentRunRepositoryFragment.findByExperiment(Experiment experiment, TenantScope scope) Lists an experiment's runs newest first, within the scope.ExperimentRunRepositoryFragmentImpl.findByExperiment(Experiment experiment, TenantScope scope) ExperimentRunRepositoryFragment.findByIdForUpdate(UUID id, TenantScope scope) Loads a run by id within the scope under a write lock, to serialize ingestion against completion.ExperimentRunRepositoryFragmentImpl.findByIdForUpdate(UUID id, TenantScope scope) DatasetRepositoryFragment.findByName(String name, TenantScope scope) Finds a dataset by name within the scope.DatasetRepositoryFragmentImpl.findByName(String name, TenantScope scope) LlmConnectionRepositoryFragment.findByName(String name, TenantScope scope) Finds a connection by name within the scope.LlmConnectionRepositoryFragmentImpl.findByName(String name, TenantScope scope) ProjectRepositoryFragment.findByName(String name, TenantScope scope) Looks up a project by name within the scope.ProjectRepositoryFragmentImpl.findByName(String name, TenantScope scope) DatasetRepositoryFragment.findByNameForUpdate(String name, TenantScope scope) Finds a dataset by name within the scope under a pessimistic write lock, for version creation.DatasetRepositoryFragmentImpl.findByNameForUpdate(String name, TenantScope scope) AlertWebhookRepositoryFragment.findByProject(Project project, TenantScope scope) Lists a project's webhooks oldest first, within the scope.AlertWebhookRepositoryFragmentImpl.findByProject(Project project, TenantScope scope) ExperimentRepositoryFragment.findByProject(Project project, TenantScope scope) Lists a project's experiments newest first, within the scope.ExperimentRepositoryFragmentImpl.findByProject(Project project, TenantScope scope) ExperimentRepositoryFragment.findByProjectAndName(Project project, String name, TenantScope scope) Finds an experiment of a project by name within the scope.ExperimentRepositoryFragmentImpl.findByProjectAndName(Project project, String name, TenantScope scope) TraceEvalRuleRepositoryFragment.findByProjectId(UUID projectId, TenantScope scope) Lists a project's rules oldest first, within the scope.TraceEvalRuleRepositoryFragmentImpl.findByProjectId(UUID projectId, TenantScope scope) org.springframework.data.domain.Page<Trace> TraceRepositoryFragment.findByProjectId(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists a project's traces newest first within the scope, paginated.org.springframework.data.domain.Page<Trace> TraceRepositoryFragmentImpl.findByProjectId(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) ExperimentRunRepositoryFragment.findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable, TenantScope scope) Returns an experiment's terminal (SUCCESS or FAILED) runs newest first, within the scope.ExperimentRunRepositoryFragmentImpl.findCompletedRunsByExperiment(Experiment experiment, org.springframework.data.domain.Pageable pageable, TenantScope scope) ExperimentRunRepositoryFragment.findFirstByExperiment(Experiment experiment, TenantScope scope) Returns the most recent run of an experiment within the scope.ExperimentRunRepositoryFragmentImpl.findFirstByExperiment(Experiment experiment, TenantScope scope) -
Uses of TenantScope in dev.dokimos.server.service
Methods in dev.dokimos.server.service with parameters of type TenantScopeModifier and TypeMethodDescriptionvoidRunService.addItems(UUID runId, AddItemsRequest request, String idempotencyKey, TenantScope scope) Adds item results to a run; only allowed while the run is RUNNING.AlertWebhookService.create(UUID projectId, CreateAlertWebhookRequest request, TenantScope scope) Registers a webhook for a project, stamped with the project's tenant.LlmConnectionService.create(CreateLlmConnectionRequest request, TenantScope scope) Registers a connection.TraceEvalRuleService.create(UUID projectId, CreateTraceEvalRuleRequest request, TenantScope scope) Creates a rule for a project, stamped with the project's tenant.DatasetService.createDataset(String name, String description, TenantScope scope) Creates a dataset whose name is unique within the scope, stamped with the scope's tenant.RunService.createRun(Experiment experiment, CreateRunRequest request, TenantScope scope) Creates a run and persists its provenance fields (name, git SHA, branch, triggered_by) plus an optional link to the dataset version it executed against.DatasetService.createVersion(String datasetName, String description, List<CreateVersionRequest.ItemPayload> items, String createdBy, TenantScope scope) Creates a new immutable version of the dataset visible under the scope and inserts all items in one transaction.voidAlertWebhookService.delete(UUID projectId, UUID webhookId, TenantScope scope) Deletes one of a project's webhooks.voidAnnotationService.delete(UUID runId, UUID itemResultId, TenantScope scope) Removes the annotation for the given run item result if one exists.voidLlmConnectionService.delete(UUID id, TenantScope scope) Deletes a connection along with its judge job queue records.voidTraceEvalRuleService.delete(UUID projectId, UUID ruleId, TenantScope scope) Deletes a rule.voidDatasetService.deleteDataset(String name, TenantScope scope) Deletes a dataset visible under the scope.voidExperimentService.deleteExperiment(UUID experimentId, TenantScope scope) Deletes an experiment visible under the scope; FKs cascade to its runs, items, and evals.voidProjectService.deleteProject(String name, TenantScope scope) Deletes a project visible under the scope; FKs cascade to its experiments, runs, items, and evals.voidRunService.deleteRun(UUID runId, TenantScope scope) Deletes a run visible under the scope; FKs cascade to its item and eval results.EvalJobService.enqueue(UUID runId, EnqueueJudgeRequest request, TenantScope scope) Enqueues a judge job for a run and moves the run into the evaluating state.GateService.evaluateGate(UUID experimentId, GateRequest request, TenantScope scope) Evaluates the regression gate for a candidate run within an experiment.AlertWebhookService.get(UUID projectId, UUID webhookId, TenantScope scope) Returns one of a project's webhooks.AnnotationService.get(UUID runId, UUID itemResultId, TenantScope scope) Returns the annotation for the given run item result, scoped to the caller's tenant.LlmConnectionService.get(UUID id, TenantScope scope) Returns a connection by id, visible under the scope.AlignmentService.getAlignment(UUID runId, TenantScope scope) Computes the judge-human alignment breakdown for a run.DatasetService.getDataset(String name, TenantScope scope) Returns the dataset with the given name, visible under the scope.DatasetService.getDatasetDetails(String name, TenantScope scope) Returns full dataset details including the version list, newest first.ExperimentService.getExperiment(UUID experimentId, TenantScope scope) EvalJobService.getJobsForRun(UUID runId, TenantScope scope) Lists the judge jobs registered for a run, oldest first.DatasetService.getLatestVersion(String datasetName, TenantScope scope) Returns the latest version of the dataset, visible under the scope.ExperimentService.getOrCreateExperiment(Project project, String name, TenantScope scope) Resolves an experiment of the project by name within the scope, creating it stamped with the scope's tenant when absent.ProjectService.getOrCreateProject(String name, TenantScope scope) Resolves the project by name within the scope, creating it stamped with the scope's tenant when it does not exist.ProjectService.getProject(String name, TenantScope scope) RunService.getRunDetails(UUID runId, org.springframework.data.domain.Pageable pageable, TenantScope scope) ComparisonSupport.getRunInExperiment(UUID runId, Experiment experiment, String label, ExperimentRunRepository runRepository, TenantScope scope) Loads a run by id and asserts it belongs to the given experiment.TraceQueryService.getTrace(UUID id, TenantScope scope) Returns the full detail of one trace: its metadata, spans, and the online eval jobs scoped to its spans.ExperimentService.getTrends(UUID experimentId, int limit, TenantScope scope) DatasetService.getVersion(String datasetName, int version, TenantScope scope) Returns a specific version of the dataset, visible under the scope.AlertWebhookService.list(UUID projectId, TenantScope scope) Lists a project's webhooks in creation order.LlmConnectionService.list(TenantScope scope) org.springframework.data.domain.Page<ReviewQueueItem> ReviewQueueService.list(String projectName, UUID experimentId, UUID runId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Returns a page of items awaiting review, oldest first.TraceEvalRuleService.list(UUID projectId, TenantScope scope) Lists the rules of a project, oldest first, within the scope.DatasetService.listDatasets(TenantScope scope) Returns dataset summaries visible under the scope with the latest version number and item count for each.DiffService.listDiff(UUID experimentId, UUID candidateRunId, UUID baselineRunId, String statusFilter, org.springframework.data.domain.Pageable pageable, TenantScope scope) Builds the per-case diff between a candidate run and an explicit baseline run, returning the whole-run summary together with the requested, filtered, sorted page of cases.ExperimentService.listExperiments(Project project, TenantScope scope) org.springframework.data.domain.Page<DatasetItem> DatasetService.listItems(String datasetName, int version, org.springframework.data.domain.Pageable pageable, TenantScope scope) Returns items for the given version ordered by ordinal, paginated.ProjectService.listProjects(TenantScope scope) RunService.listRuns(Experiment experiment, TenantScope scope) org.springframework.data.domain.Page<TraceSummary> TraceQueryService.listTraces(UUID projectId, org.springframework.data.domain.Pageable pageable, TenantScope scope) Lists traces newest first, optionally filtered to a project.DatasetService.promote(PromoteRequest req, String createdBy, TenantScope scope) Promotes run item results into a new version of an existing dataset.AlertWebhookService.update(UUID projectId, UUID webhookId, UpdateAlertWebhookRequest request, TenantScope scope) Replaces a webhook's url and enabled flag, and optionally its secret.LlmConnectionService.update(UUID id, UpdateLlmConnectionRequest request, TenantScope scope) Replaces a connection's name, base URL, and model, and optionally its credential.TraceEvalRuleService.update(UUID projectId, UUID ruleId, CreateTraceEvalRuleRequest request, TenantScope scope) Replaces a rule's definition.voidRunService.updateRun(UUID runId, UpdateRunRequest request, TenantScope scope) Updates a run's status.AnnotationService.upsert(UUID runId, UUID itemResultId, AnnotationRequest req, String principalId, TenantScope scope) Creates or updates the single annotation for the given item result. -
Uses of TenantScope in dev.dokimos.server.tenant
Methods in dev.dokimos.server.tenant that return TenantScopeModifier and TypeMethodDescriptionstatic TenantScopeTenantScopeResolver.scope(jakarta.servlet.http.HttpServletRequest request) Resolves the tenant scope the current request reads and writes under, using the principal's own scope and failing closed to a shared-only scope when no principal is present.static TenantScopeReturns a scope restricted to the given tenant.static TenantScopeTenantScope.unrestricted()Returns the scope that applies no tenant predicate.Methods in dev.dokimos.server.tenant with parameters of type TenantScopeModifier and TypeMethodDescriptionlongAbstractScopedRepository.count(TenantScope scope) longScopedRepository.count(TenantScope scope) Counts the entities visible under the scope.longTenantScopedFinder.count(TenantScope scope) Counts the entities visible under the scope.AbstractScopedRepository.findAll(TenantScope scope) ScopedRepository.findAll(TenantScope scope) Lists every entity visible under the scope.TenantScopedFinder.findAll(TenantScope scope, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, List<jakarta.persistence.criteria.Order>> order) Lists every entity visible under the scope, with an optionalorder.AbstractScopedRepository.findById(UUID id, TenantScope scope) ScopedRepository.findById(UUID id, TenantScope scope) Loads an entity by id only if it is visible under the scope.TenantScopedFinder.findById(UUID id, TenantScope scope) Loads an entity by id under the scope; a row of another tenant returns empty, never leaking existence.TenantScopedFinder.findByIdForUpdate(UUID id, TenantScope scope) Loads an entity by id under the scope and a pessimistic write lock, to serialize concurrent writers.TenantScopedFinder.findFirst(TenantScope scope, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.Predicate> extra, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, List<jakarta.persistence.criteria.Order>> order) Returns the first entity matchingextraand visible under the scope, with an optionalorder.TenantScopedFinder.findFirstForUpdate(TenantScope scope, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.Predicate> extra) Returns the first entity matchingextraunder the scope and a pessimistic write lock.org.springframework.data.domain.Page<T> TenantScopedFinder.findPage(TenantScope scope, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.Predicate> extra, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, List<jakarta.persistence.criteria.Order>> order, org.springframework.data.domain.Pageable pageable) Returns a page of entities matchingextraand visible under the scope.TenantScopedFinder.findWhere(TenantScope scope, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, jakarta.persistence.criteria.Predicate> extra, BiFunction<jakarta.persistence.criteria.CriteriaBuilder, jakarta.persistence.criteria.Root<T>, List<jakarta.persistence.criteria.Order>> order) Lists entities matchingextraand visible under the scope, with an optionalorder.static jakarta.persistence.criteria.PredicateTenantPredicate.forScope(jakarta.persistence.criteria.CriteriaBuilder cb, jakarta.persistence.criteria.Path<String> tenantIdPath, TenantScope scope) Builds the criteria predicate for the scope over the giventenant_idpath.