Package dev.dokimos.server.service
Class ProjectService
java.lang.Object
dev.dokimos.server.service.ProjectService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteProject(String name, TenantScope scope) Deletes a project visible under the scope; FKs cascade to its experiments, runs, items, and evals.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.getProject(String name, TenantScope scope) listProjects(TenantScope scope)
-
Constructor Details
-
ProjectService
-
-
Method Details
-
getOrCreateProject
Resolves the project by name within the scope, creating it stamped with the scope's tenant when it does not exist. The lookup is scoped so two tenants can each own a project of the same name; a new row is stamped from the scope so it lands in the caller's tenant.- Parameters:
name- the project namescope- the tenant scope of the caller- Returns:
- the existing or newly created project
-
listProjects
-
getProject
-
deleteProject
Deletes a project visible under the scope; FKs cascade to its experiments, runs, items, and evals.
-