119 lines
3.2 KiB
Java
Executable File
119 lines
3.2 KiB
Java
Executable File
package com.genersoft.iot.vmp.service;
|
|
|
|
import com.genersoft.iot.vmp.gb28181.bean.Device;
|
|
import com.genersoft.iot.vmp.gb28181.bean.DeviceChannel;
|
|
import com.genersoft.iot.vmp.gb28181.bean.MobilePosition;
|
|
import com.genersoft.iot.vmp.vmanager.bean.ResourceBaseInfo;
|
|
import com.genersoft.iot.vmp.vmanager.gb28181.platform.bean.ChannelReduce;
|
|
import com.genersoft.iot.vmp.web.gb28181.dto.DeviceChannelExtend;
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 国标通道业务类
|
|
* @author lin
|
|
*/
|
|
public interface IDeviceChannelService {
|
|
|
|
/**
|
|
* 添加设备通道
|
|
*
|
|
* @param deviceId 设备id
|
|
* @param channel 通道
|
|
*/
|
|
void updateChannel(String deviceId, DeviceChannel channel);
|
|
|
|
/**
|
|
* 批量添加设备通道
|
|
*/
|
|
int updateChannels(Device device, List<DeviceChannel> channels);
|
|
|
|
/**
|
|
* 获取统计信息
|
|
* @return
|
|
*/
|
|
ResourceBaseInfo getOverview();
|
|
|
|
/**
|
|
* 查询所有未分配的通道
|
|
* @param platformId
|
|
* @return
|
|
*/
|
|
List<ChannelReduce> queryAllChannelList(String platformId);
|
|
|
|
PageInfo<ChannelReduce> queryAllChannelList(int page, int count, String query, Boolean online, Boolean channelType, String platformId, String catalogId);
|
|
|
|
/**
|
|
* 查询通道所属的设备
|
|
*/
|
|
List<Device> getDeviceByChannelId(String channelId);
|
|
|
|
/**
|
|
* 批量删除通道
|
|
* @param deleteChannelList 待删除的通道列表
|
|
*/
|
|
int deleteChannels(List<DeviceChannel> deleteChannelList);
|
|
|
|
/**
|
|
* 批量上线
|
|
*/
|
|
int channelsOnline(List<DeviceChannel> channels);
|
|
|
|
/**
|
|
* 批量下线
|
|
*/
|
|
int channelsOffline(List<DeviceChannel> channels);
|
|
|
|
/**
|
|
* 获取一个通道
|
|
*/
|
|
DeviceChannel getOne(String deviceId, String channelId);
|
|
|
|
/**
|
|
* 直接批量更新通道
|
|
*/
|
|
void batchUpdateChannel(List<DeviceChannel> channels);
|
|
|
|
/**
|
|
* 直接批量添加
|
|
*/
|
|
void batchAddChannel(List<DeviceChannel> deviceChannels);
|
|
|
|
/**
|
|
* 修改通道的码流类型
|
|
*/
|
|
void updateChannelStreamIdentification(DeviceChannel channel);
|
|
|
|
List<DeviceChannel> queryChaneListByDeviceId(String deviceId);
|
|
|
|
void updateChannelGPS(Device device, DeviceChannel deviceChannel, MobilePosition mobilePosition);
|
|
|
|
void startPlay(String deviceId, String channelId, String stream);
|
|
|
|
void stopPlay(String deviceId, String channelId);
|
|
|
|
void batchUpdateChannelGPS(List<DeviceChannel> channelList);
|
|
|
|
void batchAddMobilePosition(List<MobilePosition> addMobilePositionList);
|
|
|
|
void online(DeviceChannel channel);
|
|
|
|
void offline(DeviceChannel channel);
|
|
|
|
void delete(DeviceChannel channel);
|
|
|
|
void cleanChannelsForDevice(int deviceId);
|
|
|
|
boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannels);
|
|
|
|
PageInfo<DeviceChannel> getSubChannels(int deviceDbId, String channelId, String query, Boolean channelType, Boolean online, int page, int count);
|
|
|
|
List<DeviceChannelExtend> queryChannelExtendsByDeviceId(String deviceId, List<String> channelIds, Boolean online);
|
|
|
|
PageInfo<DeviceChannel> queryChannelsByDeviceId(String deviceId, String query, Boolean channelType, Boolean online, int page, int count);
|
|
|
|
|
|
List<Device> queryDeviceWithAsMessageChannel();
|
|
}
|