| | |
| | | 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; |
| | |
| | | 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) { |
| | |
| | | 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); |