2023-08-21 17:54:15 +08:00
|
|
|
package com.genersoft.iot.vmp.service;
|
|
|
|
|
|
|
|
import com.genersoft.iot.vmp.common.CommonGbChannel;
|
2023-09-25 18:20:05 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
2023-08-30 15:05:52 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
2023-11-08 18:30:41 +08:00
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Gb28181CodeType;
|
2023-11-10 16:03:47 +08:00
|
|
|
import com.genersoft.iot.vmp.service.bean.*;
|
2023-11-14 18:36:40 +08:00
|
|
|
import com.genersoft.iot.vmp.vmanager.bean.UpdateCommonChannelToGroup;
|
2023-11-16 14:24:50 +08:00
|
|
|
import com.genersoft.iot.vmp.vmanager.bean.UpdateCommonChannelToRegion;
|
2023-11-01 09:25:49 +08:00
|
|
|
import com.github.pagehelper.PageInfo;
|
2023-08-21 17:54:15 +08:00
|
|
|
|
2023-09-25 18:20:05 +08:00
|
|
|
import java.util.ArrayList;
|
2023-08-25 15:49:56 +08:00
|
|
|
import java.util.List;
|
|
|
|
|
2023-11-24 10:12:36 +08:00
|
|
|
/**
|
|
|
|
* 通用通道资源管理
|
|
|
|
* 接入的资源通过调用这个类实现将自己本身的数据添加到通用通道当中
|
|
|
|
*/
|
2023-08-21 17:54:15 +08:00
|
|
|
public interface ICommonGbChannelService {
|
|
|
|
|
|
|
|
CommonGbChannel getChannel(String channelId);
|
|
|
|
|
|
|
|
int add(CommonGbChannel channel);
|
|
|
|
|
|
|
|
int delete(String channelId);
|
|
|
|
|
|
|
|
int update(CommonGbChannel channel);
|
|
|
|
|
|
|
|
boolean checkChannelInPlatform(String channelId, String platformServerId);
|
2023-08-24 16:15:58 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 从国标设备中同步通道
|
|
|
|
*
|
2023-08-25 15:49:56 +08:00
|
|
|
* @param gbDeviceId 国标设备编号
|
|
|
|
* @param syncKeys 要同步的字段
|
2023-08-24 16:15:58 +08:00
|
|
|
*/
|
2023-09-25 18:20:05 +08:00
|
|
|
boolean syncChannelFromGb28181Device(String gbDeviceId, List<String> syncKeys, Boolean syncGroup, Boolean syncRegion);
|
|
|
|
|
|
|
|
CommonGbChannel getCommonChannelFromDeviceChannel(DeviceChannel deviceChannel, List<String> syncKeys);
|
2023-08-31 09:45:51 +08:00
|
|
|
|
2023-11-01 09:25:49 +08:00
|
|
|
PageInfo<CommonGbChannel> getChannelsInRegion(String regionDeviceId, String query, int page, int count);
|
2023-08-31 09:45:51 +08:00
|
|
|
|
|
|
|
List<CommonGbChannel> getChannelsInBusinessGroup(String businessGroupID);
|
2023-09-25 18:20:05 +08:00
|
|
|
|
|
|
|
void updateChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
|
|
|
|
|
|
|
|
void addChannelFromGb28181DeviceInList(Device device, List<DeviceChannel> deviceChannels);
|
|
|
|
|
|
|
|
void deleteGbChannelsFromList(List<DeviceChannel> deleteChannelList);
|
|
|
|
|
|
|
|
void channelsOnlineFromList(List<DeviceChannel> deleteChannelList);
|
|
|
|
|
|
|
|
void channelsOfflineFromList(List<DeviceChannel> deleteChannelList);
|
2023-11-01 09:25:49 +08:00
|
|
|
|
2023-11-14 18:36:40 +08:00
|
|
|
PageInfo<CommonGbChannel> queryChannelListInGroup(int page, int count, String query, String groupDeviceId,
|
|
|
|
String regionDeviceId, Boolean inGroup, Boolean inRegion,
|
|
|
|
String type);
|
2023-11-01 09:25:49 +08:00
|
|
|
|
|
|
|
PageInfo<CommonGbChannel> queryChannelList(String query, int page, int count);
|
2023-11-08 18:30:41 +08:00
|
|
|
|
2023-11-10 16:03:47 +08:00
|
|
|
List<IndustryCodeType> getIndustryCodeList();
|
|
|
|
|
|
|
|
List<DeviceType> getDeviceTypeList();
|
|
|
|
|
|
|
|
List<NetworkIdentificationType> getNetworkIdentificationTypeList();
|
|
|
|
|
2023-11-14 18:36:40 +08:00
|
|
|
void updateChannelToGroup(UpdateCommonChannelToGroup commonGbChannel);
|
|
|
|
|
|
|
|
void removeFromGroup(UpdateCommonChannelToGroup params);
|
2023-11-16 14:24:50 +08:00
|
|
|
|
|
|
|
void removeFromRegion(UpdateCommonChannelToRegion params);
|
|
|
|
|
|
|
|
void updateChannelToRegion(UpdateCommonChannelToRegion params);
|
2023-11-24 10:12:36 +08:00
|
|
|
|
|
|
|
void startPlay(CommonGbChannel channel, IResourcePlayCallback callback);
|
|
|
|
|
|
|
|
void stopPlay(CommonGbChannel channel, IResourcePlayCallback callback);
|
2023-11-24 18:04:57 +08:00
|
|
|
|
|
|
|
void batchAdd(List<CommonGbChannel> commonGbChannels);
|
|
|
|
|
|
|
|
void batchUpdate(List<CommonGbChannel> commonGbChannels);
|
|
|
|
|
|
|
|
void batchDelete(List<Integer> allCommonChannelsForDelete);
|
|
|
|
|
2023-12-11 14:52:52 +08:00
|
|
|
void deleteById(int commonGbChannelId);
|
|
|
|
|
|
|
|
void deleteByIdList(List<Integer> commonChannelIdList);
|
2023-08-21 17:54:15 +08:00
|
|
|
}
|