Class BaseModelUserNotificationHandler
Object
com.liferay.portal.kernel.notifications.BaseUserNotificationHandler
com.liferay.portal.kernel.notifications.BaseModelUserNotificationHandler
- All Implemented Interfaces:
UserNotificationHandler
@ProviderType
public abstract class BaseModelUserNotificationHandler
extends BaseUserNotificationHandler
- Author:
- Brian Wing Shun Chan, Sergio González
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AssetRenderer<?>getAssetRenderer(JSONObject jsonObject) protected AssetRenderer<?>getAssetRenderer(String className, long classPK) protected StringgetBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected StringgetBodyContent(JSONObject jsonObject) protected StringgetFormattedMessage(JSONObject jsonObject, ServiceContext serviceContext, String message, String typeName) protected StringgetLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected StringgetTitle(JSONObject jsonObject, AssetRenderer<?> assetRenderer, UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected StringgetTitle(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) Methods inherited from class com.liferay.portal.kernel.notifications.BaseUserNotificationHandler
doInterpret, getBodyTemplate, getPortletId, getSelector, interpret, isActionable, isDeliver, isOpenDialog, setActionable, setOpenDialog, setPortletId, setSelectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.liferay.portal.kernel.notifications.UserNotificationHandler
isApplicable
-
Constructor Details
-
BaseModelUserNotificationHandler
public BaseModelUserNotificationHandler()
-
-
Method Details
-
getAssetRenderer
-
getAssetRenderer
-
getBody
protected String getBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Overrides:
getBodyin classBaseUserNotificationHandler- Throws:
Exception
-
getBodyContent
-
getFormattedMessage
protected String getFormattedMessage(JSONObject jsonObject, ServiceContext serviceContext, String message, String typeName) -
getLink
protected String getLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Overrides:
getLinkin classBaseUserNotificationHandler- Throws:
Exception
-
getTitle
protected String getTitle(JSONObject jsonObject, AssetRenderer<?> assetRenderer, UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getTitle
protected String getTitle(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Overrides:
getTitlein classBaseUserNotificationHandler- Throws:
Exception
-