2018-06-22 18:46:01 +08:00
|
|
|
|
|
|
|
|
package com.nis.domain.configuration;
|
|
|
|
|
|
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
2018-10-24 18:36:31 +08:00
|
|
|
import com.nis.util.excel.ExcelField;
|
2018-06-22 18:46:01 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Description: APP策略配置
|
|
|
|
|
* @author (dell)
|
|
|
|
|
* @date 2018年2月5日 下午5:26:02
|
|
|
|
|
* @version V1.0
|
|
|
|
|
*/
|
|
|
|
|
public class AppIpCfg extends BaseCfg<AppIpCfg> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
private static final long serialVersionUID = 4758285716968228089L;
|
|
|
|
|
private static final String tableName="app_ip_cfg";
|
|
|
|
|
@Expose
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="cfg_id",sort=0)
|
2018-06-22 18:46:01 +08:00
|
|
|
private Integer compileId;
|
|
|
|
|
@Expose
|
2018-08-25 16:37:39 +08:00
|
|
|
private String ratelimit;
|
2018-06-28 17:16:58 +08:00
|
|
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
|
|
|
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
2018-06-22 18:46:01 +08:00
|
|
|
private Integer specServiceId;
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="social_app",sort=2)
|
2018-06-23 17:29:14 +08:00
|
|
|
private String appName;
|
2018-06-22 18:46:01 +08:00
|
|
|
@Expose
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=3)
|
2018-06-22 18:46:01 +08:00
|
|
|
@SerializedName("ipType")
|
|
|
|
|
protected Integer ipType;
|
2019-04-18 10:15:23 +08:00
|
|
|
protected Integer srcIpPattern;
|
|
|
|
|
protected Integer destIpPattern;
|
2018-06-22 18:46:01 +08:00
|
|
|
protected String srcIpAddress;
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="server_ip",sort=4)
|
2018-06-22 18:46:01 +08:00
|
|
|
protected String destIpAddress;
|
2019-04-18 10:15:23 +08:00
|
|
|
protected Integer srcPortPattern;
|
|
|
|
|
protected Integer destPortPattern;
|
2018-06-22 18:46:01 +08:00
|
|
|
protected String srcPort;
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="server_port",sort=5)
|
2018-06-22 18:46:01 +08:00
|
|
|
protected String destPort;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 方向
|
|
|
|
|
*/
|
|
|
|
|
@Expose
|
|
|
|
|
@SerializedName("direction")
|
|
|
|
|
protected Integer direction ;
|
|
|
|
|
/**
|
|
|
|
|
* 方向
|
|
|
|
|
*/
|
|
|
|
|
@Expose
|
2018-10-24 18:36:31 +08:00
|
|
|
@ExcelField(title="protocol",dictType="PROTOCOL",sort=6)
|
2018-06-22 18:46:01 +08:00
|
|
|
@SerializedName("protocol")
|
|
|
|
|
protected Integer protocol ;
|
|
|
|
|
/**
|
|
|
|
|
* 协议ID
|
|
|
|
|
*/
|
2018-06-25 10:44:38 +08:00
|
|
|
// @Expose
|
|
|
|
|
// @SerializedName("protocolId")
|
|
|
|
|
// protected Integer protocolId ;
|
2018-06-22 18:46:01 +08:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ipType
|
|
|
|
|
* @return ipType
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public Integer getIpType() {
|
|
|
|
|
return ipType;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @param ipType the ipType to set
|
|
|
|
|
*/
|
|
|
|
|
public void setIpType(Integer ipType) {
|
|
|
|
|
this.ipType = ipType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* direction
|
|
|
|
|
* @return direction
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public Integer getDirection() {
|
|
|
|
|
return direction;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @param direction the direction to set
|
|
|
|
|
*/
|
|
|
|
|
public void setDirection(Integer direction) {
|
|
|
|
|
this.direction = direction;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* protocol
|
|
|
|
|
* @return protocol
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public Integer getProtocol() {
|
|
|
|
|
return protocol;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @param protocol the protocol to set
|
|
|
|
|
*/
|
|
|
|
|
public void setProtocol(Integer protocol) {
|
|
|
|
|
this.protocol = protocol;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* protocolId
|
|
|
|
|
* @return protocolId
|
|
|
|
|
*/
|
|
|
|
|
|
2018-06-25 10:44:38 +08:00
|
|
|
// public Integer getProtocolId() {
|
|
|
|
|
// return protocolId;
|
|
|
|
|
// }
|
|
|
|
|
// /**
|
|
|
|
|
// * @param protocolId the protocolId to set
|
|
|
|
|
// */
|
|
|
|
|
// public void setProtocolId(Integer protocolId) {
|
|
|
|
|
// this.protocolId = protocolId;
|
|
|
|
|
// }
|
2018-06-22 18:46:01 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* srcIpAddress
|
|
|
|
|
* @return srcIpAddress
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public String getSrcIpAddress() {
|
|
|
|
|
return srcIpAddress;
|
|
|
|
|
}
|
2019-04-18 10:15:23 +08:00
|
|
|
public Integer getSrcIpPattern() {
|
|
|
|
|
return srcIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setSrcIpPattern(Integer srcIpPattern) {
|
|
|
|
|
this.srcIpPattern = srcIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getDestIpPattern() {
|
|
|
|
|
return destIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setDestIpPattern(Integer destIpPattern) {
|
|
|
|
|
this.destIpPattern = destIpPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getSrcPortPattern() {
|
|
|
|
|
return srcPortPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setSrcPortPattern(Integer srcPortPattern) {
|
|
|
|
|
this.srcPortPattern = srcPortPattern;
|
|
|
|
|
}
|
|
|
|
|
public Integer getDestPortPattern() {
|
|
|
|
|
return destPortPattern;
|
|
|
|
|
}
|
|
|
|
|
public void setDestPortPattern(Integer destPortPattern) {
|
|
|
|
|
this.destPortPattern = destPortPattern;
|
|
|
|
|
}
|
2018-06-22 18:46:01 +08:00
|
|
|
/**
|
|
|
|
|
* @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;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* destPort
|
|
|
|
|
* @return destPort
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
public String getDestPort() {
|
|
|
|
|
return destPort;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* @param destPort the destPort to set
|
|
|
|
|
*/
|
|
|
|
|
public void setDestPort(String destPort) {
|
|
|
|
|
this.destPort = destPort;
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void initDefaultValue(){
|
|
|
|
|
super.initDefaultValue();
|
|
|
|
|
this.direction = 0;
|
|
|
|
|
}
|
|
|
|
|
public Integer getCompileId() {
|
|
|
|
|
return compileId;
|
|
|
|
|
}
|
|
|
|
|
public void setCompileId(Integer compileId) {
|
|
|
|
|
this.compileId = compileId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String getTablename() {
|
|
|
|
|
return tableName;
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-25 16:37:39 +08:00
|
|
|
public String getRatelimit() {
|
2018-06-22 18:46:01 +08:00
|
|
|
return ratelimit;
|
|
|
|
|
}
|
|
|
|
|
|
2018-08-25 16:37:39 +08:00
|
|
|
public void setRatelimit(String ratelimit) {
|
2018-06-22 18:46:01 +08:00
|
|
|
this.ratelimit = ratelimit;
|
|
|
|
|
}
|
2018-06-28 17:16:58 +08:00
|
|
|
public Integer getAppCode() {
|
2018-06-22 18:46:01 +08:00
|
|
|
return appCode;
|
|
|
|
|
}
|
2018-06-28 17:16:58 +08:00
|
|
|
public void setAppCode(Integer appCode) {
|
2018-06-22 18:46:01 +08:00
|
|
|
this.appCode = appCode;
|
|
|
|
|
}
|
|
|
|
|
public Integer getSpecServiceId() {
|
|
|
|
|
return specServiceId;
|
|
|
|
|
}
|
|
|
|
|
public void setSpecServiceId(Integer specServiceId) {
|
|
|
|
|
this.specServiceId = specServiceId;
|
|
|
|
|
}
|
2018-06-23 17:29:14 +08:00
|
|
|
public String getAppName() {
|
|
|
|
|
return appName;
|
|
|
|
|
}
|
|
|
|
|
public void setAppName(String appName) {
|
|
|
|
|
this.appName = appName;
|
|
|
|
|
}
|
2018-06-28 17:16:58 +08:00
|
|
|
public Integer getBehavCode() {
|
|
|
|
|
return behavCode;
|
|
|
|
|
}
|
|
|
|
|
public void setBehavCode(Integer behavCode) {
|
|
|
|
|
this.behavCode = behavCode;
|
|
|
|
|
}
|
2018-11-12 17:26:44 +08:00
|
|
|
@Override
|
|
|
|
|
public String toString() {
|
|
|
|
|
return "AppIpCfg [compileId=" + compileId + ", ratelimit=" + ratelimit + ", appCode=" + appCode + ", behavCode="
|
|
|
|
|
+ behavCode + ", specServiceId=" + specServiceId + ", appName=" + appName + ", ipType=" + ipType
|
2019-04-18 10:15:23 +08:00
|
|
|
+ ", srcIpPattern=" + srcIpPattern + ", destIpPattern=" + destIpPattern + ", srcIpAddress="
|
|
|
|
|
+ srcIpAddress + ", destIpAddress=" + destIpAddress + ", srcPortPattern=" + srcPortPattern
|
|
|
|
|
+ ", destPortPattern=" + destPortPattern + ", srcPort=" + srcPort + ", destPort=" + destPort
|
|
|
|
|
+ ", direction=" + direction + ", protocol=" + protocol + "]";
|
2018-11-12 17:26:44 +08:00
|
|
|
}
|
2019-04-18 10:15:23 +08:00
|
|
|
|
2018-06-22 18:46:01 +08:00
|
|
|
}
|