补充addMessage().
This commit is contained in:
@@ -245,6 +245,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setConfigType(Constants.SPECIFIC_SERVICE_CFG_TYPE_APP);
|
entity.setConfigType(Constants.SPECIFIC_SERVICE_CFG_TYPE_APP);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppPolicyCfg(entity,isAudit);
|
appCfgService.auditAppPolicyCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app策略配置下发失败",e);
|
logger.error("app策略配置下发失败",e);
|
||||||
@@ -262,6 +263,7 @@ public class AppCfgController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -405,6 +407,7 @@ public class AppCfgController extends BaseController {
|
|||||||
for(List<AppIpCfg> entitys:dataMap.values()) {
|
for(List<AppIpCfg> entitys:dataMap.values()) {
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppIpCfg(entitys,isAudit);
|
appCfgService.auditAppIpCfg(entitys,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app协议IP配置下发失败",e);
|
logger.error("app协议IP配置下发失败",e);
|
||||||
@@ -422,6 +425,7 @@ public class AppCfgController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -553,6 +557,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppHttpCfg(entity,isAudit);
|
appCfgService.auditAppHttpCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app http配置下发失败",e);
|
logger.error("app http配置下发失败",e);
|
||||||
@@ -570,6 +575,7 @@ public class AppCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -698,6 +704,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppDomainCfg(entity,isAudit);
|
appCfgService.auditAppDomainCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app协议domain配置下发失败",e);
|
logger.error("app协议domain配置下发失败",e);
|
||||||
@@ -715,6 +722,7 @@ public class AppCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -836,6 +844,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppByteCfg(entity,isAudit);
|
appCfgService.auditAppByteCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app协议byte配置下发失败",e);
|
logger.error("app协议byte配置下发失败",e);
|
||||||
@@ -964,6 +973,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppSslCfg(entity,isAudit);
|
appCfgService.auditAppSslCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("app SSL配置下发失败",e);
|
logger.error("app SSL配置下发失败",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -980,6 +990,7 @@ public class AppCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -1122,6 +1133,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppTcpCfg(entity,isAudit);
|
appCfgService.auditAppTcpCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("app SSL配置下发失败",e);
|
logger.error("app SSL配置下发失败",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -1231,6 +1243,7 @@ public class AppCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appCfgService.auditAppHeaderCfg(entity,isAudit);
|
appCfgService.auditAppHeaderCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app Header配置下发失败",e);
|
logger.error("app Header配置下发失败",e);
|
||||||
@@ -1418,6 +1431,7 @@ public class AppCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -1567,6 +1581,7 @@ public class AppCfgController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
appBuiltInFeatureService.audit(isAudit,isValid,functionId,id,auditTime);
|
appBuiltInFeatureService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("appBuiltinFeature audit failed", e);
|
logger.error("appBuiltinFeature audit failed", e);
|
||||||
|
|||||||
@@ -128,6 +128,7 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
entity.setAppCode(specificService.getSpecServiceCode());
|
entity.setAppCode(specificService.getSpecServiceCode());
|
||||||
}
|
}
|
||||||
appMultiFeatureCfgService.saveOrUpdateAppFeatureCfg(entity);
|
appMultiFeatureCfgService.saveOrUpdateAppFeatureCfg(entity);
|
||||||
|
addMessage(redirectAttributes,"success", "save_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -169,6 +170,7 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
appMultiFeatureCfgService.auditAppFeatureCfg(entity,isAudit);
|
appMultiFeatureCfgService.auditAppFeatureCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("app 特征配置下发失败:"+e.getMessage());
|
logger.error("app 特征配置下发失败:"+e.getMessage());
|
||||||
@@ -186,6 +188,7 @@ public class AppFeatureCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -205,6 +205,7 @@ public class BasicProtocolController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ public class EncryptedTunnelBehaviorController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ public class DnsIpCfgController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
dnsIpCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
dnsIpCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("dns fake ip配置下发失败:"+e.getMessage());
|
logger.info("dns fake ip配置下发失败:"+e.getMessage());
|
||||||
@@ -165,6 +166,7 @@ public class DnsIpCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ public class DnsResStrategyController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
dnsResStrategyService.audit(isAudit,isValid,functionId,id,auditTime);
|
dnsResStrategyService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
addMessage(redirectAttributes,"error", "request_service_failed");
|
addMessage(redirectAttributes,"error", "request_service_failed");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@@ -147,6 +148,7 @@ public class DnsResStrategyController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ public class IpAddrPoolController extends BaseController{
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
ipAddrPoolCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
ipAddrPoolCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("SNAT地址池配置下发失败:"+e.getMessage());
|
logger.error("SNAT地址池配置下发失败:"+e.getMessage());
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ public class IpMultiplexPoolCfgController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
ipMultiplexPoolCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
ipMultiplexPoolCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("IP复用地址池配置下发失败:"+e.getMessage());
|
logger.info("IP复用地址池配置下发失败:"+e.getMessage());
|
||||||
|
|||||||
@@ -102,6 +102,7 @@ public class DdosCfgController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
ddosCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
ddosCfgService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("dns fake ip配置下发失败:"+e.getMessage());
|
logger.info("dns fake ip配置下发失败:"+e.getMessage());
|
||||||
@@ -120,6 +121,7 @@ public class DdosCfgController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -219,6 +219,7 @@ public class IpMultiplexController extends CommonController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
ipMultiplexService.auditSnatPolicy(isAudit,isValid,functionId,id,auditTime);
|
ipMultiplexService.auditSnatPolicy(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("SNAT策略配置下发失败:"+e.getMessage());
|
logger.error("SNAT策略配置下发失败:"+e.getMessage());
|
||||||
@@ -396,6 +397,7 @@ public class IpMultiplexController extends CommonController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
ipMultiplexService.auditDnatPolicy(isAudit,isValid,functionId,id,auditTime);
|
ipMultiplexService.auditDnatPolicy(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("DNAT策略配置下发失败:"+e.getMessage());
|
logger.error("DNAT策略配置下发失败:"+e.getMessage());
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ public class AvContentController extends BaseController {
|
|||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
avContentCfgService.updateAvVoipValid(isAudit,isValid,compileIds,functionId);
|
avContentCfgService.updateAvVoipValid(isAudit,isValid,compileIds,functionId);
|
||||||
|
addMessage(redirectAttributes,"success", "delete_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -217,6 +218,7 @@ public class AvContentController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
avContentCfgService.auditAvVoip(isAudit,isValid,functionId,id,auditTime);
|
avContentCfgService.auditAvVoip(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
@@ -238,6 +240,7 @@ public class AvContentController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -430,6 +433,7 @@ public class AvContentController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
avContentCfgService.auditContIp(isAudit,isValid,functionId,id,auditTime);
|
avContentCfgService.auditContIp(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
logger.error("Cont Ip配置下发失败",e);
|
logger.error("Cont Ip配置下发失败",e);
|
||||||
addMessage(redirectAttributes,"error","request_service_failed");
|
addMessage(redirectAttributes,"error","request_service_failed");
|
||||||
@@ -542,6 +546,7 @@ public class AvContentController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
avContentCfgService.auditPicIp(isAudit,isValid,functionId,id,auditTime);
|
avContentCfgService.auditPicIp(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("Pic Ip配置下发失败",e);
|
logger.error("Pic Ip配置下发失败",e);
|
||||||
@@ -678,6 +683,7 @@ public class AvContentController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
avContentCfgService.auditContUrl(isAudit,isValid,functionId,id,auditTime);
|
avContentCfgService.auditContUrl(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("Cont Url配置下发失败",e);
|
logger.info("Cont Url配置下发失败",e);
|
||||||
@@ -696,6 +702,7 @@ public class AvContentController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -828,6 +835,7 @@ public class AvContentController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
avContentCfgService.auditPicUrl(isAudit,isValid,functionId,id,auditTime);
|
avContentCfgService.auditPicUrl(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("Pic Url配置下发失败",e);
|
logger.info("Pic Url配置下发失败",e);
|
||||||
|
|||||||
@@ -406,6 +406,7 @@ public class AvController extends BaseController {
|
|||||||
if(!oldSampleUrl.equals(entity.getSampleUrl())){
|
if(!oldSampleUrl.equals(entity.getSampleUrl())){
|
||||||
FileUtils.deleteFile(oldSampleUrl);
|
FileUtils.deleteFile(oldSampleUrl);
|
||||||
}*/
|
}*/
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -424,6 +425,7 @@ public class AvController extends BaseController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -467,6 +469,7 @@ public class AvController extends BaseController {
|
|||||||
entity.setAuditTime(new Date());
|
entity.setAuditTime(new Date());
|
||||||
try {
|
try {
|
||||||
avCfgService.audioAuditAvSignSample(entity,isAudit,false);
|
avCfgService.audioAuditAvSignSample(entity,isAudit,false);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ public class BgpCfgController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
bgpCfgService.auditBgpCfg(entity,isAudit);
|
bgpCfgService.auditBgpCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("bgp配置下发失败",e);
|
logger.error("bgp配置下发失败",e);
|
||||||
@@ -167,6 +168,7 @@ public class BgpCfgController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -176,7 +178,6 @@ public class BgpCfgController extends BaseController{
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return bgpList(model, cfg, request, response);
|
return bgpList(model, cfg, request, response);
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/ntc/other/bgpList?functionId="+functionId;
|
return "redirect:" + adminPath +"/ntc/other/bgpList?functionId="+functionId;
|
||||||
|
|||||||
@@ -202,6 +202,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -319,6 +320,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
fileTransferCfgService.auditFileDigestCfg(isAudit,isValid,functionId,id,auditTime);
|
fileTransferCfgService.auditFileDigestCfg(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
logger.error("File Digest配置下发失败",e);
|
logger.error("File Digest配置下发失败",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -340,6 +342,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -588,6 +591,7 @@ public class FileTransferCfgController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ public class IpController extends BaseController{
|
|||||||
}else {
|
}else {
|
||||||
ipCfgService.auditIpCfg(entity,isAudit);
|
ipCfgService.auditIpCfg(entity,isAudit);
|
||||||
}
|
}
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.info("ip配置下发失败:"+e.getMessage());
|
logger.info("ip配置下发失败:"+e.getMessage());
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -187,6 +187,7 @@ public class IpController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ public class MailCfgController extends BaseController{
|
|||||||
logger.info("获取文件摘要响应信息:"+result);
|
logger.info("获取文件摘要响应信息:"+result);
|
||||||
}
|
}
|
||||||
mailCfgService.saveMailCfg(entity,result);
|
mailCfgService.saveMailCfg(entity,result);
|
||||||
|
addMessage(redirectAttributes,"success", "save_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
addMessage(redirectAttributes,"error","request_service_failed");
|
addMessage(redirectAttributes,"error","request_service_failed");
|
||||||
@@ -186,6 +187,7 @@ public class MailCfgController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
mailCfgService.auditMailCfg(entity,isAudit);
|
mailCfgService.auditMailCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("mail配置下发失败:"+e.getMessage());
|
logger.error("mail配置下发失败:"+e.getMessage());
|
||||||
@@ -206,6 +208,7 @@ public class MailCfgController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ public class WebsiteController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
websiteCfgService.auditHttpCfg(entity,isAudit);
|
websiteCfgService.auditHttpCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
logger.error("http配置下发失败:"+e.getMessage());
|
logger.error("http配置下发失败:"+e.getMessage());
|
||||||
addMessage(redirectAttributes,"error", "request_service_failed");
|
addMessage(redirectAttributes,"error", "request_service_failed");
|
||||||
@@ -243,6 +244,7 @@ public class WebsiteController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -350,6 +352,7 @@ public class WebsiteController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
websiteCfgService.auditSslCfg(entity,isAudit);
|
websiteCfgService.auditSslCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("ssl配置下发失败:"+e.getMessage());
|
logger.error("ssl配置下发失败:"+e.getMessage());
|
||||||
@@ -370,6 +373,7 @@ public class WebsiteController extends BaseController{
|
|||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
|
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -470,6 +474,7 @@ public class WebsiteController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
websiteCfgService.auditDnsCfg(entity,isAudit);
|
websiteCfgService.auditDnsCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("dns配置下发失败:"+e.getMessage());
|
logger.info("dns配置下发失败:"+e.getMessage());
|
||||||
@@ -487,6 +492,7 @@ public class WebsiteController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -133,6 +133,7 @@ public class WhiteListController extends CommonController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -278,6 +279,7 @@ public class WhiteListController extends CommonController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
domainService.auditDomainCfg(entity,isAudit);
|
domainService.auditDomainCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("domain配置下发失败:"+e.getMessage());
|
logger.error("domain配置下发失败:"+e.getMessage());
|
||||||
@@ -295,6 +297,7 @@ public class WhiteListController extends CommonController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ public class XmppController extends BaseController {
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
xmppCfgService.auditXmppCfg(entity,isAudit);
|
xmppCfgService.auditXmppCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("http配置下发失败:"+e.getMessage());
|
logger.info("http配置下发失败:"+e.getMessage());
|
||||||
|
|||||||
@@ -197,6 +197,7 @@ public class CachePolicyController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
cachePolicyService.auditCachePolicy(entity,isAudit);
|
cachePolicyService.auditCachePolicy(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("代理缓存策略下发失败:"+e.getMessage());
|
logger.info("代理缓存策略下发失败:"+e.getMessage());
|
||||||
@@ -214,6 +215,7 @@ public class CachePolicyController extends BaseController{
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ public class ControlPolicyController extends BaseController{
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
controlPolicyService.audit(isAudit,isValid,functionId,id,auditTime,Constants.REPLACE_REQ_KEY_VALUE);
|
controlPolicyService.audit(isAudit,isValid,functionId,id,auditTime,Constants.REPLACE_REQ_KEY_VALUE);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
logger.error("配置下发失败",e);
|
logger.error("配置下发失败",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -175,6 +176,7 @@ public class ControlPolicyController extends BaseController{
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
controlPolicyService.audit(isAudit,isValid,functionId,id,auditTime,Constants.REPLACE_RES_KEY_VALUE);
|
controlPolicyService.audit(isAudit,isValid,functionId,id,auditTime,Constants.REPLACE_RES_KEY_VALUE);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.error("配置下发失败",e);
|
logger.error("配置下发失败",e);
|
||||||
|
|||||||
@@ -150,6 +150,7 @@ public class FileStrategyController extends CommonController {
|
|||||||
,Integer functionId, RedirectAttributes redirectAttributes) {
|
,Integer functionId, RedirectAttributes redirectAttributes) {
|
||||||
if(!StringUtil.isEmpty(ids)){
|
if(!StringUtil.isEmpty(ids)){
|
||||||
proxyFileStrategyService.audit(isAudit, isValid, functionId, ids);
|
proxyFileStrategyService.audit(isAudit, isValid, functionId, ids);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
}
|
}
|
||||||
return "redirect:" + adminPath +"/proxy/fileStrategy/list?functionId="+functionId;
|
return "redirect:" + adminPath +"/proxy/fileStrategy/list?functionId="+functionId;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -244,6 +244,7 @@ public class HttpRedirectPolicyController extends BaseController{
|
|||||||
entity.setFunctionId(functionId);
|
entity.setFunctionId(functionId);
|
||||||
try {
|
try {
|
||||||
httpRedirectCfgService.auditHttpCfg(entity,isAudit);
|
httpRedirectCfgService.auditHttpCfg(entity,isAudit);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch ( Exception e) {
|
} catch ( Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
logger.info("http重定向配置下发失败:"+e.getMessage());
|
logger.info("http重定向配置下发失败:"+e.getMessage());
|
||||||
@@ -261,6 +262,7 @@ public class HttpRedirectPolicyController extends BaseController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -173,6 +173,7 @@ public class InterceptController extends CommonController{
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
@@ -355,6 +355,7 @@ public class PxyObjKeyringController extends BaseController {
|
|||||||
for(String id :idArray){
|
for(String id :idArray){
|
||||||
try {
|
try {
|
||||||
pxyObjKeyringService.audit(isAudit,isValid,functionId,id,auditTime);
|
pxyObjKeyringService.audit(isAudit,isValid,functionId,id,auditTime);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (MaatConvertException e) {
|
} catch (MaatConvertException e) {
|
||||||
logger.error(e);
|
logger.error(e);
|
||||||
addMessage(redirectAttributes,"error", "request_service_failed");
|
addMessage(redirectAttributes,"error", "request_service_failed");
|
||||||
@@ -371,6 +372,7 @@ public class PxyObjKeyringController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
@@ -871,6 +873,7 @@ public class PxyObjKeyringController extends BaseController {
|
|||||||
try {
|
try {
|
||||||
BeanUtils.copyProperties(searchPage, auditPage);
|
BeanUtils.copyProperties(searchPage, auditPage);
|
||||||
auditAll(auditPage,isValid , cfg);
|
auditAll(auditPage,isValid , cfg);
|
||||||
|
addMessage(redirectAttributes,"success", "audit_success");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("配置下发失败:",e);
|
logger.error("配置下发失败:",e);
|
||||||
if(e instanceof MaatConvertException) {
|
if(e instanceof MaatConvertException) {
|
||||||
|
|||||||
Reference in New Issue
Block a user