(1)修复app等选择行为的时候表达式为与表达式
(2)http,dns,mail,ftp,url配置导入提交
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user