public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
convertMentionPeopleAnchorHTML(String escapedFeedText,
ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> taggedPeople)
convert the mentioned people in HTML anchor and also Encode the params Base64
|
protected static String |
escapeHtmlAndTransformUrl(String html)
Escape an html string.
|
static ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> |
getOrganizationUsers(String scope,
String currUser,
boolean withinPortal) |
protected static String |
transformUrls(String feedText)
utility method that convert a url ina text in a clickable url by the browser
and if the user has just pasted a link, converts the link in: shared a link
|
public static ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> getOrganizationUsers(String scope, String currUser, boolean withinPortal)
session - the Asl SessionwithinPortal - true when is on Liferay portalprotected static String escapeHtmlAndTransformUrl(String html)
html - the html string to escapeprotected static String transformUrls(String feedText)
feedText - protected static String convertMentionPeopleAnchorHTML(String escapedFeedText, ArrayList<org.gcube.portlets.widgets.pickuser.shared.PickingUser> taggedPeople)
escapedFeedText - taggedPeople - Copyright © 2014. All Rights Reserved.