| | |
| | | import com.thoughtworks.xstream.XStream; |
| | | import com.thoughtworks.xstream.io.xml.XmlFriendlyNameCoder; |
| | | import com.thoughtworks.xstream.io.xml.XppDriver; |
| | | import com.vci.client.common.providers.ClientServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.portal.data.*; |
| | | import com.vci.starter.web.annotation.log.VciUnLog; |
| | |
| | | public void checkInvalidXmlVI() { |
| | | PortalVI[] portalVIS = null; |
| | | try { |
| | | portalVIS = ClientServiceProvider.getUIService().getAllPortalVI(); |
| | | // portalVIS = platformClientUtil.getPortalService().getAllPortalVI(); |
| | | portalVIS = platformClientUtil.getUIService().getAllPortalVI(); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | public List<UIFormDefineVO> selectAllForm() { |
| | | PortalVI[] portalVIS = null; |
| | | try { |
| | | portalVIS = ClientServiceProvider.getUIService().getAllPortalVI(); |
| | | portalVIS = platformClientUtil.getUIService().getAllPortalVI(); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | if(!QUERY_BY_CACHE){ |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = ClientServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | portalVI = platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | public List<UITableDefineVO> selectAllTable() { |
| | | PortalVI[] portalVIS = null; |
| | | try { |
| | | portalVIS = ClientServiceProvider.getUIService().getAllPortalVI(); |
| | | portalVIS = platformClientUtil.getUIService().getAllPortalVI(); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | self.selectAllForm().stream().filter(s -> formOid.equalsIgnoreCase(s.getOid())).findAny().orElseGet(() -> null); |
| | | }else{ |
| | | try { |
| | | formDefineVO = formDO2VO(ClientServiceProvider.getUIService().getPortalVIById(formOid)); |
| | | formDefineVO = formDO2VO(platformClientUtil.getUIService().getPortalVIById(formOid)); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | if(!QUERY_BY_CACHE){ |
| | | PortalVI portalVI = null; |
| | | try { |
| | | portalVI = ClientServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | portalVI = platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmId, id); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | @VciUnLog |
| | | public List<UIActionVO> selectAllAction() { |
| | | try { |
| | | // return actionDO2VOs(Arrays.stream(platformClientUtil.getPortalService().getAllPLAction()).collect(Collectors.toList())); |
| | | return actionDO2VOs(Arrays.stream(ClientServiceProvider.getUIService().getAllPLAction()).collect(Collectors.toList())); |
| | | return actionDO2VOs(Arrays.stream(platformClientUtil.getUIService().getAllPLAction()).collect(Collectors.toList())); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | */ |
| | | private List<UILayoutVO> listLayoutByContent(String pkContent){ |
| | | try { |
| | | return UILayoutDO2VOs(Arrays.stream(ClientServiceProvider.getUIService().getPLTabPagesByPageDefinationOId(pkContent)).collect(Collectors.toList()),true); |
| | | return UILayoutDO2VOs(Arrays.stream(platformClientUtil.getUIService().getPLTabPagesByPageDefinationOId(pkContent)).collect(Collectors.toList()),true); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | if(queryDetail){ |
| | | //单个的,直接获取 |
| | | try { |
| | | layoutVO.setComponentVOs(uiComponentDO2VOs(Arrays.stream(ClientServiceProvider.getUIService().getPLPageDefinationsByPageContextOId(layoutVO.getOid())).collect(Collectors.toList()),true)); |
| | | // layoutVO.setComponentVOs(uiComponentDO2VOs(Arrays.stream(platformClientUtil.getPortalService().getPLPageDefinationsByPageContextOId(layoutVO.getOid())).collect(Collectors.toList()),true)); |
| | | layoutVO.setComponentVOs(uiComponentDO2VOs(Arrays.stream(platformClientUtil.getUIService().getPLPageDefinationsByPageContextOId(layoutVO.getOid())).collect(Collectors.toList()),true)); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | } |
| | | if(!QUERY_BY_CACHE){ |
| | | try { |
| | | return uiComponentDO2VO(ClientServiceProvider.getUIService().getPLPageDefinationById(componentOid),true); |
| | | return uiComponentDO2VO(platformClientUtil.getUIService().getPLPageDefinationById(componentOid),true); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | componentVO.setTableDefineVO(tableDefineVOMap.get(key)); |
| | | }else{ |
| | | try { |
| | | componentVO.setTableDefineVO(tableDO2VO(ClientServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true)); |
| | | //componentVO.setTableDefineVO(tableDO2VO(platformClientUtil.getPortalService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true)); |
| | | componentVO.setTableDefineVO(tableDO2VO(platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true)); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | tableDefineVO= tableDefineVOMap.get(key); |
| | | }else{ |
| | | try { |
| | | tableDefineVO = tableDO2VO(ClientServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true); |
| | | tableDefineVO = tableDO2VO(platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()),true); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | componentVO.setFormDefineVO(formDefineVOMap.get(key)); |
| | | }else{ |
| | | try { |
| | | componentVO.setFormDefineVO(formDO2VO(ClientServiceProvider.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()))); |
| | | componentVO.setFormDefineVO(formDO2VO(platformClientUtil.getUIService().getPortalVIByTypeNameAndVIName(btmType,componentDefineXO.getTemplateId()))); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | @Override |
| | | public List<UIButtonDefineVO> listButtonByComponent(String pkComponent){ |
| | | try { |
| | | List<UIButtonDefineVO> buttonDefineVOS = buttonDO2VOs(Arrays.stream(ClientServiceProvider.getUIService().getPLTabButtonsByTableOId(pkComponent)).collect(Collectors.toSet())).stream().sorted(((o1, o2) -> o1.getOrderNum().compareTo(o2.getOrderNum()))).collect(Collectors.toList()); |
| | | List<UIButtonDefineVO> buttonDefineVOS = buttonDO2VOs(Arrays.stream(platformClientUtil.getUIService().getPLTabButtonsByTableOId(pkComponent)).collect(Collectors.toSet())).stream().sorted(((o1, o2) -> o1.getOrderNum().compareTo(o2.getOrderNum()))).collect(Collectors.toList()); |
| | | if(CollectionUtils.isEmpty(buttonDefineVOS)){ |
| | | return buttonDefineVOS; |
| | | } |
| | |
| | | //查找参数 |
| | | Map<String,String> params = new HashMap<>(); |
| | | try { |
| | | //PLCommandParameter[] parameters = platformClientUtil.getPortalService().getPLCommandParametersByCommandOId(buttonVO.getOid()); |
| | | PLCommandParameter[] parameters = ClientServiceProvider.getUIService().getPLCommandParametersByCommandOId(buttonVO.getOid()); |
| | | PLCommandParameter[] parameters = platformClientUtil.getUIService().getPLCommandParametersByCommandOId(buttonVO.getOid()); |
| | | if(parameters!=null && parameters.length > 0){ |
| | | for(PLCommandParameter parameter: parameters){ |
| | | params.put(parameter.plKey,parameter.plValue); |
| | |
| | | WebUtil.alertNotNull(btmType,"业务类型或者链接类型",id,"UI上下文的编号"); |
| | | PLUILayout[] obj = null; |
| | | try { |
| | | obj = ClientServiceProvider.getUIService().getPLUILayoutsByRelatedType(btmType); |
| | | // obj = platformClientUtil.getPortalService().getPLPageLayoutDefinationsByRelatedType(btmType); |
| | | // obj = ServiceProvider.geT(btmType); |
| | | |
| | | obj = platformClientUtil.getUIService().getPLUILayoutsByRelatedType(btmType); |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | } |
| | | } |
| | | return UIContentDO2VO(context,true); |
| | | // return UIContentDO2VO(null,true); |
| | | } |
| | | } |
| | | |