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
  • Constructor Details

    • SpaceMcpTool

      public SpaceMcpTool()
  • Method Details

    • createSpace

      public SpaceModel createSpace(long spaceTemplateId, String name, String description, Visibility visibility, Registration registration, List<String> usernamesToInvite, Long parentSpaceId) 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

      public List<SpaceModel> getAllSpaces(String query, Integer offset, Integer limit)
    • getMySpaces

      public List<SpaceModel> getMySpaces(String query, Integer offset, Integer limit)
    • countMySpaces

      public long countMySpaces(String query)
    • getManagedSpaces

      public List<SpaceModel> getManagedSpaces(String query, Integer offset, Integer limit)
    • getSpaceById

      public SpaceModel getSpaceById(long spaceId)
    • listUsersOfSpaceByRole

      public List<UserModel> listUsersOfSpaceByRole(long spaceId, SpaceRole spaceRole, Integer offset, Integer limit)
    • inviteUsersToSpace

      public void inviteUsersToSpace(long spaceId, List<String> usernamesToInvite)
    • removeUsersFromSpace

      public void removeUsersFromSpace(long spaceId, List<String> usernamesToRemove)
    • setUserRoleInSpace

      public void setUserRoleInSpace(long spaceId, String username, SpaceRole spaceRole)
    • removeUserRoleInSpace

      public void removeUserRoleInSpace(long spaceId, String username, SpaceRole spaceRole)
    • setSpaceAvatar

      public SpaceModel setSpaceAvatar(long spaceId, String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • setSpaceBanner

      public SpaceModel setSpaceBanner(long spaceId, String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      IllegalAccessException
      org.exoplatform.commons.exception.ObjectNotFoundException
    • joinSpace

      public SpaceModel joinSpace(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • requestToJoinSpace

      public SpaceModel requestToJoinSpace(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • cancelJoinRequest

      public SpaceModel cancelJoinRequest(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • leaveSpace

      public SpaceModel leaveSpace(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • acceptSpaceInvitation

      public SpaceModel acceptSpaceInvitation(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • declineSpaceInvitation

      public SpaceModel declineSpaceInvitation(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • listSpaceJoinRequests

      public List<UserModel> listSpaceJoinRequests(long spaceId, Integer offset, Integer limit) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • acceptSpaceJoinRequest

      public void acceptSpaceJoinRequest(long spaceId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • declineSpaceJoinRequest

      public void declineSpaceJoinRequest(long spaceId, String username) throws org.exoplatform.commons.exception.ObjectNotFoundException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
    • getSpaceMembers

      public List<SpaceMemberModel> getSpaceMembers(long spaceId, Integer offset, Integer limit) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • listSubSpaces

      public List<SpaceModel> listSubSpaces(long parentSpaceId, Integer offset, Integer limit) throws org.exoplatform.commons.exception.ObjectNotFoundException, IllegalAccessException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      IllegalAccessException
    • deleteSpace

      public void deleteSpace(long spaceId) throws org.exoplatform.commons.exception.ObjectNotFoundException, org.exoplatform.social.core.space.SpaceException
      Throws:
      org.exoplatform.commons.exception.ObjectNotFoundException
      org.exoplatform.social.core.space.SpaceException