public class NotificationsUtil extends Object
| Constructor and Description |
|---|
NotificationsUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<com.liferay.notifications.model.UserNotificationEvent> |
getArchivedUserNotificationEvents(long userId,
boolean actionRequired,
boolean archived,
int start,
int end) |
static int |
getArchivedUserNotificationEventsCount(long userId,
boolean actionRequired,
boolean archived) |
static List<com.liferay.notifications.model.UserNotificationEvent> |
getDeliveredUserNotificationEvents(long userId,
boolean delivered,
boolean actionRequired,
int start,
int end) |
static int |
getDeliveredUserNotificationEventsCount(long userId,
boolean delivered,
boolean actionRequired) |
static String |
getEntryURL(com.liferay.portlet.asset.model.AssetRenderer assetRenderer,
String portletKey,
com.liferay.portal.service.ServiceContext serviceContext) |
static List<com.liferay.notifications.model.UserNotificationEvent> |
getUserNotificationEvents(long userId,
boolean actionRequired,
int start,
int end) |
static int |
getUserNotificationEventsCount(long userId,
boolean actionRequired) |
static void |
sendNotificationEvent(long companyId,
String portletKey,
String className,
long classPK,
String entryTitle,
String entryURL,
int notificationType,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,Long>> subscribersOVPs,
long userId) |
public static List<com.liferay.notifications.model.UserNotificationEvent> getArchivedUserNotificationEvents(long userId, boolean actionRequired, boolean archived, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static int getArchivedUserNotificationEventsCount(long userId,
boolean actionRequired,
boolean archived)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static List<com.liferay.notifications.model.UserNotificationEvent> getDeliveredUserNotificationEvents(long userId, boolean delivered, boolean actionRequired, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static int getDeliveredUserNotificationEventsCount(long userId,
boolean delivered,
boolean actionRequired)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static String getEntryURL(com.liferay.portlet.asset.model.AssetRenderer assetRenderer, String portletKey, com.liferay.portal.service.ServiceContext serviceContext)
public static List<com.liferay.notifications.model.UserNotificationEvent> getUserNotificationEvents(long userId, boolean actionRequired, int start, int end) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static int getUserNotificationEventsCount(long userId,
boolean actionRequired)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static void sendNotificationEvent(long companyId,
String portletKey,
String className,
long classPK,
String entryTitle,
String entryURL,
int notificationType,
List<com.liferay.portal.kernel.util.ObjectValuePair<String,Long>> subscribersOVPs,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionCopyright © 2019. All Rights Reserved.