Class BaseUserNotificationHandler
Object
com.liferay.portal.kernel.notifications.BaseUserNotificationHandler
- All Implemented Interfaces:
UserNotificationHandler
- Direct Known Subclasses:
BaseModelUserNotificationHandler
- Author:
- Jonathan Lee
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected UserNotificationFeedEntry
doInterpret
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
getBody
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
protected String
getLink
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected String
getTitle
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) interpret
(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected boolean
boolean
isDeliver
(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) boolean
protected void
setActionable
(boolean actionable) protected void
setOpenDialog
(boolean openDialog) protected void
setPortletId
(String portletId) protected void
setSelector
(String selector) 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
-
BaseUserNotificationHandler
public BaseUserNotificationHandler()
-
-
Method Details
-
getPortletId
- Specified by:
getPortletId
in interfaceUserNotificationHandler
-
getSelector
- Specified by:
getSelector
in interfaceUserNotificationHandler
-
interpret
public UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws PortalException - Specified by:
interpret
in interfaceUserNotificationHandler
- Throws:
PortalException
-
isDeliver
public boolean isDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) throws PortalException - Specified by:
isDeliver
in interfaceUserNotificationHandler
- Throws:
PortalException
-
isOpenDialog
public boolean isOpenDialog()- Specified by:
isOpenDialog
in interfaceUserNotificationHandler
-
doInterpret
protected UserNotificationFeedEntry doInterpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getBody
protected String getBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getBodyTemplate
- Throws:
Exception
-
getLink
protected String getLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Throws:
Exception
-
getTitle
protected String getTitle(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception - Throws:
Exception
-
isActionable
protected boolean isActionable() -
setActionable
protected void setActionable(boolean actionable) -
setOpenDialog
protected void setOpenDialog(boolean openDialog) -
setPortletId
-
setSelector
-