Class PushNotificationsDeviceServiceUtil

java.lang.Object
com.liferay.push.notifications.service.PushNotificationsDeviceServiceUtil

public class PushNotificationsDeviceServiceUtil extends Object
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 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

      public static String 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

      public static PushNotificationsDeviceService getService()