public class UserNotificationManagerImpl
extends java.lang.Object
implements com.liferay.portal.kernel.notifications.UserNotificationManager
| Constructor and Description |
|---|
UserNotificationManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUserNotificationDefinition(java.lang.String portletId,
com.liferay.portal.kernel.notifications.UserNotificationDefinition userNotificationDefinition) |
void |
addUserNotificationHandler(com.liferay.portal.kernel.notifications.UserNotificationHandler userNotificationHandler)
Adds the use notification handler to the list of available handlers.
|
void |
deleteUserNotificationDefinitions(java.lang.String portletId) |
void |
deleteUserNotificationHandler(com.liferay.portal.kernel.notifications.UserNotificationHandler userNotificationHandler) |
com.liferay.portal.kernel.notifications.UserNotificationDefinition |
fetchUserNotificationDefinition(java.lang.String portletId,
long classNameId,
int notificationType) |
java.util.Map<java.lang.String,java.util.List<com.liferay.portal.kernel.notifications.UserNotificationDefinition>> |
getUserNotificationDefinitions() |
java.util.Map<java.lang.String,java.util.Map<java.lang.String,com.liferay.portal.kernel.notifications.UserNotificationHandler>> |
getUserNotificationHandlers() |
com.liferay.portal.kernel.notifications.UserNotificationFeedEntry |
interpret(java.lang.String selector,
com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
com.liferay.portal.service.ServiceContext serviceContext)
Creates a human readable user notification feed entry for the user
notification using an available compatible user notification handler.
|
boolean |
isDeliver(long userId,
java.lang.String portletId,
long classNameId,
int notificationType,
int deliveryType) |
boolean |
isDeliver(long userId,
java.lang.String selector,
java.lang.String portletId,
long classNameId,
int notificationType,
int deliveryType,
com.liferay.portal.service.ServiceContext serviceContext) |
public void addUserNotificationDefinition(java.lang.String portletId,
com.liferay.portal.kernel.notifications.UserNotificationDefinition userNotificationDefinition)
addUserNotificationDefinition in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic void addUserNotificationHandler(com.liferay.portal.kernel.notifications.UserNotificationHandler userNotificationHandler)
addUserNotificationHandler in interface com.liferay.portal.kernel.notifications.UserNotificationManageruserNotificationHandler - the user notification handlerpublic void deleteUserNotificationDefinitions(java.lang.String portletId)
deleteUserNotificationDefinitions in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic void deleteUserNotificationHandler(com.liferay.portal.kernel.notifications.UserNotificationHandler userNotificationHandler)
deleteUserNotificationHandler in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic com.liferay.portal.kernel.notifications.UserNotificationDefinition fetchUserNotificationDefinition(java.lang.String portletId,
long classNameId,
int notificationType)
fetchUserNotificationDefinition in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic java.util.Map<java.lang.String,java.util.List<com.liferay.portal.kernel.notifications.UserNotificationDefinition>> getUserNotificationDefinitions()
getUserNotificationDefinitions in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,com.liferay.portal.kernel.notifications.UserNotificationHandler>> getUserNotificationHandlers()
getUserNotificationHandlers in interface com.liferay.portal.kernel.notifications.UserNotificationManagerpublic com.liferay.portal.kernel.notifications.UserNotificationFeedEntry interpret(java.lang.String selector,
com.liferay.portal.model.UserNotificationEvent userNotificationEvent,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException
This method finds the appropriate handler for the user notification by going through the available handler and asking them if they can handle the user notidication based on the portlet.
interpret in interface com.liferay.portal.kernel.notifications.UserNotificationManageruserNotificationEvent - the user notification event to be
translated to human readable formnull if a compatible
handler is not foundcom.liferay.portal.kernel.exception.PortalExceptionpublic boolean isDeliver(long userId,
java.lang.String portletId,
long classNameId,
int notificationType,
int deliveryType)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
isDeliver in interface com.liferay.portal.kernel.notifications.UserNotificationManagercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic boolean isDeliver(long userId,
java.lang.String selector,
java.lang.String portletId,
long classNameId,
int notificationType,
int deliveryType,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
isDeliver in interface com.liferay.portal.kernel.notifications.UserNotificationManagercom.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemException