213 lines
4.4 KiB
Java
213 lines
4.4 KiB
Java
/**
|
|
*@Title: BaseStringConfig.java
|
|
*@Package com.nis.domain.restful
|
|
*@Description TODO
|
|
*@author dell
|
|
*@date 2018年2月5日 下午5:26:02
|
|
*@version 版本号
|
|
*/
|
|
package com.nis.domain.configuration;
|
|
|
|
import java.util.List;
|
|
|
|
import com.google.gson.annotations.Expose;
|
|
import com.google.gson.annotations.SerializedName;
|
|
import com.nis.util.excel.ExcelField;
|
|
|
|
/**
|
|
* @Description: APP策略配置
|
|
* @author (dell)
|
|
* @date 2018年2月5日 下午5:26:02
|
|
* @version V1.0
|
|
*/
|
|
public class AppPolicyCfg extends BaseCfg<AppPolicyCfg> {
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -5679998383250783571L;
|
|
private static final String tableName="app_policy_cfg";
|
|
@Expose
|
|
private Integer compileId;
|
|
@Expose
|
|
private Integer ratelimit;
|
|
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
|
|
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
|
|
private Integer specServiceId;
|
|
private String appName;
|
|
private String behavName;
|
|
private String cfgKeywords;
|
|
private String userRegion1;
|
|
private String userRegion2;
|
|
private String userRegion3;
|
|
private String userRegion4;
|
|
private String userRegion5;
|
|
public String getBehavName() {
|
|
return behavName;
|
|
}
|
|
|
|
public void setBehavName(String behavName) {
|
|
this.behavName = behavName;
|
|
}
|
|
|
|
@Expose
|
|
@ExcelField(title="expression_type")
|
|
@SerializedName("exprType")
|
|
private Integer exprType ;
|
|
|
|
@Expose
|
|
@ExcelField(title="match_method")
|
|
@SerializedName("matchMethod")
|
|
private Integer matchMethod ;
|
|
|
|
@Expose
|
|
@ExcelField(title="whether_hexbinary")
|
|
@SerializedName("isHexbin")
|
|
private Integer isHexbin;
|
|
|
|
private List<IpPortCfg> ipPortList;
|
|
private IpPortCfg ipPort;
|
|
|
|
public Integer getExprType() {
|
|
return exprType;
|
|
}
|
|
|
|
public void setExprType(Integer exprType) {
|
|
this.exprType = exprType;
|
|
}
|
|
|
|
public Integer getMatchMethod() {
|
|
return matchMethod;
|
|
}
|
|
|
|
public void setMatchMethod(Integer matchMethod) {
|
|
this.matchMethod = matchMethod;
|
|
}
|
|
|
|
public Integer getIsHexbin() {
|
|
return isHexbin;
|
|
}
|
|
|
|
public void setIsHexbin(Integer isHexbin) {
|
|
this.isHexbin = isHexbin;
|
|
}
|
|
@Override
|
|
public void initDefaultValue() {
|
|
// TODO Auto-generated method stub
|
|
super.initDefaultValue();
|
|
this.isHexbin = 0;
|
|
}
|
|
|
|
|
|
public Integer getCompileId() {
|
|
return compileId;
|
|
}
|
|
public void setCompileId(Integer compileId) {
|
|
this.compileId = compileId;
|
|
}
|
|
|
|
public static String getTablename() {
|
|
return tableName;
|
|
}
|
|
|
|
public Integer getRatelimit() {
|
|
return ratelimit;
|
|
}
|
|
|
|
public void setRatelimit(Integer ratelimit) {
|
|
this.ratelimit = ratelimit;
|
|
}
|
|
public Integer getAppCode() {
|
|
return appCode;
|
|
}
|
|
public void setAppCode(Integer appCode) {
|
|
this.appCode = appCode;
|
|
}
|
|
public Integer getSpecServiceId() {
|
|
return specServiceId;
|
|
}
|
|
public void setSpecServiceId(Integer specServiceId) {
|
|
this.specServiceId = specServiceId;
|
|
}
|
|
|
|
public String getAppName() {
|
|
return appName;
|
|
}
|
|
|
|
public void setAppName(String appName) {
|
|
this.appName = appName;
|
|
}
|
|
public String getCfgKeywords() {
|
|
return cfgKeywords;
|
|
}
|
|
|
|
public void setCfgKeywords(String cfgKeywords) {
|
|
this.cfgKeywords = cfgKeywords;
|
|
}
|
|
|
|
public Integer getBehavCode() {
|
|
return behavCode;
|
|
}
|
|
|
|
public void setBehavCode(Integer behavCode) {
|
|
this.behavCode = behavCode;
|
|
}
|
|
|
|
public List<IpPortCfg> getIpPortList() {
|
|
return ipPortList;
|
|
}
|
|
|
|
public void setIpPortList(List<IpPortCfg> ipPortList) {
|
|
this.ipPortList = ipPortList;
|
|
}
|
|
|
|
public IpPortCfg getIpPort() {
|
|
return ipPort;
|
|
}
|
|
|
|
public void setIpPort(IpPortCfg ipPort) {
|
|
this.ipPort = ipPort;
|
|
}
|
|
|
|
public String getUserRegion1() {
|
|
return userRegion1;
|
|
}
|
|
|
|
public void setUserRegion1(String userRegion1) {
|
|
this.userRegion1 = userRegion1;
|
|
}
|
|
|
|
public String getUserRegion2() {
|
|
return userRegion2;
|
|
}
|
|
|
|
public void setUserRegion2(String userRegion2) {
|
|
this.userRegion2 = userRegion2;
|
|
}
|
|
|
|
public String getUserRegion3() {
|
|
return userRegion3;
|
|
}
|
|
|
|
public void setUserRegion3(String userRegion3) {
|
|
this.userRegion3 = userRegion3;
|
|
}
|
|
|
|
public String getUserRegion4() {
|
|
return userRegion4;
|
|
}
|
|
|
|
public void setUserRegion4(String userRegion4) {
|
|
this.userRegion4 = userRegion4;
|
|
}
|
|
|
|
public String getUserRegion5() {
|
|
return userRegion5;
|
|
}
|
|
|
|
public void setUserRegion5(String userRegion5) {
|
|
this.userRegion5 = userRegion5;
|
|
}
|
|
|
|
}
|