From 9423f2936340d82b046ec615381c1c5e03698557 Mon Sep 17 00:00:00 2001 From: yuxc <yuxc@vci-tech.com> Date: 星期五, 27 九月 2024 17:56:53 +0800 Subject: [PATCH] 1、主要完成对获取UI上下文的定义接口的优化,优化的方向为对多次获取业务类型对象进行转换而导致耗时较久的问题继续修改,还有对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 2、对树的数据查询接口的优化,对多次获取属性对象进行转换对象导致耗时过长问题进行修改。 --- Source/Client/PLTClient/src/com/vci/client/framework/delegate/RightManagementClientDelegate.java | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Source/Client/PLTClient/src/com/vci/client/framework/delegate/RightManagementClientDelegate.java b/Source/Client/PLTClient/src/com/vci/client/framework/delegate/RightManagementClientDelegate.java index beb6721..f2c21f4 100644 --- a/Source/Client/PLTClient/src/com/vci/client/framework/delegate/RightManagementClientDelegate.java +++ b/Source/Client/PLTClient/src/com/vci/client/framework/delegate/RightManagementClientDelegate.java @@ -1,6 +1,5 @@ package com.vci.client.framework.delegate; -import java.sql.Timestamp; import java.text.Collator; import java.util.ArrayList; import java.util.Arrays; @@ -21,11 +20,11 @@ import com.vci.client.common.objects.UserEntityObject; import com.vci.client.common.objects.UserLogonObject; import com.vci.client.common.objects.UserObject; +import com.vci.client.common.providers.ServiceProvider; import com.vci.client.framework.appConfig.object.AppConfigDetailObject; import com.vci.client.framework.systemConfig.object.CombinationObject; import com.vci.client.framework.systemConfig.object.CombinationValueObject; import com.vci.client.framework.systemConfig.object.PasswordStrategyObject; -import com.vci.client.omd.enumManager.ui.EnumClient; import com.vci.client.ui.exception.VCIException; import com.vci.corba.common.VCIError; import com.vci.corba.common.data.VCIInvocationInfo; @@ -38,6 +37,7 @@ import com.vci.corba.framework.data.UserLogonInfo; import com.vci.corba.omd.etm.EnumChild; import com.vci.corba.omd.etm.EnumItem; +import com.vci.corba.log.data.LogType; public class RightManagementClientDelegate extends ClientBaseDelegate { @@ -1408,7 +1408,7 @@ // 浣跨敤IP瀵嗙骇鏋氫妇鐨勬渶灏忓�� EnumItem enumItem; try { - enumItem = EnumClient.getService().getEmItemByName("ipsecurityenum"); + enumItem = ServiceProvider.getOMDService().getEnumService().getEmItemByName("ipsecurityenum"); List<EnumChild> childs = new LinkedList<EnumChild>(); if(enumItem == null || enumItem.children.length == 0) return "10"; for(EnumChild child : enumItem.children){ @@ -1547,18 +1547,21 @@ */ public void savelog(String content) throws VCIException{ try{ - ClientSession.getFrameworkService().savelog(content, userEntityInfo); + ServiceProvider.getLogService().saveLoginLog(true, content, userEntityInfo); }catch(VCIError e){ throw new VCIException(String.valueOf(e.code), e.messages); } } + + public void saveLogV2(String result, String content, String type, int logTypeIntVal, String dataObjOid) throws VCIException{ try{ - ClientSession.getFrameworkService().saveLogV2(result, content, type, (short)logTypeIntVal, dataObjOid, userEntityInfo); + ServiceProvider.getLogService().saveLog(result, content, type, LogType.valueOf(logTypeIntVal), dataObjOid, userEntityInfo); }catch(VCIError e){ throw new VCIException(String.valueOf(e.code), e.messages); } } + //add by caill start 2016.9.13鐢ㄦ埛琚攣瀹氱殑鏃ュ織 /** * @@ -1571,7 +1574,7 @@ */ public void blocklog(String userId) throws VCIException{ try{ - ClientSession.getFrameworkService().blocklog(userId, userEntityInfo); + ServiceProvider.getLogService().saveLockLog(userId, userEntityInfo); }catch(VCIError e){ throw new VCIException(String.valueOf(e.code), e.messages); } @@ -1588,12 +1591,12 @@ */ public void savelogFail(String message) throws VCIException{ try{ - ClientSession.getFrameworkService().savelogfail(message, userEntityInfo); + ServiceProvider.getLogService().saveLoginLog(false, message, userEntityInfo); }catch(VCIError e){ throw new VCIException(String.valueOf(e.code), e.messages); } - } + /** * 鍒嗛〉鏌ヨ瀵嗙爜缁勫悎鏂瑰紡 * <p>Description: </p> -- Gitblit v1.9.3