增加导出功能

This commit is contained in:
leijun
2018-10-24 18:36:31 +08:00
parent 2f2812a7e8
commit ae98d37d01
42 changed files with 1301 additions and 305 deletions

View File

@@ -31,11 +31,14 @@ public class AppComplexFeatureCfg extends BaseCfg<AppComplexFeatureCfg> {
*/
private static final String tableName="app_complex_feature_cfg";
@Expose
@ExcelField(title="cfg_id",sort=0)
private Integer compileId;
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="district",sort=1)
private String district;
@ExcelField(title="key_word",sort=201)
private String cfgKeywords;
private String appName;
private List<AppIpCfg> ipPortList = new ArrayList();
@@ -48,20 +51,54 @@ public class AppComplexFeatureCfg extends BaseCfg<AppComplexFeatureCfg> {
this.cfgRegionCode1 = cfgRegionCode1;
}
/**
* 表达式类型
*/
@Expose
@ExcelField(title="expression_type")
@ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=202)
@SerializedName("exprType")
protected Integer exprType ;
/**
* 匹配方式
*/
@Expose
@ExcelField(title="match_method")
@ExcelField(title="match_method",dictType="MATCH_METHOD",sort=203)
@SerializedName("matchMethod")
protected Integer matchMethod ;
/**
* 是否hex
*/
@ExcelField(title="is_hex",sort=204)
protected Integer isHex;
/**
* 是否hex
*/
@ExcelField(title="is_case_insenstive",sort=205)
protected Integer isCaseInsenstive;
/**
* 是否hex二进制
*/
@Expose
@ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin")
protected Integer isHexbin;
public Integer getIsHex() {
return isHex;
}
public void setIsHex(Integer isHex) {
this.isHex = isHex;
}
public Integer getIsCaseInsenstive() {
return isCaseInsenstive;
}
public void setIsCaseInsenstive(Integer isCaseInsenstive) {
this.isCaseInsenstive = isCaseInsenstive;
}
public Integer getExprType() {
return exprType;

View File

@@ -26,29 +26,66 @@ public class AppDomainCfg extends BaseCfg<AppDomainCfg> {
private static final long serialVersionUID = -4685445179478960429L;
private static final String tableName="app_domain_cfg";
@Expose
@ExcelField(title="cfg_id",sort=0)
private Integer compileId;
@Expose
private String ratelimit;
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="domain",sort=3)
private String domain;
private String cfgKeywords;
@ExcelField(title="social_app",sort=2)
private String appName;
/**
* 表达式类型
*/
@Expose
@ExcelField(title="expression_type")
@ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=7)
@SerializedName("exprType")
protected Integer exprType ;
/**
* 匹配方式
*/
@Expose
@ExcelField(title="match_method")
@ExcelField(title="match_method",dictType="MATCH_METHOD",sort=8)
@SerializedName("matchMethod")
protected Integer matchMethod ;
@Expose
@ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin")
protected Integer isHexbin;
/**
* 是否hex
*/
@ExcelField(title="is_hex",sort=5)
protected Integer isHex;
/**
* 是否hex
*/
@ExcelField(title="is_case_insenstive",sort=6)
protected Integer isCaseInsenstive;
public Integer getIsHex() {
return isHex;
}
public void setIsHex(Integer isHex) {
this.isHex = isHex;
}
public Integer getIsCaseInsenstive() {
return isCaseInsenstive;
}
public void setIsCaseInsenstive(Integer isCaseInsenstive) {
this.isCaseInsenstive = isCaseInsenstive;
}
public Integer getExprType() {
return exprType;

View File

@@ -12,6 +12,7 @@ import java.util.ArrayList;
import java.util.List;
import com.nis.domain.basics.AsnIpCfg;
import com.nis.util.excel.ExcelField;
/**
@@ -28,6 +29,7 @@ public class AppFeatureIndex extends BaseCfg<AppFeatureIndex> {
private static final long serialVersionUID = -8069201965300255275L;
private static final String tableName="app_feature_index";
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
@ExcelField(title="social_app",sort=2)
private String appName;
private Integer specServiceId;
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code

View File

@@ -26,30 +26,68 @@ public class AppHttpCfg extends BaseCfg<AppHttpCfg> {
private static final long serialVersionUID = 7528723915857911560L;
private static final String tableName="app_http_cfg";
@Expose
@ExcelField(title="cfg_id",sort=0)
private Integer compileId;
@Expose
private String ratelimit;
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="district",sort=3)
private String district;
@ExcelField(title="key_word",sort=4)
private String cfgKeywords;
@ExcelField(title="social_app",sort=2)
private String appName;
/**
* 表达式类型
*/
@Expose
@ExcelField(title="expression_type")
@ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=7)
@SerializedName("exprType")
protected Integer exprType ;
/**
* 匹配方式
*/
@Expose
@ExcelField(title="match_method")
@ExcelField(title="match_method",dictType="MATCH_METHOD",sort=8)
@SerializedName("matchMethod")
protected Integer matchMethod ;
@Expose
@ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin")
protected Integer isHexbin;
/**
* 是否hex
*/
@ExcelField(title="is_hex",sort=5)
protected Integer isHex;
/**
* 是否hex
*/
@ExcelField(title="is_case_insenstive",sort=6)
protected Integer isCaseInsenstive;
public Integer getIsHex() {
return isHex;
}
public void setIsHex(Integer isHex) {
this.isHex = isHex;
}
public Integer getIsCaseInsenstive() {
return isCaseInsenstive;
}
public void setIsCaseInsenstive(Integer isCaseInsenstive) {
this.isCaseInsenstive = isCaseInsenstive;
}
public Integer getExprType() {
return exprType;

View File

@@ -3,6 +3,7 @@ package com.nis.domain.configuration;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.nis.util.excel.ExcelField;
/**
* @Description: APP策略配置
@@ -18,21 +19,26 @@ public class AppIpCfg extends BaseCfg<AppIpCfg> {
private static final long serialVersionUID = 4758285716968228089L;
private static final String tableName="app_ip_cfg";
@Expose
@ExcelField(title="cfg_id",sort=0)
private Integer compileId;
@Expose
private String ratelimit;
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="social_app",sort=2)
private String appName;
@Expose
@ExcelField(title="ip_type",dictType="IP_TYPE",sort=3)
@SerializedName("ipType")
protected Integer ipType;
protected Integer ipPattern;
protected String srcIpAddress;
@ExcelField(title="server_ip",sort=4)
protected String destIpAddress;
protected Integer portPattern;
protected String srcPort;
@ExcelField(title="server_port",sort=5)
protected String destPort;
/**
@@ -45,6 +51,7 @@ public class AppIpCfg extends BaseCfg<AppIpCfg> {
* 方向
*/
@Expose
@ExcelField(title="protocol",dictType="PROTOCOL",sort=6)
@SerializedName("protocol")
protected Integer protocol ;
/**

View File

@@ -25,30 +25,68 @@ public class AppSslCertCfg extends BaseCfg<AppSslCertCfg> {
private static final long serialVersionUID = -4366457794248757698L;
private static final String tableName="app_ssl_cert_cfg";
@Expose
@ExcelField(title="cfg_id",sort=0)
private Integer compileId;
@Expose
private String ratelimit;
private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
private Integer behavCode;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="district",sort=3)
private String district;
@ExcelField(title="key_word",sort=4)
private String cfgKeywords;
@ExcelField(title="social_app",sort=2)
private String appName;
/**
* 表达式类型
*/
@Expose
@ExcelField(title="expression_type")
@ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=7)
@SerializedName("exprType")
protected Integer exprType ;
/**
* 匹配方式
*/
@Expose
@ExcelField(title="match_method")
@ExcelField(title="match_method",dictType="MATCH_METHOD",sort=8)
@SerializedName("matchMethod")
protected Integer matchMethod ;
@Expose
@ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin")
protected Integer isHexbin;
/**
* 是否hex
*/
@ExcelField(title="is_hex",sort=5)
protected Integer isHex;
/**
* 是否hex
*/
@ExcelField(title="is_case_insenstive",sort=6)
protected Integer isCaseInsenstive;
public Integer getIsHex() {
return isHex;
}
public void setIsHex(Integer isHex) {
this.isHex = isHex;
}
public Integer getIsCaseInsenstive() {
return isCaseInsenstive;
}
public void setIsCaseInsenstive(Integer isCaseInsenstive) {
this.isCaseInsenstive = isCaseInsenstive;
}
public Integer getExprType() {
return exprType;

View File

@@ -28,30 +28,63 @@ public class AppTopicDomainCfg extends BaseCfg<AppTopicDomainCfg> {
@Expose
private String ratelimit;
// private Integer appCode;//specific_service_cfg表一级节点的spec_service_code
@ExcelField(title="website_server",dictType="WEBSITE_SERVER",sort=3)
private Long websiteServiceId;//specific_service_cfg表二级节点的spec_service_code
private Integer specServiceId;
@ExcelField(title="domain",sort=4)
private String domain;
private String cfgKeywords;
private String appName;
@ExcelField(title="topic",dictType="TOPIC",sort=2)
private Long topicId;
/**
* 表达式类型
*/
@Expose
@ExcelField(title="expression_type")
@ExcelField(title="expression_type",dictType="EXPRESSION_TYPE",sort=7)
@SerializedName("exprType")
protected Integer exprType ;
/**
* 匹配方式
*/
@Expose
@ExcelField(title="match_method")
@ExcelField(title="match_method",dictType="MATCH_METHOD",sort=8)
@SerializedName("matchMethod")
protected Integer matchMethod ;
@Expose
@ExcelField(title="whether_hexbinary")
@SerializedName("isHexbin")
protected Integer isHexbin;
/**
* 是否hex
*/
@ExcelField(title="is_hex",sort=5)
protected Integer isHex;
/**
* 是否hex
*/
@ExcelField(title="is_case_insenstive",sort=6)
protected Integer isCaseInsenstive;
public Integer getIsHex() {
return isHex;
}
public void setIsHex(Integer isHex) {
this.isHex = isHex;
}
public Integer getIsCaseInsenstive() {
return isCaseInsenstive;
}
public void setIsCaseInsenstive(Integer isCaseInsenstive) {
this.isCaseInsenstive = isCaseInsenstive;
}
public Long getTopicId() {
return topicId;

View File

@@ -200,5 +200,14 @@ public class BaseStringCfg<T> extends BaseCfg<T> {
}
return list;
}
public static List<BaseStringCfg> baseHexList(List<BaseStringCfg> list){
for (int i = 0; i < list.size(); i++) {
BaseStringCfg base=(BaseStringCfg)list.get(i);
base.setIsHex(base.getIsHexbin());
base.setIsCaseInsenstive(base.getIsHexbin());
}
return list;
}
}

View File

@@ -13,6 +13,7 @@ import java.util.Date;
import com.google.gson.annotations.Expose;
import com.nis.domain.BaseEntity;
import com.nis.domain.SysUser;
import com.nis.util.excel.ExcelField;
/**
* @ClassName: DnsIpConfig.java
@@ -27,6 +28,7 @@ public class DnsIpCfg extends BaseIpCfg {
*/
private static final long serialVersionUID = 8149437730819674317L;
private String indexTable="dns_ip_cfg";
@ExcelField(title="group",sort=3)
private String dnsStrategyName;
private Integer dnsStrategyId;

View File

@@ -2,6 +2,8 @@ package com.nis.domain.configuration;
import javax.net.ssl.KeyManager;
import com.nis.util.excel.ExcelField;
/**
* dns响应策略配置
* @author dell
@@ -14,6 +16,7 @@ public class DnsResStrategy extends BaseCfg<DnsResStrategy> {
private static final long serialVersionUID = -2720862431960415564L;
private String indexTable="dns_res_strategy";
private Integer resGroup1Id;
@ExcelField(title="res_group_num",sort=3)
private Integer resGroup1Num;
private Integer resGroup2Id;
private Integer resGroup2Num;
@@ -25,7 +28,11 @@ public class DnsResStrategy extends BaseCfg<DnsResStrategy> {
private Integer resGroup5Num;
private Integer minTtl;
private Integer maxTtl;
@ExcelField(title="group",sort=2)
private String group1Name;
@ExcelField(title="min_ttl",sort=4)
private String miTtlmax;
@Override
public void initDefaultValue() {
this.resGroup2Id=0;
@@ -37,6 +44,18 @@ public class DnsResStrategy extends BaseCfg<DnsResStrategy> {
this.resGroup5Id=0;
this.resGroup5Num=0;
}
public String getMiTtlmax() {
return miTtlmax;
}
public void setMiTtlmax(String miTtlmax) {
this.miTtlmax = miTtlmax;
}
public Integer getResGroup1Id() {
return resGroup1Id;
}

View File

@@ -2,6 +2,8 @@ package com.nis.domain.configuration;
import java.util.Date;
import com.nis.util.excel.ExcelField;
/**
* 拦截证书策略
* @author dell
@@ -14,16 +16,34 @@ public class PxyObjKeyring extends BaseCfg<PxyObjKeyring> {
*/
private static final long serialVersionUID = -2720862431960415564L;
private String indexTable="pxy_obj_keyring";
@ExcelField(title="keyring_type",dictType="INTERCEPT_CERTIFICATE_TYPE",sort=2)
private String keyringType;
@ExcelField(title="private_key_file",sort=3)
private String privateKeyFile;
@ExcelField(title="public_key_file",sort=4)
private String publicKeyFile;
@ExcelField(title="expire_after",sort=5)
private Integer expireAfter;
private String publicKeyAlgo;
private String crl;
@ExcelField(title="issuer",sort=6)
private String issuer;
@ExcelField(title="not_before_time",sort=8)
private Date notBeforeTime;
@ExcelField(title="not_after_time",sort=9)
private Date notAfterTime;
@ExcelField(title="certificate_subject",sort=7)
private String subject;
@ExcelField(title="keyring_name",sort=1)
private String keyringName;
public String getKeyringName() {
return keyringName;
}
public void setKeyringName(String keyringName) {
this.keyringName = keyringName;
}
public String getKeyringType() {
return keyringType;
}