2018-03-17 17:09:19 +08:00
|
|
|
|
package com.nis.domain.specific;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
2018-04-03 11:12:49 +08:00
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
2018-03-17 17:09:19 +08:00
|
|
|
|
import com.nis.domain.BaseEntity;
|
|
|
|
|
|
import com.nis.domain.SysUser;
|
2018-06-11 10:58:06 +08:00
|
|
|
|
import com.nis.util.excel.ExcelField;
|
2018-03-17 17:09:19 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 系统特定服务信息表-记录特定服务信息(specific_service_cfg)
|
|
|
|
|
|
* @author zsl
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class SpecificServiceHostCfg extends BaseEntity<SpecificServiceHostCfg>{
|
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = -301627652860717175L;
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("cfgId")
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private Integer hostId; //host_id 配置ID bigint N 主键,自增
|
2018-06-11 10:58:06 +08:00
|
|
|
|
private String specServiceName;//协议名称,用于导入导出
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private Integer specServiceId; //spec_service_id 协议id int N protocol_info_cfg.protocol_id
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-21 13:43:43 +08:00
|
|
|
|
private Integer ipType; //ip地址类型 ipV4=4 ipV6=6
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String srcIp; //src_ip 源IP地址 varchar(64) N 缺省0.0.0.0值表示任意
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String srcIpMask; //src_ip_mask 源地址掩码 varchar(64) N IPV4:255.255.255.255表示无掩码,即精确IP匹配,0.0.0.0值表示任意;
|
|
|
|
|
|
//IPV6:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF表示无掩码,::(两个半角冒号)表示任意。非0掩码值必须是2的指数幂,下同。
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String srcPort; //src_port 源端口 varchar(6) N 0表示任意值
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String srcPortMask; //src_port_mask 源端口掩码 varchar(6) N 65535表示无掩码,即精确端口匹配,0表示任意
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String dstIp; //dst_ip 目的IP地址 varchar(64) N 缺省0.0.0.0值表示任意
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String dstIpMask; //dst_ip_mask 目的地址掩码 varchar(64) N 同源ip地址掩码
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String dstPort; //dst_port 目的端口 varchar(6) N 目的端口,0表示任意值
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private String dstPortMask; //dst_port_mask 目的端口掩码 varchar(6) N 同源端口掩码
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private Integer direction;; //direction 方向 int N 0双向,1单向,默认缺省为双向。
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private Integer protocol; //protocol 协议 int N 6表示tcp,17表示udp,0表示任意
|
2018-04-03 11:12:49 +08:00
|
|
|
|
|
2018-03-17 17:09:19 +08:00
|
|
|
|
private Integer isValid; //is_valid 有效标识 int N 0无效,1有效
|
|
|
|
|
|
private Integer isAudit; //is_audit 是否审核 int N 0未审核,1审核通过,2审核未通过,3取消审核通过(即删除)
|
|
|
|
|
|
private SysUser creator; //creator_id 创建人员 int N 取自sys_user.id
|
|
|
|
|
|
private Date createTime; //create_time 配置时间 date N
|
|
|
|
|
|
private SysUser editor; //editor_id 修改人员 int Y 取自sys_user.id
|
|
|
|
|
|
private Date editTime; //edit_time 修改时间 date Y
|
|
|
|
|
|
private SysUser auditor; //auditor_id 审核人员 int Y 取自sys_user.id
|
|
|
|
|
|
private Date auditTime; //audit_time 审核时间 date Y
|
2018-04-03 11:12:49 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
private Integer protocolId;//配置转json下发时使用
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
private String maatTable;//配置转json下发时使用
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
private Integer groupId;//配置转json下发时使用
|
2018-03-17 17:09:19 +08:00
|
|
|
|
|
|
|
|
|
|
private Date beginDate;
|
|
|
|
|
|
private Date endDate;
|
|
|
|
|
|
private Date editBeginDate;
|
|
|
|
|
|
private Date editEndDate;
|
|
|
|
|
|
private Date auditBeginDate;
|
|
|
|
|
|
private Date auditEndDate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getHostId() {
|
|
|
|
|
|
return hostId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setHostId(Integer hostId) {
|
|
|
|
|
|
this.hostId = hostId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getSpecServiceId() {
|
|
|
|
|
|
return specServiceId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSpecServiceId(Integer specServiceId) {
|
|
|
|
|
|
this.specServiceId = specServiceId;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="ip_type",align=2,sort=20,fieldType=Integer.class)
|
2018-03-21 13:43:43 +08:00
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
|
return ipType;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="client_ip",align=2,sort=30,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getSrcIp() {
|
|
|
|
|
|
return srcIp;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcIp(String srcIp) {
|
|
|
|
|
|
this.srcIp = srcIp;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="client_address_mask",align=2,sort=40,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getSrcIpMask() {
|
|
|
|
|
|
return srcIpMask;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcIpMask(String srcIpMask) {
|
|
|
|
|
|
this.srcIpMask = srcIpMask;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="client_port",align=2,sort=50,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getSrcPort() {
|
|
|
|
|
|
return srcPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcPort(String srcPort) {
|
|
|
|
|
|
this.srcPort = srcPort;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="client_port_mask",align=2,sort=60,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getSrcPortMask() {
|
|
|
|
|
|
return srcPortMask;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSrcPortMask(String srcPortMask) {
|
|
|
|
|
|
this.srcPortMask = srcPortMask;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="server_ip",align=2,sort=70,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getDstIp() {
|
|
|
|
|
|
return dstIp;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDstIp(String dstIp) {
|
|
|
|
|
|
this.dstIp = dstIp;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="server_address_mask",align=2,sort=80,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getDstIpMask() {
|
|
|
|
|
|
return dstIpMask;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDstIpMask(String dstIpMask) {
|
|
|
|
|
|
this.dstIpMask = dstIpMask;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="server_port",align=2,sort=90,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getDstPort() {
|
|
|
|
|
|
return dstPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDstPort(String dstPort) {
|
|
|
|
|
|
this.dstPort = dstPort;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="server_port_mask",align=2,sort=100,fieldType=String.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public String getDstPortMask() {
|
|
|
|
|
|
return dstPortMask;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDstPortMask(String dstPortMask) {
|
|
|
|
|
|
this.dstPortMask = dstPortMask;
|
|
|
|
|
|
}
|
2018-06-11 10:58:06 +08:00
|
|
|
|
@ExcelField(title="direction",align=2,sort=110)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
|
return direction;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
|
this.direction = direction;
|
|
|
|
|
|
}
|
2018-06-11 10:58:06 +08:00
|
|
|
|
@ExcelField(title="protocol",align=2,sort=120)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
|
return protocol;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
|
}
|
2018-06-11 17:47:44 +08:00
|
|
|
|
@ExcelField(title="valid_identifier",type=1,align=2,sort=130,fieldType=Integer.class)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public Integer getIsValid() {
|
|
|
|
|
|
return isValid;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIsValid(Integer isValid) {
|
|
|
|
|
|
this.isValid = isValid;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getIsAudit() {
|
|
|
|
|
|
return isAudit;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIsAudit(Integer isAudit) {
|
|
|
|
|
|
this.isAudit = isAudit;
|
|
|
|
|
|
}
|
|
|
|
|
|
public SysUser getCreator() {
|
|
|
|
|
|
return creator;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setCreator(SysUser creator) {
|
|
|
|
|
|
this.creator = creator;
|
|
|
|
|
|
}
|
2018-06-11 10:58:06 +08:00
|
|
|
|
@ExcelField(title="创建时间",type=1,align=2,sort=140)
|
2018-03-17 17:09:19 +08:00
|
|
|
|
public Date getCreateTime() {
|
|
|
|
|
|
return createTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
|
|
|
this.createTime = createTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
public SysUser getEditor() {
|
|
|
|
|
|
return editor;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setEditor(SysUser editor) {
|
|
|
|
|
|
this.editor = editor;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getEditTime() {
|
|
|
|
|
|
return editTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setEditTime(Date editTime) {
|
|
|
|
|
|
this.editTime = editTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
public SysUser getAuditor() {
|
|
|
|
|
|
return auditor;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setAuditor(SysUser auditor) {
|
|
|
|
|
|
this.auditor = auditor;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getAuditTime() {
|
|
|
|
|
|
return auditTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setAuditTime(Date auditTime) {
|
|
|
|
|
|
this.auditTime = auditTime;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Date getBeginDate() {
|
|
|
|
|
|
return beginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setBeginDate(Date beginDate) {
|
|
|
|
|
|
this.beginDate = beginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getEndDate() {
|
|
|
|
|
|
return endDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setEndDate(Date endDate) {
|
|
|
|
|
|
this.endDate = endDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getEditBeginDate() {
|
|
|
|
|
|
return editBeginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setEditBeginDate(Date editBeginDate) {
|
|
|
|
|
|
this.editBeginDate = editBeginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getEditEndDate() {
|
|
|
|
|
|
return editEndDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setEditEndDate(Date editEndDate) {
|
|
|
|
|
|
this.editEndDate = editEndDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getAuditBeginDate() {
|
|
|
|
|
|
return auditBeginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setAuditBeginDate(Date auditBeginDate) {
|
|
|
|
|
|
this.auditBeginDate = auditBeginDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Date getAuditEndDate() {
|
|
|
|
|
|
return auditEndDate;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setAuditEndDate(Date auditEndDate) {
|
|
|
|
|
|
this.auditEndDate = auditEndDate;
|
|
|
|
|
|
}
|
2018-06-11 10:58:06 +08:00
|
|
|
|
@ExcelField(title="protocol_name",align=2,sort=10)
|
|
|
|
|
|
public String getSpecServiceName() {
|
|
|
|
|
|
return specServiceName;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setSpecServiceName(String specServiceName) {
|
|
|
|
|
|
this.specServiceName = specServiceName;
|
|
|
|
|
|
}
|
2018-03-17 17:09:19 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 处理数据
|
|
|
|
|
|
* @param list
|
|
|
|
|
|
* @param sourceList
|
|
|
|
|
|
* @param ParentId
|
|
|
|
|
|
* @param cascade
|
|
|
|
|
|
*/
|
|
|
|
|
|
@JsonIgnore
|
|
|
|
|
|
public static void sort(List<SpecificServiceHostCfg> list, List<SpecificServiceHostCfg> sourceList, Integer ParentId, boolean cascade){
|
|
|
|
|
|
|
|
|
|
|
|
}
|
2018-04-03 11:12:49 +08:00
|
|
|
|
public Integer getProtocolId() {
|
|
|
|
|
|
return protocolId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setProtocolId(Integer protocolId) {
|
|
|
|
|
|
this.protocolId = protocolId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getMaatTable() {
|
|
|
|
|
|
return maatTable;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setMaatTable(String maatTable) {
|
|
|
|
|
|
this.maatTable = maatTable;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getGroupId() {
|
|
|
|
|
|
return groupId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setGroupId(Integer groupId) {
|
|
|
|
|
|
this.groupId = groupId;
|
|
|
|
|
|
}
|
2018-03-17 17:09:19 +08:00
|
|
|
|
|
|
|
|
|
|
}
|