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/auth2/utils/RightManagerHelper.java | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Source/Client/PLTClient/src/com/vci/client/auth2/utils/RightManagerHelper.java b/Source/Client/PLTClient/src/com/vci/client/auth2/utils/RightManagerHelper.java index 74ff340..7627676 100644 --- a/Source/Client/PLTClient/src/com/vci/client/auth2/utils/RightManagerHelper.java +++ b/Source/Client/PLTClient/src/com/vci/client/auth2/utils/RightManagerHelper.java @@ -55,7 +55,7 @@ import com.vci.common.qt.object.Symbol; //import com.vci.corba.auth2.Auth2ServicePrx; import com.vci.corba.framework.data.GrandValue; -import com.vci.corba.framework.method.FrameworkServicePrx; +import com.vci.corba.framework.FrameworkServicePrx; import com.vci.corba.common.VCIError; import com.vci.corba.omd.btm.BtmItem; import com.vci.corba.omd.lcm.LifeCycle; @@ -66,20 +66,20 @@ import com.vci.corba.portal.data.PLAction; public class RightManagerHelper { - private static FrameworkServicePrx frameService = null; - - public static FrameworkServicePrx getFrameworkService() throws VCIError { - if (frameService != null) { - return frameService; - } - try { - - return frameService = ServiceProvider.getFrameService(); - } catch (Exception e) { - ClientLog4j.logger.error(e.getMessage(), e); - throw new VCIError("1", new String[] { e.getMessage() }); - } - } +// private static FrameworkServicePrx frameService = null; +// +// public static FrameworkServicePrx getFrameworkService() throws VCIError { +// if (frameService != null) { +// return frameService; +// } +// try { +// +// return frameService = ServiceProvider.getFrameService(); +// } catch (Exception e) { +// ClientLog4j.logger.error(e.getMessage(), e); +// throw new VCIError("1", new String[] { e.getMessage() }); +// } +// } public static BtmItem getResourceType(AbstractUIFunclet funclet) { @@ -103,7 +103,7 @@ public static GrandValue[] getRightDatas(String typeName) { GrandValue[] dataSets = null; try { - dataSets = getFrameworkService().queryGrand(typeName); + dataSets = ServiceProvider.getFrameService().queryGrand(typeName); } catch (Throwable e) { JOptionPane.showMessageDialog(LogonApplication.frame, ((VCIError) e).messages[0], "閿欒鎻愮ず", JOptionPane.ERROR_MESSAGE); -- Gitblit v1.9.3