劫持、注入、镜像、阻断页面、拦截证书内容引用时的处理
This commit is contained in:
@@ -459,9 +459,7 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyObjKeyring> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
PxyObjKeyring cfg = (PxyObjKeyring)object;
|
||||
if(!"1".equals(cfg.getUserRegion4())){
|
||||
convertList.add(BaseService.convertCallBackProxyObjKeyring(cfg));
|
||||
}
|
||||
convertList.add(BaseService.convertCallBackProxyObjKeyring(cfg));
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -484,20 +482,16 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileHijackCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileHijackCfg cfg = (ProxyFileHijackCfg)object;
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileHijack(cfg));
|
||||
}
|
||||
convertList.add(BaseService.convertCallBackProxyFileHijack(cfg));
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
}
|
||||
}else if(entity.getServiceId().equals(644)) { // 脚本注入
|
||||
}else if(entity.getServiceId().equals(644)) { // 劫持文件
|
||||
List<ProxyFileInsertScriptCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileInsertScriptCfg cfg = (ProxyFileInsertScriptCfg)object;
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileInsertScript(cfg));
|
||||
}
|
||||
convertList.add(BaseService.convertCallBackProxyFileInsertScript(cfg));
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -506,9 +500,7 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileTrafficMirrorCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileTrafficMirrorCfg cfg = (ProxyFileTrafficMirrorCfg)object;
|
||||
if(!"1".equals(cfg.getUserRegion5())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileTrafficMirror(cfg));
|
||||
}
|
||||
convertList.add(BaseService.convertCallBackProxyFileTrafficMirror(cfg));
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -526,9 +518,7 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileResponsePageCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileResponsePageCfg cfg = (ProxyFileResponsePageCfg)object;
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileResponsePage(cfg));
|
||||
}
|
||||
convertList.add(BaseService.convertCallBackProxyFileResponsePage(cfg));
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.nis.web.service.configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.nis.domain.configuration.CfgIndexInfo;
|
||||
import com.nis.web.dao.configuration.WebsiteCfgDao;
|
||||
import com.nis.web.service.CrudService;
|
||||
|
||||
@Service
|
||||
public class StatusOfUsedService extends CrudService<WebsiteCfgDao, CfgIndexInfo> {
|
||||
|
||||
@Autowired
|
||||
protected WebsiteCfgDao websiteCfgDao;
|
||||
|
||||
public List<CfgIndexInfo> getStatusOfUsed(CfgIndexInfo entity){
|
||||
return websiteCfgDao.getStatusOfUsed(entity);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user