package com.vci.server.portal; import java.util.Date; import org.omg.CORBA.IntHolder; import com.vci.corba.portal.PortalService; import com.vci.corba.portal.data.Constraint; import com.vci.corba.portal.data.PLAction; import com.vci.corba.portal.data.PLActionCls; import com.vci.corba.portal.data.PLActionParam; import com.vci.corba.portal.data.PLCommandParameter; import com.vci.corba.portal.data.PLPageDefination; import com.vci.corba.portal.data.PLUILayout; import com.vci.corba.portal.data.PLTabButton; import com.vci.corba.portal.data.PLTabPage; import com.vci.corba.portal.data.PLTypeAction; import com.vci.corba.portal.data.PortalVI; import com.vci.server.BaseService; import com.vci.server.base.exception.ExceptionLocalHandler; import com.vci.server.portal.delegate.PortalServiceDelegate; import com.zeroc.Ice.Current; import com.vci.common.ServiceNames; import com.vci.common.exception.VciExceptionTool; import com.vci.corba.common.VCIError; public class PortalServiceImpl extends BaseService implements PortalService { PortalServiceDelegate delegate = null; public PortalServiceImpl() { // ActionClsCacheUtil.initCache(); // ActionCacheUtil.initCache(); // ActionParamCacheUtil.initCache(); // ComponentCacheUtil.initCache(); // ComponentBtnCacheUtil.initCache(); // ButtonParamCacheUtil.initCache(); // UIContextCacheUtil.initCache(); // PortalVICacheUtil.initCache(); // TabPageCacheUtil.initCache(); } private VCIError getLocalVciError(String key, Throwable e) { VCIError error = new VCIError(key, new String[]{VciExceptionTool.getExceptionStr(e), VciExceptionTool.getExceptionDetail(e)}); VCIError rsError = ExceptionLocalHandler.getInstance().getLocalString(error, "PLMUIService"); return rsError; } private PortalServiceDelegate getPortalServiceDelegate() { delegate = PortalServiceDelegate.getInstance(); return delegate; } @Override public String getServiceName() { return ServiceNames.UISERVICE; } @Override public void test(com.zeroc.Ice.Current current) { String op = current.operation; String adapter = current.adapter.getName(); String id = current.id.name; String time = new Date().toString(); System.out.println(String.format("== %s [PortalService.test] (adapter=%s, id=%s, op=%s)", time, adapter, id, op)); } /** * 保存视图 */ @Override public boolean savePortalVI(PortalVI portalVI, Current current) throws VCIError{ try{ return getPortalServiceDelegate().savePortalVI(portalVI); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00001", e); } } /** * 更新视图 */ @Override public boolean updatePortalVI(PortalVI portalVI, Current current) throws VCIError{ try{ return getPortalServiceDelegate().updatePortalVI(portalVI); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00002", e); } } /** * 删除视图 */ @Override public boolean deletePortalVI(PortalVI portalVI, Current current) throws VCIError{ try{ return getPortalServiceDelegate().deletePortalVI(portalVI); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00003", e); } } /** * 删除指定ID的视图 */ @Override public boolean deletePortalVIByID(String id, Current current) throws VCIError{ try{ return getPortalServiceDelegate().deletePortalVIByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00003", e); } } /** * 获取指定类型下的所有视图 */ @Override public PortalVI[] getPortalVIArrayByTypeName(String typeName, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPortalVIArrayByTypeName(typeName); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } // @Override // public PortalVI[] getPagePortalVIArrayByTypeName(String typeName, long startPage, long endPage, Current current) throws VCIError { // // try{ // return getPortalServiceDelegate().getPagePortalVIArrayByTypeName(typeName, startPage, endPage); // }catch(Throwable e){ // e.printStackTrace(); // throw this.getLocalVciError("P0010UIService-00004", e); // } // } // // // @Override // public PortalVI[] getPagePortalVIArrayByCondition(String typeName, // short sheetType, String sheetName, long startPage, long endPage, Current current) // throws VCIError { // try{ // return getPortalServiceDelegate().getPagePortalVIArrayByCondition(typeName, sheetType, sheetName, startPage, endPage); // }catch(Throwable e){ // e.printStackTrace(); // throw this.getLocalVciError("P0010UIService-00004", e); // } // } /** * 根据翻页参数返回表单 * @param typeName 表单所在类型名称 * @param viName 表单名称 模糊查询 * @param viType 表单类型 PortalVIType.Table|Form * @param viTypeFlag 表单类型标识 PortalVITypeFlag.BtmType|LinkType * @param pageIndex 页号 * @param pageSize 页大小 * @param total 输出参数总数 * @return * @throws Throwable */ @Override public GetPagePortalVIArrayByPageInfoResult getPagePortalVIArrayByPageInfo(String typeName, String viName, short viType, short viTypeFlag, long pageIndex, long pageSize, Current current) throws VCIError { try{ IntHolder total = new IntHolder(); PortalVI[] vis = getPortalServiceDelegate().getPagePortalVIArrayByPageInfo( typeName, viName, viType, viTypeFlag, pageIndex, pageSize, total); return new GetPagePortalVIArrayByPageInfoResult(vis, total.value); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } /** * 根据OID级联删除表单 * @param oids 表单 oids * @return * @throws Throwable */ @Override public boolean deletePagePortalVIForCascade(String[] oids, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePagePortalVIForCascade(oids); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00003", e); } } @Override public long getPortalVICountByTypeName(String typeName, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPortalVICountByTypeName(typeName); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } @Override public long getPortalVICountByCondition(String typeName, short sheetType, String sheetName, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPortalVICountByCondition(typeName, sheetType, sheetName); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } /** * 获取指定ID的视图 */ @Override public PortalVI getPortalVIById(String id, Current current) throws VCIError{ try{ return getPortalServiceDelegate().getPortalVIById(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00005", e); } } /** * 获取指定标示的视图 */ @Override public PortalVI getPortalVIBySymbol(String symbol, Current current) throws VCIError{ try{ return getPortalServiceDelegate().getPortalVIBySymbol(symbol); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00005", e); } } /** * 保存Action */ @Override public boolean savePLAction(PLAction plAction, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLAction(plAction); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00006", e); } } /** * 更新Action */ @Override public boolean updatePLAction(PLAction plAction, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLAction(plAction); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00007", e); } } /** * 删除Action */ @Override public boolean deletePLAction(PLAction plAction, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLAction(plAction); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00008", e); } } /** * 删除Action */ @Override public boolean deletePLActionByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLActionByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00008", e); } } /** * 保存command参数 */ @Override public boolean savePLCommandParameter(PLCommandParameter plCommandParameter, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLCommandParameter(plCommandParameter); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00009", e); } } /** * 更新command参数 */ @Override public boolean updatePLCommandParameter( PLCommandParameter plCommandParameter, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLCommandParameter(plCommandParameter); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00010", e); } } /** * 删除command参数 */ @Override public boolean deletePLCommandParameter( PLCommandParameter plCommandParameter, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLCommandParameter(plCommandParameter); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00011", e); } } /** * 删除command参数 */ @Override public boolean deletePLCommandParameterByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLCommandParameterByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00011", e); } } /** * 根据TabButtonID删除参数信息 */ @Override public boolean deletePLCommandParameterByTabButtonId(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLCommandParameterByTabButtonId(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00011", e); } } /** * 保存页面布局 */ @Override public boolean savePLUILayout( PLUILayout plUILayout, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLUILayout(plUILayout); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00012", e); } } /** * 更新页面布局 */ @Override public boolean updatePLUILayout( PLUILayout plUILayout, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLUILayout(plUILayout); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00013", e); } } /** * 删除页面布局 */ @Override public boolean deletePLUILayout( PLUILayout plUILayout, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLUILayout(plUILayout); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00014", e); } } /** * 删除页面布局 */ @Override public boolean deletePLUILayoutByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLUILayoutByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00014", e); } } public boolean deletePLUILayoutByOidsForCascade(String[] oids, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLUILayoutByOidsForCascade(oids); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00014", e); } } /** * 保存页签按钮 */ @Override public boolean savePLTabButton(PLTabButton plTabButton, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLTabButton(plTabButton); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00015", e); } } /** * 保存按钮及参数 */ @Override public boolean savePLTabButtonAndParams(PLTabButton[] plTabButton, PLCommandParameter[] btnParams, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLTabButtonAndParams(plTabButton, btnParams); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00015", e); } } /** * 更新页签按钮 */ @Override public boolean updatePLTabButton(PLTabButton plTabButton, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLTabButton(plTabButton); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00016", e); } } /** * 删除页签按钮 */ @Override public boolean deletePLTabButton(PLTabButton plTabButton, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLTabButton(plTabButton); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00017", e); } } /** * 删除页签按钮 */ @Override public boolean deletePLTabButtonByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLTabButtonByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00017", e); } } @Override public boolean deletePLTabButtonByOidsForCascade(String[] oids, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLTabButtonByOidsForCascade(oids); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00017", e); } } /** * 保存页签 */ @Override public boolean savePLTabPage(PLTabPage plTabPage, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLTabPage(plTabPage); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00018", e); } } /** * 更新页签 */ @Override public boolean updatePLTabPage(PLTabPage plTabPage, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLTabPage(plTabPage); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00019", e); } } /** * 删除页签 */ @Override public boolean deletePLTabPage(PLTabPage plTabPage, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLTabPage(plTabPage); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00020", e); } } /** * 删除页签 */ @Override public boolean deletePLTabPageByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLTabPageByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00020", e); } } @Override public boolean deletePLTabPageByOidsForCascade(String[] oids, Current current) throws VCIError{ try{ return getPortalServiceDelegate().deletePLTabPageByOidsForCascade(oids); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00020", e); } } /** * 根据ID获取指定的PLAction */ @Override public PLAction getPLActionById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLActionById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00021", e); } } /** * 获取所有PLAction */ @Override public PLAction[] getAllPLAction(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLAction(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00022", e); } } /** * 根据ID获取指定的PLCommandParameter */ @Override public PLCommandParameter getPLCommandParameterById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLCommandParameterById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00023", e); } } /** * 根据plCommandOId获取PLCommandParameterArray */ @Override public PLCommandParameter[] getPLCommandParametersByCommandOId( String plCommandOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLCommandParametersByCommandOId(plCommandOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00024", e); } } /** * 根据ID获取指定的PLUILayout */ @Override public PLUILayout getPLUILayoutById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLUILayoutById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00025", e); } } @Override public PLUILayout[] getPLUILayoutEntity(String contentStr, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLUILayoutEntity(contentStr); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00039", e); } } /** * 根据关联类型获取PLUILayoutArray */ @Override public PLUILayout[] getPLUILayoutsByRelatedType( String plRelatedType, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLUILayoutsByRelatedType(plRelatedType); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00026", e); } } @Override public GetPLUILayoutsByRelatedTypeAndQueryInfoResult getPLUILayoutsByRelatedTypeAndQueryInfo(String plRelatedType, String name, String code, long pageIndex, long pageSize, Current current) throws VCIError{ try{ IntHolder total = new IntHolder(); PLUILayout[] uis = getPortalServiceDelegate().getPLUILayoutsByRelatedTypeAndQueryInfo( plRelatedType, name, code, (int)pageIndex, (int)pageSize, total); return new GetPLUILayoutsByRelatedTypeAndQueryInfoResult(uis, total.value); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00026", e); } } /** * 根据关联类型获取PLUILayoutArray */ @Override public PLUILayout[] getPLUILayoutEntityByTypeAndCode( String plRelatedType, String code, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLUILayoutEntity(plRelatedType, code); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00045", e); } } /** * 根据ID获取指定的PLTabPage */ @Override public PLTabPage getPLTabPageById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLTabPageById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00027", e); } } /** * 根据plPageDefinationOId获取PLUILayoutArray */ @Override public PLTabPage[] getPLTabPagesByPageDefinationOId( String plPageDefinationOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLTabPagesByPageDefinationOId(plPageDefinationOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00028", e); } } /** * 根据上下文ID和区域类型,按顺序获取当前区域的tab页 */ @Override public PLTabPage[] getTabPagesByContextIdAndType(String contextId, short type, Current current) throws VCIError { try { return getPortalServiceDelegate().getTabPagesByContextIdAndType(contextId, type); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00028", e); } } /** * 根据ID获取指定的PLTabButton */ @Override public PLTabButton getPLTabButtonById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLTabButtonById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00029", e); } } /** * 根据plTableOId获取PLTabButtonArray */ @Override public PLTabButton[] getPLTabButtonsByTableOId(String plTableOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLTabButtonsByTableOId(plTableOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00030", e); } } /** * 保存界面 */ @Override public boolean savePLPageDefination(PLPageDefination plPageDefination, Current current) throws VCIError { try{ return getPortalServiceDelegate().savePLPageDefination(plPageDefination); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00031", e); } } /** * 更新界面 */ @Override public boolean updatePLPageDefination(PLPageDefination plPageDefination, Current current) throws VCIError { try{ return getPortalServiceDelegate().updatePLPageDefination(plPageDefination); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00032", e); } } /** * 删除界面 */ @Override public boolean deletePLPageDefination(PLPageDefination plPageDefination, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLPageDefination(plPageDefination); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00033", e); } } /** * 删除界面 */ @Override public boolean deletePLPageDefinationByID(String id, Current current) throws VCIError { try{ return getPortalServiceDelegate().deletePLPageDefinationByID(id); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00033", e); } } @Override public boolean deletePLPageDefinationByOidsForCascade(String[] oids, Current current) throws VCIError{ try{ return getPortalServiceDelegate().deletePLPageDefinationByOidsForCascade(oids); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00033", e); } } /** * 根据ID获取指定的PLPageDefination */ @Override public PLPageDefination getPLPageDefinationById(String plOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLPageDefinationById(plOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00034", e); } } /** * 根据plPageContextOId获取指定的PLPageDefinationArray */ @Override public PLPageDefination[] getPLPageDefinationsByPageContextOId( String plPageContextOId, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLPageDefinationsByPageContextOId(plPageContextOId); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00035", e); } } /** * 根据type,code获取指定的PLTabPage */ @Override public PLTabPage[] getPLTabPagesByTypeANDCode(String type, String code, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLTabPagesByTypeANDCode(type, code); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00036", e); } } /** * 根据类型名和视图名获取视图 */ @Override public PortalVI getPortalVIByTypeNameAndVIName(String typeName, String viName, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPortalVIByTypeNameAndVIName(typeName, viName); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00037", e); } } /** * 根据约束条件组查询数组, 查询PLActions */ @Override public PLAction[] getPLActionsByConsArray(Constraint[] consArray, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPLActionsByConsArray(consArray); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00038", e); } } /** * 查询所有Action分类 */ @Override public PLActionCls[] getPLActionClsArray(Current current) throws VCIError { return getPortalServiceDelegate().getPLActionClsArray(); } /** * 创建Action分类 */ @Override public String creaetePLActionCls(PLActionCls cls, Current current) { return getPortalServiceDelegate().creaetePLActionCls(cls); } /** * 修改Action分类信息 */ @Override public String editPLActionCls(PLActionCls cls, Current current) { return getPortalServiceDelegate().editPLActionCls(cls); } /** * 删除分类 */ @Override public String deletePLActionClsById(String id, Current current) { return getPortalServiceDelegate().deletePLActionClsById(id); } /** * 根据ActionID查询按钮参数列表 */ @Override public PLActionParam[] getPLActionParamArrayByActionId(String actionId, Current current) throws VCIError { return getPortalServiceDelegate().getPLActionParamArrayByActionId(actionId); } /** * 创建参数分类 */ @Override public String createPLActionParam(PLActionParam param, Current current) { return getPortalServiceDelegate().createPLActionParam(param); } /** * 批量创建分类 */ @Override public String createPLActionParamBatch(PLActionParam[] params, Current current) { return getPortalServiceDelegate().createPLActionParamBatch(params); } /** * 修改参数 */ @Override public String editPLActionParam(PLActionParam param, Current current) { return getPortalServiceDelegate().editPLActionParam(param); } /** * 删除参数 */ @Override public String deletePLActionParam(String id, Current current) { return getPortalServiceDelegate().deletePLActionParam(id); } @Override public boolean savePLTypeActionEntity(PLTypeAction plTypeAction, Current current)throws VCIError { try { return getPortalServiceDelegate().savePLTypeActionEntity(plTypeAction); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00040", e); } } @Override public boolean deletePLTypeActionEntityByTypeAndAction(String type,String actionoId, Current current) throws VCIError { try { return getPortalServiceDelegate().deletePLTypeActionEntityByTypeAndAction(type, actionoId); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00041", e); } } @Override public PLAction[] getAllPLActionEntityByType(String type, Current current) throws VCIError { try { return getPortalServiceDelegate().getAllPLActionEntityByType(type); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00042", e); } } /** * 根据type和formName判断表单是否能被修改 * @param type * @param name * @return */ @Override public boolean judgeUpdateButton(short type, String viName, String typeName, Current current) throws VCIError { try { return getPortalServiceDelegate().judgeUpdateButton(type, viName, typeName); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00043", e); } } /** * 根据id判断表单是否能被删除 * @param type * @param name * @return */ @Override public boolean judgeDeleteButton(String id, String typeName, Current current) throws VCIError { try { return getPortalServiceDelegate().judgeDeleteButton(id, typeName); } catch (Throwable e) { e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00044", e); } } @Override public PLUILayout[] getAllPLUILayouts(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLUILayouts(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00026", e); } } @Override public PLTabPage[] getAllPLTabPages(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLTabPages(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00036", e); } } @Override public PLPageDefination[] getAllPLPageDefinations(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLPageDefinations(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00035", e); } } @Override public PLPageDefination[] getAllPLPageDefinationsWithNoConf(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLPageDefinationsWithNoConf(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00035", e); } } @Override public PLTabButton[] getAllPLTabButtons(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLTabButtons(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00030", e); } } @Override public PLCommandParameter[] getAllPLCommandParameters(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPLCommandParameters(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00024", e); } } @Override public PortalVI[] getAllPortalVI(Current current) throws VCIError { try{ return getPortalServiceDelegate().getAllPortalVI(); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } @Override public PortalVI[] getPortalVIBySymbolAndTypeName(String viName, String type, Current current) throws VCIError { try{ return getPortalServiceDelegate().getPortalVIBySymbolAndTypeName(viName, type); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00047", e); } } @Override public boolean copyTabPageToPageLayout(String[] tabPageOids, PLUILayout plUILayout, short areaType, Current current) throws VCIError { try{ return getPortalServiceDelegate().copyTabPageToPageLayout(tabPageOids, plUILayout, areaType); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00048", e); } } @Override public boolean copyComptToTabPage(String[] comptOids, PLTabPage plTabPage, Current current) throws VCIError { try{ return getPortalServiceDelegate().copyComptToTabPage(comptOids, plTabPage); }catch(Throwable e){ e.printStackTrace(); throw this.getLocalVciError("P0010UIService-00004", e); } } }