public class PushNotificationsDeviceServiceUtil
extends java.lang.Object
com.liferay.push.notifications.service.impl.PushNotificationsDeviceServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.PushNotificationsDeviceService| Constructor and Description |
|---|
PushNotificationsDeviceServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static PushNotificationsDevice |
addPushNotificationsDevice(java.lang.String token,
java.lang.String platform) |
static PushNotificationsDevice |
deletePushNotificationsDevice(long pushNotificationsDeviceId) |
static PushNotificationsDevice |
deletePushNotificationsDevice(java.lang.String token) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static PushNotificationsDeviceService |
getService() |
static void |
sendPushNotification(long[] toUserIds,
java.lang.String payload) |
static void |
sendPushNotification(java.lang.String platform,
java.util.List<java.lang.String> tokens,
java.lang.String payload) |
public static PushNotificationsDevice addPushNotificationsDevice(java.lang.String token, java.lang.String platform) throws PortalException
PortalExceptionpublic static PushNotificationsDevice deletePushNotificationsDevice(long pushNotificationsDeviceId) throws PortalException
PortalExceptionpublic static PushNotificationsDevice deletePushNotificationsDevice(java.lang.String token) throws PortalException
PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static void sendPushNotification(long[] toUserIds,
java.lang.String payload)
throws PortalException
PortalExceptionpublic static void sendPushNotification(java.lang.String platform,
java.util.List<java.lang.String> tokens,
java.lang.String payload)
throws PortalException
PortalExceptionpublic static PushNotificationsDeviceService getService()