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