Class PushNotificationsDeviceServiceUtil
java.lang.Object
com.liferay.push.notifications.service.PushNotificationsDeviceServiceUtil
Provides the remote service utility for PushNotificationsDevice. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PushNotificationsDevice
addPushNotificationsDevice
(String token, String platform) static PushNotificationsDevice
deletePushNotificationsDevice
(long pushNotificationsDeviceId) static PushNotificationsDevice
static String
Returns the OSGi service identifier.static void
sendPushNotification
(long[] toUserIds, String payload) static void
sendPushNotification
(String platform, List<String> tokens, String payload)
-
Constructor Details
-
PushNotificationsDeviceServiceUtil
public PushNotificationsDeviceServiceUtil()
-
-
Method Details
-
addPushNotificationsDevice
public static PushNotificationsDevice addPushNotificationsDevice(String token, String platform) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePushNotificationsDevice
public static PushNotificationsDevice deletePushNotificationsDevice(long pushNotificationsDeviceId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deletePushNotificationsDevice
public static PushNotificationsDevice deletePushNotificationsDevice(String token) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
sendPushNotification
public static void sendPushNotification(long[] toUserIds, String payload) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
sendPushNotification
public static void sendPushNotification(String platform, List<String> tokens, String payload) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-