Liferay 7.0-ce-b4

com.liferay.portal.kernel.notifications
Class BaseUserNotificationHandler

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

public abstract class BaseUserNotificationHandler
extends Object
implements UserNotificationHandler


Constructor Summary
BaseUserNotificationHandler()
           
 
Method Summary
protected  UserNotificationFeedEntry doInterpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
protected  String getBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
protected  String getBodyTemplate()
           
protected  String getLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
 String getPortletId()
           
 String getSelector()
           
 UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext)
           
protected  boolean isActionable()
           
 boolean isDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext)
           
 boolean isOpenDialog()
           
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
 

Constructor Detail

BaseUserNotificationHandler

public BaseUserNotificationHandler()
Method Detail

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
Specified by:
isDeliver in interface UserNotificationHandler
Throws:
PortalException

isOpenDialog

public boolean isOpenDialog()
Specified by:
isOpenDialog in interface UserNotificationHandler

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

protected String getBodyTemplate()
                          throws Exception
Throws:
Exception

getLink

protected String getLink(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

protected void setPortletId(String portletId)

setSelector

protected void setSelector(String selector)

Liferay 7.0-ce-b4