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 UserNotificationFeedEntrydoInterpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected StringgetBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected Stringprotected StringgetLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected StringgetTitle(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) protected booleanbooleanisDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) booleanprotected voidsetActionable(boolean actionable) protected voidsetOpenDialog(boolean openDialog) protected voidsetPortletId(String portletId) protected voidsetSelector(String selector) Methods 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
-
BaseUserNotificationHandler
public BaseUserNotificationHandler()
-
-
Method Details
-
getPortletId
- Specified by:
getPortletIdin interfaceUserNotificationHandler
-
getSelector
- Specified by:
getSelectorin interfaceUserNotificationHandler
-
interpret
public UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws PortalException - Specified by:
interpretin interfaceUserNotificationHandler- Throws:
PortalException
-
isDeliver
public boolean isDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) throws PortalException - Specified by:
isDeliverin interfaceUserNotificationHandler- Throws:
PortalException
-
isOpenDialog
public boolean isOpenDialog()- Specified by:
isOpenDialogin 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
-