public class SocialActivityUtil extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ACTIVITY_TYPE_ANSWER |
static int |
ACTIVITY_TYPE_CALENDAR |
static int |
ACTIVITY_TYPE_CONTENT |
static int |
ACTIVITY_TYPE_DEFAULT |
static int |
ACTIVITY_TYPE_DOC |
static int |
ACTIVITY_TYPE_FORUM |
static int |
ACTIVITY_TYPE_LINK |
static int |
ACTIVITY_TYPE_NORMAL |
static int |
ACTIVITY_TYPE_PEOPLE |
static int |
ACTIVITY_TYPE_RELATIONSHIP |
static int |
ACTIVITY_TYPE_SPACE |
static int |
ACTIVITY_TYPE_WIKI |
Constructor and Description |
---|
SocialActivityUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
convertToThumbnail(String url) |
static String |
getActivityStreamHeader(android.content.Context context,
long postedTime) |
static String |
getActivityTypeAnswer(String userName,
SocialActivityInfo activityInfo,
android.content.res.Resources resource,
String fontColor,
boolean isHomeStyle) |
static String |
getActivityTypeCalendar(String userName,
SocialActivityInfo activityInfo,
android.content.res.Resources resource,
String fontColor,
boolean isHomeStyle) |
static String |
getActivityTypeForum(String userName,
SocialActivityInfo activityInfo,
android.content.res.Resources resource,
String fontColor,
boolean isHomeStyle) |
static int |
getActivityTypeId(String type) |
static String |
getActivityTypeLink(String userName,
SocialActivityInfo activityInfo,
String fontColor,
boolean isHomeStyle) |
static String |
getActivityTypeWiki(String userName,
SocialActivityInfo activityInfo,
android.content.res.Resources resource,
String fontColor,
boolean isHomeStyle) |
static String |
getComment(android.content.Context context,
LinkedList<SocialLikeInfo> socialLikeList) |
static String |
getCommentString(android.content.Context context,
LinkedList<SocialLikeInfo> socialLikeList) |
static String |
getDomain() |
static String |
getHeader(android.content.Context context,
long postedTime) |
static String |
getHeaderWithSpaceInfo(String userName,
SocialActivityInfo activityInfo,
android.content.res.Resources resource,
String fontColor,
boolean isHomeStyle)
Returns an HTML string with the user's fullname and the space's name.
|
static String |
getLinkActivityInfo(SocialActivityInfo activityInfo,
String fontColor,
android.content.res.Resources resources) |
static float |
getPlatformVersion() |
static String |
getPostedTimeString(android.content.Context context,
long postedTime) |
static String |
getShortActivityContent(SocialActivityInfo info) |
static void |
setCalendarContent(android.widget.TextView textView,
SocialActivityInfo activityInfo,
android.content.res.Resources resource) |
static void |
setImageType(int type,
android.widget.ImageView imageView) |
static void |
setTextLinkify(android.widget.TextView textView) |
public static final int ACTIVITY_TYPE_DEFAULT
public static final int ACTIVITY_TYPE_FORUM
public static final int ACTIVITY_TYPE_WIKI
public static final int ACTIVITY_TYPE_SPACE
public static final int ACTIVITY_TYPE_DOC
public static final int ACTIVITY_TYPE_NORMAL
public static final int ACTIVITY_TYPE_LINK
public static final int ACTIVITY_TYPE_RELATIONSHIP
public static final int ACTIVITY_TYPE_PEOPLE
public static final int ACTIVITY_TYPE_CONTENT
public static final int ACTIVITY_TYPE_ANSWER
public static final int ACTIVITY_TYPE_CALENDAR
public static String getActivityStreamHeader(android.content.Context context, long postedTime)
public static String getComment(android.content.Context context, LinkedList<SocialLikeInfo> socialLikeList)
public static String getCommentString(android.content.Context context, LinkedList<SocialLikeInfo> socialLikeList)
public static String getPostedTimeString(android.content.Context context, long postedTime)
public static String getHeader(android.content.Context context, long postedTime)
public static String getDomain()
public static int getActivityTypeId(String type)
public static void setImageType(int type, android.widget.ImageView imageView)
public static void setTextLinkify(android.widget.TextView textView)
public static String getShortActivityContent(SocialActivityInfo info)
public static String getActivityTypeForum(String userName, SocialActivityInfo activityInfo, android.content.res.Resources resource, String fontColor, boolean isHomeStyle)
public static float getPlatformVersion()
public static String getActivityTypeWiki(String userName, SocialActivityInfo activityInfo, android.content.res.Resources resource, String fontColor, boolean isHomeStyle)
public static String getActivityTypeAnswer(String userName, SocialActivityInfo activityInfo, android.content.res.Resources resource, String fontColor, boolean isHomeStyle)
public static String getActivityTypeCalendar(String userName, SocialActivityInfo activityInfo, android.content.res.Resources resource, String fontColor, boolean isHomeStyle)
public static String getLinkActivityInfo(SocialActivityInfo activityInfo, String fontColor, android.content.res.Resources resources)
public static String getActivityTypeLink(String userName, SocialActivityInfo activityInfo, String fontColor, boolean isHomeStyle)
public static String getHeaderWithSpaceInfo(String userName, SocialActivityInfo activityInfo, android.content.res.Resources resource, String fontColor, boolean isHomeStyle)
userName
- activityInfo
- the activity for which we retrieve the headerresource
- fontColor
- isHomeStyle
- if this header is displayed on the home ticker or notpublic static void setCalendarContent(android.widget.TextView textView, SocialActivityInfo activityInfo, android.content.res.Resources resource)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.