(1)修复app等选择行为的时候表达式为与表达式

(2)http,dns,mail,ftp,url配置导入提交
This commit is contained in:
wangxin
2018-10-20 23:38:56 +08:00
parent 16e8b9b855
commit 3be9eb7aea
12 changed files with 450 additions and 67 deletions

View File

@@ -104,7 +104,11 @@ public class FileTransferCfgService extends CrudService<FileTransferCfgDao,CfgIn
return dataMap;
}
public void saveFtpCfg(List<BaseStringCfg<?>> cfgs){
for(BaseStringCfg cfg:cfgs){
fileTransferCfgDao.saveFtpKeywordCfg(cfg);
}
}
/**
* 保存ftp配置
* @param entity

View File

@@ -84,6 +84,15 @@ public class InterceptCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo>
return entity;
}
public void saveInterceptCfg(List<BaseStringCfg<?>> interceptPktBins){
for(BaseStringCfg cfg:interceptPktBins){
InterceptPktBin _cfg=new InterceptPktBin();
BeanUtils.copyProperties(cfg, _cfg);
if(StringUtils.isNotBlank(cfg.getCfgKeywords())){
interceptCfgDao.saveInterceptPktBin(_cfg);
}
}
}
public void saveInterceptCfg(CfgIndexInfo entity){
if(!entity.getAction().equals(Constants.REPLACE_ACTION)){
entity.setInterceptPktBinList(null);

View File

@@ -95,7 +95,11 @@ public class MailCfgService extends CrudService<MailCfgDao,CfgIndexInfo> {
dataMap.put("NTC_UNIVERSAL_IP", ipPortList);
return dataMap;
}
public void saveMailCfg(List<ComplexkeywordCfg> complexkeywordCfgs){
for(ComplexkeywordCfg cfg:complexkeywordCfgs){
mailCfgDao.saveMailKeywordCfg(cfg);
}
}
/**
* 保存mail配置
* @param entity

View File

@@ -824,6 +824,18 @@ public class WebsiteCfgService extends CrudService<WebsiteCfgDao,CfgIndexInfo> {
logger.info("ssl配置取消配置响应信息"+result.getMsg());
}
}
public void saveDnsCfg(List<ComplexkeywordCfg> complexkeywordCfgs){
for(ComplexkeywordCfg cfg:complexkeywordCfgs){
websiteCfgDao.saveDnsDomainCfg(cfg);
}
}
public void saveHttpUrlCfg(List<BaseStringCfg<?>> cfgs){
for(BaseStringCfg cfg:cfgs){
HttpUrlCfg _cfg=new HttpUrlCfg();
BeanUtils.copyProperties(cfg, _cfg);
websiteCfgDao.saveHttpUrlCfg(_cfg);
}
}
/**
* 保存dns配置
* @param entity