| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ClientServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.lcm.Bound; |
| | | import com.vci.corba.omd.lcm.LifeCycle; |
| | |
| | | @VciUnLog |
| | | public List<OsLifeCycleVO> selectAllLifeCycle() throws VciBaseException { |
| | | try { |
| | | // LifeCyle[] lifeCyles = platformClientUtil.getLifeCycleService().getLifeCyles(); |
| | | LifeCycle[] lifeCyles = ClientServiceProvider.getOMDService().getLifeCycleService().getLifeCycles(); |
| | | LifeCycle[] lifeCyles = platformClientUtil.getLifeCycleService().getLifeCycles(); |
| | | return lifeCycleDO2VOs(Arrays.stream(lifeCyles).collect(Collectors.toList())); |
| | | } catch (PLException vciError) { |
| | | if(logger.isErrorEnabled()){ |
| | | // logger.error(vciError.error_code,vciError); |
| | | logger.error(vciError.code,vciError); |
| | | } |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | |
| | | if(lineVO!=null){ |
| | | try { |
| | | com.vci.corba.omd.lcm.TransitionVO transitionVO = lifeCycleLineVO2DO(lineVO); |
| | | // platformClientUtil.getBOFactoryService().transferBusinessObject(new BusinessObjectHolder(obj), transitionVO); |
| | | ClientServiceProvider.getBOFService().transferBusinessObject(obj, transitionVO.destination); |
| | | platformClientUtil.getBOFService().transferBusinessObject(obj, transitionVO.destination); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |
| | | } |
| | |
| | | for(int i = 0 ; i < lineVOs.length; i ++){ |
| | | vos[i] = lifeCycleLineVO2DO(lineVOs[i]); |
| | | } |
| | | // platformClientUtil.getBOFactoryService().batchTransferBusinessObjectAndRelease( |
| | | // bos, vos, releaseStatus); |
| | | ClientServiceProvider.getBOFService().batchTransferBusinessObjectAndRelease( |
| | | platformClientUtil.getBOFService().batchTransferBusinessObjectAndRelease( |
| | | bos, vos, releaseStatus); |
| | | } catch (PLException e) { |
| | | throw WebUtil.getVciBaseException(e); |