Class TaskSpaceScopeResolver
java.lang.Object
io.meeds.task.mcp.TaskSpaceScopeResolver
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.SpaceScopeResolver
@Service("taskSpaceScopeResolver")
@Profile("mcp-server")
public class TaskSpaceScopeResolver
extends Object
implements io.meeds.mcp.server.plugin.SpaceScopeResolver
Tells which space a task belongs to, for the space scope of the task tools:
the space of its project, when every manager of the project is a role of
one and the same space group (
<role>:/spaces/<name>). A personal
task (no status or no project), a project with any user manager, any group
outside the spaces or a second space among its managers, a space that no
longer exists and a missing task belong to no space. Participants are not
considered. Read as the system, for the space scope decision only.-
Field Details
-
NAME
-
-
Constructor Details
-
TaskSpaceScopeResolver
public TaskSpaceScopeResolver()
-
-
Method Details
-
getName
-
spaceOf
- Specified by:
spaceOfin interfaceio.meeds.mcp.server.plugin.SpaceScopeResolver- Parameters:
objectId- the task id- Returns:
- the id of the space of the task's project, or null for a personal task, a project that isn't managed through exactly one space, a missing task or space, an id that isn't one, or a lookup that fails
-
spaceOfProject
- Parameters:
project- a task project- Returns:
- the id of the space whose group all its managers are roles of, else null: any manager that is a user, a group outside the spaces or a role of another group gives none
-