2018-12-17 00:21:27 +08:00
|
|
|
|
package com.nis.domain.configuration;
|
|
|
|
|
|
|
|
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
|
|
import com.nis.util.excel.ExcelField;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 代理欺骗IP池对象类
|
|
|
|
|
|
* @author dell
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
public class PxyObjSpoofingIpPool extends BaseIpCfg{
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
*
|
|
|
|
|
|
*/
|
|
|
|
|
|
private static final long serialVersionUID = 8149437730819674317L;
|
|
|
|
|
|
private String indexTable="ip_port_cfg";
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("port")
|
|
|
|
|
|
private String port;
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("addrType")
|
2018-12-23 00:36:58 +08:00
|
|
|
|
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=4)
|
2018-12-17 00:21:27 +08:00
|
|
|
|
private Integer ipType;
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("ip")
|
2018-12-23 00:36:58 +08:00
|
|
|
|
@ExcelField(title="IP",sort=5)
|
2018-12-17 00:21:27 +08:00
|
|
|
|
private String ipAddress;
|
2018-12-23 00:36:58 +08:00
|
|
|
|
@ExcelField(title="group",sort=3)
|
2018-12-17 00:21:27 +08:00
|
|
|
|
private String groupName;//欺骗IP池(IP组)名称
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("policyGroup")
|
|
|
|
|
|
private Integer groupId;//欺骗IP池(IP组)id
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("location")
|
|
|
|
|
|
private Integer location;//位置,无意义,固定为0
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("cfgId")
|
2018-12-23 00:36:58 +08:00
|
|
|
|
@ExcelField(title="cfg_id",sort=0)
|
2018-12-17 00:21:27 +08:00
|
|
|
|
private Integer compileId;
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("userRegion")
|
|
|
|
|
|
private String userRegion;
|
|
|
|
|
|
@Expose
|
|
|
|
|
|
@SerializedName("effectiveRange")
|
|
|
|
|
|
private String areaEffectiveIds ;
|
|
|
|
|
|
public String getIpAddress() {
|
|
|
|
|
|
return ipAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIpAddress(String ipAddress) {
|
|
|
|
|
|
this.ipAddress = ipAddress;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getGroupId() {
|
2018-12-28 19:24:36 +06:00
|
|
|
|
if((groupId==null || groupId==0) && cfgId!=null){
|
2018-12-27 21:00:23 +06:00
|
|
|
|
groupId=cfgId.intValue();
|
|
|
|
|
|
}
|
2018-12-17 00:21:27 +08:00
|
|
|
|
return groupId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setGroupId(Integer groupId) {
|
|
|
|
|
|
this.groupId = groupId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getLocation() {
|
|
|
|
|
|
return location;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setLocation(Integer location) {
|
|
|
|
|
|
this.location = location;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getCompileId() {
|
|
|
|
|
|
return compileId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setCompileId(Integer compileId) {
|
|
|
|
|
|
this.compileId = compileId;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getGroupName() {
|
|
|
|
|
|
return groupName;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setGroupName(String groupName) {
|
|
|
|
|
|
this.groupName = groupName;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getIndexTable() {
|
|
|
|
|
|
return indexTable;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIndexTable(String indexTable) {
|
|
|
|
|
|
this.indexTable = indexTable;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getPort() {
|
|
|
|
|
|
port="0";
|
|
|
|
|
|
return port;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setPort(String port) {
|
|
|
|
|
|
this.port = port;
|
|
|
|
|
|
}
|
|
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
|
return ipType;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getUserRegion() {
|
|
|
|
|
|
return userRegion;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setUserRegion(String userRegion) {
|
|
|
|
|
|
this.userRegion = userRegion;
|
|
|
|
|
|
}
|
|
|
|
|
|
public String getAreaEffectiveIds() {
|
|
|
|
|
|
return areaEffectiveIds;
|
|
|
|
|
|
}
|
|
|
|
|
|
public void setAreaEffectiveIds(String areaEffectiveIds) {
|
|
|
|
|
|
this.areaEffectiveIds = areaEffectiveIds;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|