public class AndroidPushNotificationsSender
extends java.lang.Object
implements com.liferay.push.notifications.sender.PushNotificationsSender
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLATFORM |
| Constructor and Description |
|---|
AndroidPushNotificationsSender() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(java.util.Map<java.lang.String,java.lang.Object> properties) |
protected com.google.android.gcm.server.Message |
buildMessage(com.liferay.portal.kernel.json.JSONObject payloadJSONObject) |
protected void |
deactivate() |
void |
send(java.util.List<java.lang.String> tokens,
com.liferay.portal.kernel.json.JSONObject payloadJSONObject) |
protected void |
setPushNotificationsDeviceLocalService(com.liferay.push.notifications.service.PushNotificationsDeviceLocalService pushNotificationsDeviceLocalService) |
protected void |
validateMulticastResult(java.util.List<java.lang.String> tokens,
com.liferay.portal.kernel.json.JSONObject payloadJSONObject,
com.google.android.gcm.server.MulticastResult multicastResult) |
public static final java.lang.String PLATFORM
public void send(java.util.List<java.lang.String> tokens,
com.liferay.portal.kernel.json.JSONObject payloadJSONObject)
throws java.lang.Exception
send in interface com.liferay.push.notifications.sender.PushNotificationsSenderjava.lang.Exceptionprotected void activate(java.util.Map<java.lang.String,java.lang.Object> properties)
protected com.google.android.gcm.server.Message buildMessage(com.liferay.portal.kernel.json.JSONObject payloadJSONObject)
protected void deactivate()
protected void setPushNotificationsDeviceLocalService(com.liferay.push.notifications.service.PushNotificationsDeviceLocalService pushNotificationsDeviceLocalService)
protected void validateMulticastResult(java.util.List<java.lang.String> tokens,
com.liferay.portal.kernel.json.JSONObject payloadJSONObject,
com.google.android.gcm.server.MulticastResult multicastResult)