public class Utils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
IPV4_REGEX
Deprecated.
|
static String |
IPV6_REGEX
Deprecated.
|
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
convertFileNameAnchorHTML(String url) |
static String |
convertHashtagsAnchorHTML(String escapedFeedText,
List<String> hashtags)
Deprecated.
|
static String |
convertMentionPeopleAnchorHTML(String escapedFeedText,
ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> taggedPeople,
javax.servlet.http.HttpServletRequest request)
Deprecated.
|
static String |
createDescriptionFromContent(String link)
generate the description parsing the content (Best Guess)
|
static String |
escapeHtml(String html)
Deprecated.
|
static String |
escapeHtmlAndTransformUrl(String html)
Deprecated.
|
static String |
extractURL(String feedText)
Deprecated.
|
static ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> |
getDisplayableItemBeans(String scope,
String currUser,
boolean withinPortal) |
static List<String> |
getHashTags(String postText)
Deprecated.
|
static String |
getHttpToken(String originalItem)
Deprecated.
|
static String |
removeHTMLFromText(String text)
Deprecated.
|
static String |
transformUrls(String feedText)
Deprecated.
|
@Deprecated public static final String IPV4_REGEX
@Deprecated public static final String IPV6_REGEX
public static String convertFileNameAnchorHTML(String url)
preview
- public static ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> getDisplayableItemBeans(String scope, String currUser, boolean withinPortal)
session
- the Asl SessionwithinPortal
- true when is on Liferay portal@Deprecated public static List<String> getHashTags(String postText)
postText
- @Deprecated public static String extractURL(String feedText)
feedText
- @Deprecated public static String escapeHtmlAndTransformUrl(String html)
html
- the html string to escape@Deprecated public static String escapeHtml(String html)
html
- the html string to escape@Deprecated public static String transformUrls(String feedText)
feedText
- @Deprecated public static String getHttpToken(String originalItem)
item
- a text token@Deprecated public static String convertMentionPeopleAnchorHTML(String escapedFeedText, ArrayList<org.gcube.portlets.widgets.pickitem.shared.ItemBean> taggedPeople, javax.servlet.http.HttpServletRequest request)
escapedFeedText
- taggedPeople
- @Deprecated public static String convertHashtagsAnchorHTML(String escapedFeedText, List<String> hashtags)
escapedFeedText
- hashtags
- public static String createDescriptionFromContent(String link)
link
- the link to check@Deprecated public static String removeHTMLFromText(String text)
text
- Copyright © 2019. All Rights Reserved.