public abstract class BaseSocialActivityInterpreter extends Object implements SocialActivityInterpreter
Constructor and Description |
---|
BaseSocialActivityInterpreter() |
Modifier and Type | Method and Description |
---|---|
protected String |
addNoSuchEntryRedirect(String url,
String className,
long classPK,
ServiceContext serviceContext) |
protected String |
buildLink(String link,
String text) |
protected String |
cleanContent(String content)
Deprecated.
As of Wilberforce (7.0.x)
|
protected SocialActivityFeedEntry |
doInterpret(SocialActivity activity,
ServiceContext serviceContext) |
protected SocialActivityFeedEntry |
doInterpret(SocialActivitySet activitySet,
ServiceContext serviceContext) |
protected SocialActivityFeedEntry |
doInterpret(SocialActivity activity,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x)
|
protected long |
getActivitySetId(long activityId) |
protected String |
getBody(SocialActivity activity,
ServiceContext serviceContext) |
protected String |
getEntryTitle(SocialActivity activity,
ServiceContext serviceContext) |
protected String |
getGroupName(long groupId,
ServiceContext serviceContext) |
protected String |
getGroupName(long groupId,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getGroupName(long, ServiceContext) |
protected String |
getJSONValue(String json,
String key) |
protected String |
getJSONValue(String json,
String key,
String defaultValue) |
protected String |
getLink(SocialActivity activity,
ServiceContext serviceContext) |
protected String |
getPath(SocialActivity activity,
ServiceContext serviceContext) |
protected abstract ResourceBundleLoader |
getResourceBundleLoader() |
String |
getSelector() |
protected String |
getTitle(SocialActivity activity,
ServiceContext serviceContext) |
protected Object[] |
getTitleArguments(String groupName,
SocialActivity activity,
String link,
String title,
ServiceContext serviceContext) |
protected String |
getTitlePattern(String groupName,
SocialActivity activity) |
protected String |
getUserName(long userId,
ServiceContext serviceContext) |
protected String |
getUserName(long userId,
ThemeDisplay themeDisplay)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getUserName(long, ServiceContext) |
protected String |
getValue(String json,
String key,
String defaultValue)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getJSONValue(String, String, String) |
protected String |
getViewEntryInTrashURL(String className,
long classPK,
ServiceContext serviceContext) |
protected String |
getViewEntryURL(String className,
long classPK,
ServiceContext serviceContext) |
boolean |
hasPermission(PermissionChecker permissionChecker,
SocialActivity activity,
String actionId,
ServiceContext serviceContext) |
protected boolean |
hasPermissions(PermissionChecker permissionChecker,
SocialActivity activity,
String actionId,
ServiceContext serviceContext) |
SocialActivityFeedEntry |
interpret(SocialActivity activity,
ServiceContext serviceContext) |
SocialActivityFeedEntry |
interpret(SocialActivitySet activitySet,
ServiceContext serviceContext) |
void |
updateActivitySet(long activityId) |
protected String |
wrapLink(String link,
String title) |
protected String |
wrapLink(String link,
String key,
ServiceContext serviceContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getClassNames
public String getSelector()
getSelector
in interface SocialActivityInterpreter
public boolean hasPermission(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext) throws Exception
hasPermission
in interface SocialActivityInterpreter
Exception
public SocialActivityFeedEntry interpret(SocialActivity activity, ServiceContext serviceContext)
interpret
in interface SocialActivityInterpreter
public SocialActivityFeedEntry interpret(SocialActivitySet activitySet, ServiceContext serviceContext)
interpret
in interface SocialActivityInterpreter
public void updateActivitySet(long activityId) throws PortalException
updateActivitySet
in interface SocialActivityInterpreter
PortalException
protected String addNoSuchEntryRedirect(String url, String className, long classPK, ServiceContext serviceContext) throws Exception
Exception
protected String buildLink(String link, String text)
@Deprecated protected String cleanContent(String content)
protected SocialActivityFeedEntry doInterpret(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
@Deprecated protected SocialActivityFeedEntry doInterpret(SocialActivity activity, ThemeDisplay themeDisplay) throws Exception
Exception
protected SocialActivityFeedEntry doInterpret(SocialActivitySet activitySet, ServiceContext serviceContext) throws Exception
Exception
protected long getActivitySetId(long activityId)
protected String getBody(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
protected String getEntryTitle(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
protected String getGroupName(long groupId, ServiceContext serviceContext)
@Deprecated protected String getGroupName(long groupId, ThemeDisplay themeDisplay)
getGroupName(long, ServiceContext)
protected String getJSONValue(String json, String key)
protected String getJSONValue(String json, String key, String defaultValue)
protected String getLink(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
protected String getPath(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
protected abstract ResourceBundleLoader getResourceBundleLoader()
protected String getTitle(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exception
protected Object[] getTitleArguments(String groupName, SocialActivity activity, String link, String title, ServiceContext serviceContext) throws Exception
Exception
protected String getTitlePattern(String groupName, SocialActivity activity) throws Exception
Exception
protected String getUserName(long userId, ServiceContext serviceContext)
@Deprecated protected String getUserName(long userId, ThemeDisplay themeDisplay)
getUserName(long, ServiceContext)
@Deprecated protected String getValue(String json, String key, String defaultValue)
getJSONValue(String, String, String)
protected String getViewEntryInTrashURL(String className, long classPK, ServiceContext serviceContext) throws Exception
Exception
protected String getViewEntryURL(String className, long classPK, ServiceContext serviceContext) throws Exception
Exception
protected boolean hasPermissions(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext) throws Exception
Exception
protected String wrapLink(String link, String title)
protected String wrapLink(String link, String key, ServiceContext serviceContext)