Package io.meeds.mcp.server.tool
Class UserMcpTool
java.lang.Object
io.meeds.mcp.server.tool.UserMcpTool
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.McpToolPlugin
@Service
public class UserMcpTool
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
ConstructorsConstructorDescriptionUserMcpTool(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.portal.config.UserACL userAcl, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.services.user.UserStateService userStateService) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptConnectionRequest(String username) addWorkExperience(String company, String position, String skills, String startDate, String endDate, Boolean isCurrent, String description) getConnectionStatus(String username) getUserByUsername(String username) getUserOnlineStatus(String username) longlistConnectionRequests(Integer offset, Integer limit) listConnectionSuggestions(Integer limit) listMyConnections(String query, Integer offset, Integer limit) listOnlineUsers(Integer offset, Integer limit) listSentConnectionRequests(Integer offset, Integer limit) listUserConnections(String username, Integer offset, Integer limit) voidrefuseConnectionRequest(String username) voidremoveConnection(String username) removeWorkExperience(String experienceId) searchUsers(String query, Integer offset, Integer limit) voidsendConnectionRequest(String username) setMyAvatar(String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) setMyBanner(String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) setProfileFieldVisibility(String fieldName, Boolean hidden) updateMyProfile(String aboutMe, String position, String company, String department, String team, String city, String country, String phones, String urls) updateWorkExperience(String experienceId, String company, String position, String skills, String startDate, String endDate, Boolean isCurrent, String description) 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
-
UserMcpTool
public UserMcpTool(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.profileproperty.ProfilePropertyService profilePropertyService, org.exoplatform.portal.config.UserACL userAcl, io.meeds.social.translation.service.TranslationService translationService, org.exoplatform.portal.config.UserPortalConfigService portalConfigService, org.exoplatform.social.core.manager.RelationshipManager relationshipManager, org.exoplatform.services.user.UserStateService userStateService)
-
-
Method Details
-
getMyUserInformation
-
getUserByUsername
-
searchUsers
-
getUsersCount
public long getUsersCount() -
setMyAvatar
public UserModel setMyAvatar(String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
setMyBanner
public UserModel setMyBanner(String imageUrl, String imageBase64, String attachmentObjectType, String attachmentObjectId) throws IllegalAccessException, org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
IllegalAccessExceptionorg.exoplatform.commons.exception.ObjectNotFoundException
-
listConnectionRequests
-
listSentConnectionRequests
-
listMyConnections
-
listUserConnections
-
getConnectionStatus
-
listConnectionSuggestions
-
sendConnectionRequest
-
acceptConnectionRequest
-
refuseConnectionRequest
-
removeConnection
-
updateMyProfile
-
addWorkExperience
-
updateWorkExperience
public List<ExperienceModel> updateWorkExperience(String experienceId, String company, String position, String skills, String startDate, String endDate, Boolean isCurrent, String description) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
removeWorkExperience
public List<ExperienceModel> removeWorkExperience(String experienceId) throws org.exoplatform.commons.exception.ObjectNotFoundException - Throws:
org.exoplatform.commons.exception.ObjectNotFoundException
-
setProfileFieldVisibility
-
getProfileFieldVisibility
-
getUserOnlineStatus
-
listOnlineUsers
-