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.pickitem.shared.ItemBean> taggedPeople)
convert the mentioned people in HTML anchor and also Encode the params Base64
|
protected static String |
escapeHtmlAndTransformUrl(String html)
Escape an html string.
|
protected static List<String> |
getHashTags(String postText)
utility method that extract the hashtags from a text
|
static ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
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.pickitem.shared.ItemBean> getOrganizationUsers(String scope, String currUser, boolean withinPortal)
session - the Asl SessionwithinPortal - true when is on Liferay portalprotected static List<String> getHashTags(String postText)
postText - protected 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.pickitem.shared.ItemBean> taggedPeople)
escapedFeedText - taggedPeople - Copyright © 2014. All Rights Reserved.