Package io.meeds.mcp.server.tool.util
Class UserToolUtils
java.lang.Object
io.meeds.mcp.server.tool.util.UserToolUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<ExperienceModel> buildExperiences(org.exoplatform.social.core.identity.model.Profile profile) Converts the rawProfile.EXPERIENCESproperty (aList<Map<String, Object>>where dates are stored as ISO-8601 strings,idas the DB sequence id in String form andisCurrentas a derived Boolean) into a list ofExperienceModel.static StringgetDefaultSite(org.exoplatform.portal.config.UserPortalConfigService portalConfigService, String username) static List<org.exoplatform.social.core.identity.model.Identity> getUserIdentities(org.exoplatform.social.core.manager.IdentityManager identityManager, List<String> usersToInvite) static UserModeltoUserModel(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, String username, String viewerUsername, Locale userLocale, boolean includeDisabled)
-
Method Details
-
toUserModel
public static UserModel toUserModel(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, String username, String viewerUsername, Locale userLocale, boolean includeDisabled) -
getUserIdentities
-
getDefaultSite
-
buildExperiences
public static List<ExperienceModel> buildExperiences(org.exoplatform.social.core.identity.model.Profile profile) Converts the rawProfile.EXPERIENCESproperty (aList<Map<String, Object>>where dates are stored as ISO-8601 strings,idas the DB sequence id in String form andisCurrentas a derived Boolean) into a list ofExperienceModel.
-