public abstract class BaseSocialActivityInterpreter extends Object implements SocialActivityInterpreter
| Constructor and Description |
|---|
BaseSocialActivityInterpreter() |
| Modifier and Type | Method and Description |
|---|---|
protected ResourceBundleLoader |
acquireResourceBundleLoader() |
protected String |
addNoSuchEntryRedirect(String url,
String className,
long classPK,
ServiceContext serviceContext) |
protected String |
buildLink(String link,
String text) |
protected SocialActivityFeedEntry |
doInterpret(SocialActivity activity,
ServiceContext serviceContext) |
protected SocialActivityFeedEntry |
doInterpret(SocialActivitySet activitySet,
ServiceContext serviceContext) |
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 |
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) |
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 |
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, waitgetClassNamespublic String getSelector()
getSelector in interface SocialActivityInterpreterpublic boolean hasPermission(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext) throws Exception
hasPermission in interface SocialActivityInterpreterExceptionpublic SocialActivityFeedEntry interpret(SocialActivity activity, ServiceContext serviceContext)
interpret in interface SocialActivityInterpreterpublic SocialActivityFeedEntry interpret(SocialActivitySet activitySet, ServiceContext serviceContext)
interpret in interface SocialActivityInterpreterpublic void updateActivitySet(long activityId)
throws PortalException
updateActivitySet in interface SocialActivityInterpreterPortalExceptionprotected ResourceBundleLoader acquireResourceBundleLoader()
protected String addNoSuchEntryRedirect(String url,
String className,
long classPK,
ServiceContext serviceContext)
throws Exception
Exceptionprotected String buildLink(String link,
String text)
protected SocialActivityFeedEntry doInterpret(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exceptionprotected SocialActivityFeedEntry doInterpret(SocialActivitySet activitySet, ServiceContext serviceContext) throws Exception
Exceptionprotected long getActivitySetId(long activityId)
protected String getBody(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exceptionprotected String getEntryTitle(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exceptionprotected String getGroupName(long groupId,
ServiceContext 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
Exceptionprotected String getPath(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exceptionprotected String getTitle(SocialActivity activity, ServiceContext serviceContext) throws Exception
Exceptionprotected Object[] getTitleArguments(String groupName,
SocialActivity activity,
String link,
String title,
ServiceContext serviceContext)
throws Exception
Exceptionprotected String getTitlePattern(String groupName,
SocialActivity activity)
throws Exception
Exceptionprotected String getUserName(long userId,
ServiceContext serviceContext)
protected String getViewEntryInTrashURL(String className,
long classPK,
ServiceContext serviceContext)
throws Exception
Exceptionprotected String getViewEntryURL(String className,
long classPK,
ServiceContext serviceContext)
throws Exception
Exceptionprotected boolean hasPermissions(PermissionChecker permissionChecker, SocialActivity activity, String actionId, ServiceContext serviceContext) throws Exception
Exceptionprotected String wrapLink(String link,
String title)
protected String wrapLink(String link,
String key,
ServiceContext serviceContext)