com.liferay.portal.kernel.notifications
Class BaseUserNotificationHandler

java.lang.Object
  extended by com.liferay.portal.kernel.notifications.BaseUserNotificationHandler
All Implemented Interfaces:
UserNotificationHandler

public abstract class BaseUserNotificationHandler
extends java.lang.Object
implements UserNotificationHandler

Author:
Jonathan Lee

Constructor Summary
BaseUserNotificationHandler()
           
 
Method Summary
protected  UserNotificationFeedEntry doInterpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
protected  java.lang.String getBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
protected  java.lang.String getLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
 java.lang.String getPortletId()
           
 java.lang.String getSelector()
           
 UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
 boolean isDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext)
           
protected  void setPortletId(java.lang.String portletId)
           
protected  void setSelector(java.lang.String selector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseUserNotificationHandler

public BaseUserNotificationHandler()
Method Detail

getPortletId

public java.lang.String getPortletId()
Specified by:
getPortletId in interface UserNotificationHandler

getSelector

public java.lang.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 java.lang.Exception
Throws:
java.lang.Exception

getBody

protected java.lang.String getBody(UserNotificationEvent userNotificationEvent,
                                   ServiceContext serviceContext)
                            throws java.lang.Exception
Throws:
java.lang.Exception

getLink

protected java.lang.String getLink(UserNotificationEvent userNotificationEvent,
                                   ServiceContext serviceContext)
                            throws java.lang.Exception
Throws:
java.lang.Exception

setPortletId

protected void setPortletId(java.lang.String portletId)

setSelector

protected void setSelector(java.lang.String selector)