public abstract class BaseUserNotificationHandler extends Object implements UserNotificationHandler
Constructor and Description |
---|
BaseUserNotificationHandler() |
Modifier and Type | Method and Description |
---|---|
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isApplicable
public String getPortletId()
getPortletId
in interface UserNotificationHandler
public String getSelector()
getSelector
in interface UserNotificationHandler
public UserNotificationFeedEntry interpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws PortalException
interpret
in interface UserNotificationHandler
PortalException
public boolean isDeliver(long userId, long classNameId, int notificationType, int deliveryType, ServiceContext serviceContext) throws PortalException
isDeliver
in interface UserNotificationHandler
PortalException
public boolean isOpenDialog()
isOpenDialog
in interface UserNotificationHandler
protected UserNotificationFeedEntry doInterpret(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception
Exception
protected String getBody(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception
Exception
protected String getBodyTemplate() throws Exception
Exception
protected String getLink(UserNotificationEvent userNotificationEvent, ServiceContext serviceContext) throws Exception
Exception
protected boolean isActionable()
protected void setActionable(boolean actionable)
protected void setOpenDialog(boolean openDialog)
protected void setPortletId(String portletId)
protected void setSelector(String selector)