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 String
getBody
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
getBodyContent
(JSONObject jsonObject) protected String
getFormattedMessage
(JSONObject jsonObject, ServiceContext serviceContext, String message, String typeName) protected String
getLink
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
getTitle
(JSONObject jsonObject, AssetRenderer<?> assetRenderer, UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
getTitle
(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, setSelector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getBody
in 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:
getLink
in 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:
getTitle
in classBaseUserNotificationHandler
- Throws:
Exception
-