Class ProjectSpaceScopeResolver
java.lang.Object
io.meeds.task.mcp.ProjectSpaceScopeResolver
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.SpaceScopeResolver
@Service("projectSpaceScopeResolver")
@Profile("mcp-server")
public class ProjectSpaceScopeResolver
extends Object
implements io.meeds.mcp.server.plugin.SpaceScopeResolver
Tells which space a task project belongs to, for the space scope of the
task tools that reach a project by its id: the space whose group all the
managers of the project are roles of, as
TaskSpaceScopeResolver
reads it for the tasks of that project. A project with no space, a missing
project, an id that isn't one and any failure belong to no space. Read as
the system, for the space scope decision only.-
Field Details
-
NAME
-
-
Constructor Details
-
ProjectSpaceScopeResolver
public ProjectSpaceScopeResolver()
-
-
Method Details
-
getName
-
spaceOf
- Specified by:
spaceOfin interfaceio.meeds.mcp.server.plugin.SpaceScopeResolver- Parameters:
objectId- the project id- Returns:
- the id of the space of the project, or null for a project that isn't managed through exactly one space, a missing project or space, an id that isn't one, or a lookup that fails
-