IDeviceChannelService.java 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. package com.genersoft.iot.vmp.gb28181.service;
  2. import com.genersoft.iot.vmp.gb28181.bean.Device;
  3. import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
  4. import com.genersoft.iot.vmp.gb28181.bean.MobilePosition;
  5. import com.genersoft.iot.vmp.gb28181.controller.bean.ChannelReduce;
  6. import com.genersoft.iot.vmp.vmanager.bean.ResourceBaseInfo;
  7. import com.genersoft.iot.vmp.web.gb28181.dto.DeviceChannelExtend;
  8. import com.github.pagehelper.PageInfo;
  9. import java.util.List;
  10. /**
  11. * 国标通道业务类
  12. * @author lin
  13. */
  14. public interface IDeviceChannelService {
  15. /**
  16. * 批量添加设备通道
  17. */
  18. int updateChannels(Device device, List<DeviceChannel> channels);
  19. /**
  20. * 获取统计信息
  21. * @return
  22. */
  23. ResourceBaseInfo getOverview();
  24. /**
  25. * 查询所有未分配的通道
  26. * @param platformId
  27. * @return
  28. */
  29. List<ChannelReduce> queryAllChannelList(String platformId);
  30. PageInfo<ChannelReduce> queryAllChannelList(int page, int count, String query, Boolean online, Boolean channelType, String platformId, String catalogId);
  31. /**
  32. * 查询通道所属的设备
  33. */
  34. List<Device> getDeviceByChannelId(String channelId);
  35. /**
  36. * 批量删除通道
  37. * @param deleteChannelList 待删除的通道列表
  38. */
  39. int deleteChannelsForNotify(List<DeviceChannel> deleteChannelList);
  40. int updateChannelsStatus(List<DeviceChannel> channels);
  41. /**
  42. * 获取一个通道
  43. */
  44. DeviceChannel getOne(String deviceId, String channelId);
  45. DeviceChannel getOneForSource(String deviceId, String channelId);
  46. /**
  47. * 直接批量更新通道
  48. */
  49. void batchUpdateChannelForNotify(List<DeviceChannel> channels);
  50. /**
  51. * 直接批量添加
  52. */
  53. void batchAddChannel(List<DeviceChannel> deviceChannels);
  54. /**
  55. * 修改通道的码流类型
  56. */
  57. void updateChannelStreamIdentification(DeviceChannel channel);
  58. List<DeviceChannel> queryChaneListByDeviceId(String deviceId);
  59. void updateChannelGPS(Device device, DeviceChannel deviceChannel, MobilePosition mobilePosition);
  60. void startPlay(Integer channelId, String stream);
  61. void stopPlay(Integer channelId);
  62. void batchUpdateChannelGPS(List<DeviceChannel> channelList);
  63. void batchAddMobilePosition(List<MobilePosition> addMobilePositionList);
  64. void online(DeviceChannel channel);
  65. void offline(DeviceChannel channel);
  66. void delete(DeviceChannel channel);
  67. void cleanChannelsForDevice(int deviceId);
  68. boolean resetChannels(int deviceDbId, List<DeviceChannel> deviceChannels);
  69. PageInfo<DeviceChannel> getSubChannels(int deviceDbId, String channelId, String query, Boolean channelType, Boolean online, int page, int count);
  70. List<DeviceChannelExtend> queryChannelExtendsByDeviceId(String deviceId, List<String> channelIds, Boolean online);
  71. PageInfo<DeviceChannel> queryChannelsByDeviceId(String deviceId, String query, Boolean channelType, Boolean online, int page, int count);
  72. List<Device> queryDeviceWithAsMessageChannel();
  73. DeviceChannel getRawChannel(int id);
  74. DeviceChannel getOneById(Integer channelId);
  75. DeviceChannel getOneForSourceById(Integer channelId);
  76. DeviceChannel getBroadcastChannel(int deviceDbId);
  77. void changeAudio(Integer channelId, Boolean audio);
  78. void updateChannelStatus(DeviceChannel channel);
  79. void addChannel(DeviceChannel channel);
  80. void updateChannelForNotify(DeviceChannel channel);
  81. DeviceChannel getOneForSource(int deviceDbId, String channelId);
  82. DeviceChannel getOneBySourceId(int deviceDbId, String channelId);
  83. List<DeviceChannel> queryChaneListByDeviceDbId(Integer deviceDbId);
  84. List<Integer> queryChaneIdListByDeviceDbIds(List<Integer> deviceDbId);
  85. }