public class PushServiceImpl extends Object implements PushService
PushService| Constructor and Description | 
|---|
| PushServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | countPushes()Returns the number of  Pushmessages persisted. | 
| List<Push> | findAllPush()Returns a list of ALL the  Pushmessages
 that are persisted.WARNING: This method can return A LOT of data | 
| List<Device> | findDevicesForPush(Push push)Finds a list of  Devicesthat was linked to aPush. | 
| Push | findPushById(Long id)Finds a  Pushby its ID. | 
| List<PushDeviceTuple> | findUnsentPushTuples()Finds a list of unsent  PushDeviceTuple. | 
| DeviceService | getDeviceService()Get reference to the  DeviceService | 
| PushDeviceTupleService | getPdtService()A reference to the  PushDeviceTupleService | 
| PushDao | getPushDao()Gets the reference to the  PushDao | 
| SendServiceDelegator | getSendService()A reference to the  SendServiceDelegatorresponsible for delegating
 push messages to appropriate implementations for different devices. | 
| boolean | removePush(Push push)Removes a  Pushmessage. | 
| void | savePush(Push push)Persists a  Pushmessage. | 
| void | savePush(Push push,
                List<Device> devices)Persists a push messages that should be sent to many devices | 
| int | sendPush(List<PushDeviceTuple> tuples)Attempts to send  PushDeviceTuple | 
| int | sendPush(Push push,
                Device device)Sends a  Pushmessage to the specifiedDevicewithout persisting the message. | 
| int | sendPush(Push push,
                List<Device> devices)Sends a  Push | 
| void | setDeviceService(DeviceService deviceService)Set the reference to the  DeviceServicefor this ServiceImpl. | 
| void | setPdtService(PushDeviceTupleService pdtService)Set the reference to the  PushDeviceTupleServicefor this ServiceImpl. | 
| void | setPushDao(PushDao dao)Sets the reference to the  PushDao | 
| void | setSendService(SendServiceDelegator sendService)Set the reference to the  SendServiceDelegatorfor this ServiceImpl. | 
public PushServiceImpl()
@Transactional public void savePush(Push push)
PushServicePush message.savePush in interface PushServicepush - Push message to persist.@Transactional public boolean removePush(Push push)
PushServicePush message.removePush in interface PushServicepush - Push message to persist.@Transactional public void savePush(Push push, List<Device> devices)
PushServicesavePush in interface PushServicepush - Push message to be sent.devices - Devices the Push message should be sent to.@Transactional public Push findPushById(Long id)
PushServicePush by its ID.findPushById in interface PushServiceid - ID of the Push to find.Push that has the specified ID.@Transactional public List<Device> findDevicesForPush(Push push)
PushServiceDevices that was linked to a Push.findDevicesForPush in interface PushServicepush - Push to find devices of.Devices that was linked.@Transactional public List<PushDeviceTuple> findUnsentPushTuples()
PushServicePushDeviceTuple.findUnsentPushTuples in interface PushServicePushDeviceTuple.@Transactional public List<Push> findAllPush()
PushServicePush messages
 that are persisted.findAllPush in interface PushServicePush messages.@Transactional public int countPushes()
PushServicePush messages persisted.countPushes in interface PushServicePush messages persisted.public int sendPush(Push push, Device device)
PushServicePush message to the specified Device
 without persisting the message.sendPush in interface PushServicepush - Push message to send.device - Device to send the message to.public int sendPush(Push push, List<Device> devices)
PushServicePush
sendPush in interface PushServicepush - Push message to send.devices - Devices to send the message to.@Transactional public int sendPush(List<PushDeviceTuple> tuples)
PushServicePushDeviceTuplesendPush in interface PushServicetuples - List of PushDeviceTuple to send.public void setPushDao(PushDao dao)
PushDaodao - Reference to the PushDaopublic PushDao getPushDao()
PushDaopublic SendServiceDelegator getSendService()
SendServiceDelegator responsible for delegating
 push messages to appropriate implementations for different devices.public void setSendService(SendServiceDelegator sendService)
SendServiceDelegator for this ServiceImpl.sendService - public DeviceService getDeviceService()
DeviceServicepublic void setDeviceService(DeviceService deviceService)
DeviceService for this ServiceImpl.deviceService - public PushDeviceTupleService getPdtService()
PushDeviceTupleServicepublic void setPdtService(PushDeviceTupleService pdtService)
PushDeviceTupleService for this ServiceImpl.pdtService - Copyright © 2011-2013 The Kuali Foundation. All Rights Reserved.