2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
*@Title: BaseIpConfig.java
|
|
|
|
|
|
*@Package com.nis.domain.restful
|
|
|
|
|
|
*@Description TODO
|
|
|
|
|
|
*@author dell
|
|
|
|
|
|
*@date 2018年2月5日 下午5:02:24
|
|
|
|
|
|
*@version 版本号
|
|
|
|
|
|
*/
|
|
|
|
|
|
package com.nis.domain.configuration;
|
|
|
|
|
|
|
2018-09-25 11:56:04 +08:00
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
2018-03-05 16:30:16 +08:00
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
2018-07-03 14:55:36 +08:00
|
|
|
|
import com.nis.util.excel.ExcelField;
|
2018-03-05 16:30:16 +08:00
|
|
|
|
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @ClassName: BaseIpConfig.java
|
|
|
|
|
|
* @Description: 基础IP配置
|
|
|
|
|
|
* @author (dell)
|
|
|
|
|
|
* @date 2018年2月5日 下午5:02:24
|
|
|
|
|
|
* @version V1.0
|
|
|
|
|
|
*/
|
2018-02-23 09:34:58 +08:00
|
|
|
|
public class BaseIpCfg extends BaseCfg<BaseIpCfg> {
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
|
|
|
|
|
*
|
|
|
|
|
|
* @since 1.0.0
|
|
|
|
|
|
*/
|
|
|
|
|
|
private static final long serialVersionUID = -1939538118388300002L;
|
2018-04-08 16:15:06 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 创建一个新的实例 BaseIpCfg.
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
public BaseIpCfg() {
|
|
|
|
|
|
super();
|
|
|
|
|
|
// TODO Auto-generated constructor stub
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* ip类型
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("ipType")
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=2)
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer ipType;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="ip_pattern",dictType="IP_PATTERN",sort=3)
|
2018-05-18 10:49:08 +08:00
|
|
|
|
protected Integer ipPattern;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="client_ip",sort=4)
|
2018-05-22 15:14:14 +08:00
|
|
|
|
protected String srcIpAddress;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="server_ip",sort=5)
|
2018-07-03 14:55:36 +08:00
|
|
|
|
protected String destIpAddress;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="port_pattern",dictType="PORT_PATTERN",sort=6)
|
2018-07-03 14:55:36 +08:00
|
|
|
|
protected Integer portPattern;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="client_port",sort=7)
|
2018-07-03 14:55:36 +08:00
|
|
|
|
protected String srcPort;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="server_port",sort=8)
|
2018-05-22 15:14:14 +08:00
|
|
|
|
protected String destPort;
|
2018-07-30 18:14:22 +08:00
|
|
|
|
protected Integer dnsStrategyId;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="ir_type",dictType="IR_TYPE",sort=9)
|
2018-06-28 17:19:06 +08:00
|
|
|
|
protected Integer irType;
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="group_name",sort=10)
|
2018-06-25 16:55:45 +08:00
|
|
|
|
protected String groupName;
|
2018-06-28 17:19:06 +08:00
|
|
|
|
|
2018-09-25 11:56:04 +08:00
|
|
|
|
private List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList;
|
|
|
|
|
|
private NtcSubscribeIdCfg ntcSubscribeIdCfg;
|
2018-06-28 17:19:06 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* irType
|
|
|
|
|
|
* @return irType
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getIrType() {
|
|
|
|
|
|
return irType;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param irType the irType to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setIrType(Integer irType) {
|
|
|
|
|
|
this.irType = irType;
|
|
|
|
|
|
}
|
2018-06-25 16:55:45 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* groupName
|
|
|
|
|
|
* @return groupName
|
|
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
|
2018-06-25 16:55:45 +08:00
|
|
|
|
public String getGroupName() {
|
|
|
|
|
|
return groupName;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param groupName the groupName to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setGroupName(String groupName) {
|
|
|
|
|
|
this.groupName = groupName;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 方向
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("direction")
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="direction",dictType="DIRECTION",sort=11)
|
2018-02-23 09:34:58 +08:00
|
|
|
|
protected Integer direction ;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
2018-10-19 19:41:19 +08:00
|
|
|
|
* 协议
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("protocol")
|
2018-10-19 19:41:19 +08:00
|
|
|
|
@ExcelField(title="protocol",dictType="PROTOCOL",sort=12)
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer protocol ;
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 协议ID
|
|
|
|
|
|
*/
|
2018-03-05 16:30:16 +08:00
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("protocolId")
|
2018-02-07 14:51:11 +08:00
|
|
|
|
protected Integer protocolId ;
|
2018-06-21 14:51:43 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 限速比例
|
|
|
|
|
|
*/
|
2018-08-25 16:37:39 +08:00
|
|
|
|
protected String ratelimit ;
|
2018-06-21 14:51:43 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* ratelimit
|
|
|
|
|
|
* @return ratelimit
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2018-08-25 16:37:39 +08:00
|
|
|
|
public String getRatelimit() {
|
2018-06-21 14:51:43 +08:00
|
|
|
|
return ratelimit;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param ratelimit the ratelimit to set
|
|
|
|
|
|
*/
|
2018-08-25 16:37:39 +08:00
|
|
|
|
public void setRatelimit(String ratelimit) {
|
2018-06-21 14:51:43 +08:00
|
|
|
|
this.ratelimit = ratelimit;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* ipType
|
|
|
|
|
|
* @return ipType
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
|
return ipType;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param ipType the ipType to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* direction
|
|
|
|
|
|
* @return direction
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
|
return direction;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param direction the direction to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
|
this.direction = direction;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* protocol
|
|
|
|
|
|
* @return protocol
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
|
return protocol;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param protocol the protocol to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
|
this.protocol = protocol;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* protocolId
|
|
|
|
|
|
* @return protocolId
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getProtocolId() {
|
|
|
|
|
|
return protocolId;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param protocolId the protocolId to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setProtocolId(Integer protocolId) {
|
|
|
|
|
|
this.protocolId = protocolId;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* ipPattern
|
|
|
|
|
|
* @return ipPattern
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getIpPattern() {
|
|
|
|
|
|
return ipPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param ipPattern the ipPattern to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setIpPattern(Integer ipPattern) {
|
|
|
|
|
|
this.ipPattern = ipPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* portPattern
|
|
|
|
|
|
* @return portPattern
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public Integer getPortPattern() {
|
|
|
|
|
|
return portPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-18 10:49:08 +08:00
|
|
|
|
* @param portPattern the portPattern to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-18 10:49:08 +08:00
|
|
|
|
public void setPortPattern(Integer portPattern) {
|
|
|
|
|
|
this.portPattern = portPattern;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
2018-05-22 15:14:14 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* srcIpAddress
|
|
|
|
|
|
* @return srcIpAddress
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public String getSrcIpAddress() {
|
|
|
|
|
|
return srcIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param srcIpAddress the srcIpAddress to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setSrcIpAddress(String srcIpAddress) {
|
|
|
|
|
|
this.srcIpAddress = srcIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* destIpAddress
|
|
|
|
|
|
* @return destIpAddress
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public String getDestIpAddress() {
|
|
|
|
|
|
return destIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param destIpAddress the destIpAddress to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setDestIpAddress(String destIpAddress) {
|
|
|
|
|
|
this.destIpAddress = destIpAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* srcPort
|
|
|
|
|
|
* @return srcPort
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
public String getSrcPort() {
|
|
|
|
|
|
return srcPort;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param srcPort the srcPort to set
|
|
|
|
|
|
*/
|
|
|
|
|
|
public void setSrcPort(String srcPort) {
|
|
|
|
|
|
this.srcPort = srcPort;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
/**
|
2018-05-22 15:14:14 +08:00
|
|
|
|
* destPort
|
|
|
|
|
|
* @return destPort
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
|
|
|
|
|
|
2018-05-22 15:14:14 +08:00
|
|
|
|
public String getDestPort() {
|
|
|
|
|
|
return destPort;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
|
|
|
|
|
/**
|
2018-05-22 15:14:14 +08:00
|
|
|
|
* @param destPort the destPort to set
|
2018-02-07 14:51:11 +08:00
|
|
|
|
*/
|
2018-05-22 15:14:14 +08:00
|
|
|
|
public void setDestPort(String destPort) {
|
|
|
|
|
|
this.destPort = destPort;
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|
2018-06-25 16:55:45 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* dnsStrategyId
|
|
|
|
|
|
* @return dnsStrategyId
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
2018-07-30 18:14:22 +08:00
|
|
|
|
public Integer getDnsStrategyId() {
|
2018-06-25 16:55:45 +08:00
|
|
|
|
return dnsStrategyId;
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @param dnsStrategyId the dnsStrategyId to set
|
|
|
|
|
|
*/
|
2018-07-30 18:14:22 +08:00
|
|
|
|
public void setDnsStrategyId(Integer dnsStrategyId) {
|
2018-06-25 16:55:45 +08:00
|
|
|
|
this.dnsStrategyId = dnsStrategyId;
|
|
|
|
|
|
}
|
2018-02-23 09:34:58 +08:00
|
|
|
|
@Override
|
|
|
|
|
|
public void initDefaultValue(){
|
|
|
|
|
|
super.initDefaultValue();
|
|
|
|
|
|
this.direction = 0;
|
|
|
|
|
|
}
|
2018-02-07 14:51:11 +08:00
|
|
|
|
|
2018-09-25 11:56:04 +08:00
|
|
|
|
public List<NtcSubscribeIdCfg> getNtcSubscribeIdCfgList() {
|
|
|
|
|
|
return ntcSubscribeIdCfgList;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setNtcSubscribeIdCfgList(List<NtcSubscribeIdCfg> ntcSubscribeIdCfgList) {
|
|
|
|
|
|
this.ntcSubscribeIdCfgList = ntcSubscribeIdCfgList;
|
|
|
|
|
|
}
|
|
|
|
|
|
public NtcSubscribeIdCfg getNtcSubscribeIdCfg() {
|
|
|
|
|
|
return ntcSubscribeIdCfg;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setNtcSubscribeIdCfg(NtcSubscribeIdCfg ntcsSubscribeIdCfg) {
|
|
|
|
|
|
this.ntcSubscribeIdCfg = ntcsSubscribeIdCfg;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-02-07 14:51:11 +08:00
|
|
|
|
}
|