| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.client.portal.utility.UITools; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.portal.data.PLAction; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.web.pageModel.UIActionVO; |
| | | import com.vci.web.service.WebActionServiceI; |
| | | import com.vci.web.util.WebUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import plm.corba.portal.PLAction; |
| | | import plm.portal.utility.Tool; |
| | | |
| | | /** |
| | | * Action服务 |
| | |
| | | public UIActionVO getActionByOid(String oid) throws VciBaseException { |
| | | WebUtil.alertNotNull(oid,"action的主键"); |
| | | try { |
| | | PLAction action = Tool.getService() |
| | | PLAction action = UITools.getService() |
| | | .getPLActionById(oid); |
| | | if(action == null || StringUtils.isBlank(action.plOId)){ |
| | | throw new VciBaseException("这个action在系统中不存在"); |
| | | } |
| | | return convertWebAction(action); |
| | | } catch (VCIError vciError) { |
| | | } catch (PLException vciError) { |
| | | throw WebUtil.getVciBaseException(vciError); |
| | | } |
| | | } |