public class UserProfileHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CSS_ICON_PREFIX |
static DateTimeFormatter |
DATE_TIME_FORMATTER |
static String |
DEFAULT_PROTOCOL |
static String |
KEY |
static String |
OTHER_KEY |
static String |
URL_KEY |
static String |
VALUE |
| Constructor and Description |
|---|
UserProfileHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,String> |
escapeExperience(Map<String,String> experience)
Escape HTML entities in the properties of the given experience
|
static Map<String,Object> |
getDisplayProfileInfo(org.exoplatform.social.core.identity.model.Profile currentProfile) |
static String |
getIconCss(String key) |
static String |
getLabel(org.exoplatform.webui.application.WebuiRequestContext context,
String key) |
static List<Map<String,String>> |
getMultiValues(org.exoplatform.social.core.identity.model.Profile currentProfile,
String key) |
static List<Map<String,String>> |
getSortedExperiences(org.exoplatform.social.core.identity.model.Profile currentProfile)
Convert profile experiences as a list of maps, with current experience set as the first item in the list
|
static List<String> |
getURLValues(org.exoplatform.social.core.identity.model.Profile currentProfile) |
static boolean |
isExistingEmail(String email)
Checks if input email is existing already or not.
|
static boolean |
isGender(String key) |
static boolean |
isIMs(String key) |
static boolean |
isString(Object s) |
static boolean |
isURL(String key) |
static String |
toAbsoluteURL(String url) |
public static final String CSS_ICON_PREFIX
public static final String KEY
public static final String VALUE
public static final String URL_KEY
public static final String OTHER_KEY
public static final String DEFAULT_PROTOCOL
public static final DateTimeFormatter DATE_TIME_FORMATTER
public static Map<String,Object> getDisplayProfileInfo(org.exoplatform.social.core.identity.model.Profile currentProfile)
currentProfile - public static List<Map<String,String>> getSortedExperiences(org.exoplatform.social.core.identity.model.Profile currentProfile)
currentProfile - The user profilepublic static List<Map<String,String>> getMultiValues(org.exoplatform.social.core.identity.model.Profile currentProfile, String key)
public static List<String> getURLValues(org.exoplatform.social.core.identity.model.Profile currentProfile)
public static boolean isString(Object s)
public static boolean isURL(String key)
public static boolean isIMs(String key)
public static boolean isGender(String key)
public static Map<String,String> escapeExperience(Map<String,String> experience)
experience - The experience to escapepublic static String getLabel(org.exoplatform.webui.application.WebuiRequestContext context, String key)
public static boolean isExistingEmail(String email)
email - Input email to check.Copyright © 2003–2020 eXo Platform SAS. All rights reserved.