com.liferay.portal.kernel.notifications
Class BaseUserNotificationHandler
java.lang.Object
com.liferay.portal.kernel.notifications.BaseUserNotificationHandler
- All Implemented Interfaces:
- UserNotificationHandler
public abstract class BaseUserNotificationHandler
- extends Object
- implements UserNotificationHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseUserNotificationHandler
public BaseUserNotificationHandler()
getPortletId
public String getPortletId()
- Specified by:
getPortletId
in interface UserNotificationHandler
getSelector
public String getSelector()
- Specified by:
getSelector
in interface UserNotificationHandler
interpret
public UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent,
ServiceContext serviceContext)
throws PortalException
- Specified by:
interpret
in interface UserNotificationHandler
- Throws:
PortalException
isDeliver
public boolean isDeliver(long userId,
long classNameId,
int notificationType,
int deliveryType,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Specified by:
isDeliver
in interface UserNotificationHandler
- Throws:
PortalException
SystemException
doInterpret
protected UserNotificationFeedEntry doInterpret(UserNotificationEvent userNotificationEvent,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
getBody
protected String getBody(UserNotificationEvent userNotificationEvent,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
getLink
protected String getLink(UserNotificationEvent userNotificationEvent,
ServiceContext serviceContext)
throws Exception
- Throws:
Exception
setPortletId
protected void setPortletId(String portletId)
setSelector
protected void setSelector(String selector)