Package io.meeds.mcp.server.tool
Class SpaceMcpTool
java.lang.Object
io.meeds.mcp.server.tool.SpaceMcpTool
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin
@Service
public class SpaceMcpTool
extends Object
implements io.meeds.mcp.server.plugin.McpToolPlugin
-
Field Summary
Fields inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
DEFAULT_LIMIT, DEFAULT_OFFSET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongcountMySpaces(String query) createSpace(long spaceTemplateId, String name, String description, Visibility visibility, Registration registration, List<String> usernamesToInvite) getAllSpaces(String query, Integer offset, Integer limit) getManagedSpaces(String query, Integer offset, Integer limit) getMySpaces(String query, Integer offset, Integer limit) getSpaceById(long spaceId) voidinviteUsersToSpace(long spaceId, List<String> usernamesToInvite) listUsersOfSpaceByRole(long spaceId, SpaceRole spaceRole, Integer offset, Integer limit) voidremoveUserRoleInSpace(long spaceId, String username, SpaceRole spaceRole) voidremoveUsersFromSpace(long spaceId, List<String> usernamesToRemove) voidsetUserRoleInSpace(long spaceId, String username, SpaceRole spaceRole) updateSpaceSettings(long spaceId, String name, String description, Visibility visibility, Registration registration) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.meeds.mcp.server.plugin.McpToolPlugin
getCurrentUserAclIdentity, getCurrentUserLocale, getCurrentUserLocale, getCurrentUserName, getLocale
-
Constructor Details
-
SpaceMcpTool
public SpaceMcpTool()
-
-
Method Details
-
createSpace
public SpaceModel createSpace(long spaceTemplateId, String name, String description, Visibility visibility, Registration registration, List<String> usernamesToInvite) throws org.exoplatform.social.core.space.SpaceException - Throws:
org.exoplatform.social.core.space.SpaceException
-
updateSpaceSettings
public SpaceModel updateSpaceSettings(long spaceId, String name, String description, Visibility visibility, Registration registration) -
getAllSpaces
-
getMySpaces
-
countMySpaces
-
getManagedSpaces
-
getSpaceById
-
listUsersOfSpaceByRole
-
inviteUsersToSpace
-
removeUsersFromSpace
-
setUserRoleInSpace
-
removeUserRoleInSpace
-