public class MicroblogsUtil
extends java.lang.Object
Constructor and Description |
---|
MicroblogsUtil() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.String> |
getHashtags(java.lang.String content) |
static com.liferay.portal.kernel.json.JSONArray |
getJSONRecipients(long userId,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static int |
getNotificationType(MicroblogsEntry microblogsEntry,
long userId,
int deliveryType) |
static java.lang.String |
getProcessedContent(MicroblogsEntry microblogsEntry,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static java.lang.String |
getProcessedContent(java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static long |
getRootMicroblogsEntryId(MicroblogsEntry microblogsEntry) |
static long |
getRootMicroblogsUserId(MicroblogsEntry microblogsEntry) |
static java.util.List<java.lang.String> |
getScreenNames(java.lang.String content) |
static java.util.List<java.lang.Long> |
getSubscriberUserIds(MicroblogsEntry microblogsEntry) |
static boolean |
hasReplied(long parentMicroblogsEntryId,
long userId) |
static boolean |
isTaggedUser(long microblogsEntryId,
boolean checkParent,
long userId) |
protected static boolean |
isTaggedUser(MicroblogsEntry microblogsEntry,
long userId) |
protected static java.lang.String |
replaceHashtags(java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
protected static java.lang.String |
replaceUserTags(java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static java.util.List<java.lang.String> getHashtags(java.lang.String content)
public static com.liferay.portal.kernel.json.JSONArray getJSONRecipients(long userId, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getNotificationType(MicroblogsEntry microblogsEntry, long userId, int deliveryType) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getProcessedContent(MicroblogsEntry microblogsEntry, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getProcessedContent(java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long getRootMicroblogsEntryId(MicroblogsEntry microblogsEntry)
public static long getRootMicroblogsUserId(MicroblogsEntry microblogsEntry) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<java.lang.String> getScreenNames(java.lang.String content)
public static java.util.List<java.lang.Long> getSubscriberUserIds(MicroblogsEntry microblogsEntry)
public static boolean hasReplied(long parentMicroblogsEntryId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean isTaggedUser(long microblogsEntryId, boolean checkParent, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected static boolean isTaggedUser(MicroblogsEntry microblogsEntry, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected static java.lang.String replaceHashtags(java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
protected static java.lang.String replaceUserTags(java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException