@ProviderType
public class PushNotificationsDeviceServiceUtil
extends java.lang.Object
com.liferay.push.notifications.service.impl.PushNotificationsDeviceServiceImpl
and is the
primary 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
,
com.liferay.push.notifications.service.base.PushNotificationsDeviceServiceBaseImpl
,
com.liferay.push.notifications.service.impl.PushNotificationsDeviceServiceImpl
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 com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static PushNotificationsDevice deletePushNotificationsDevice(java.lang.String token) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static PushNotificationsDevice deletePushNotificationsDevice(long pushNotificationsDeviceId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static void sendPushNotification(java.lang.String platform, java.util.List<java.lang.String> tokens, java.lang.String payload) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void sendPushNotification(long[] toUserIds, java.lang.String payload) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static PushNotificationsDeviceService getService()