| | |
| | | package com.vci.web.service.impl; |
| | | |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.framework.data.PvolumeInfo; |
| | | import com.vci.file.dto.VciFileVolumeDTO; |
| | |
| | | */ |
| | | @Override |
| | | public VciFileVolumeDO getUploadVolume(){ |
| | | // try { |
| | | // PvolumeInfo volumeInfo = platformClientUtil.getLogonFactoryService().getFrameworkService().getIsvalidVolumeName(); |
| | | // VciFileVolumeDO fileVolumeDO = new VciFileVolumeDO(); |
| | | // fileVolumeDO.setOid(volumeInfo.id); |
| | | // fileVolumeDO.setId(volumeInfo.name); |
| | | // fileVolumeDO.setName(volumeInfo.service); |
| | | // fileVolumeDO.setServiceUrl(volumeInfo.host); |
| | | // fileVolumeDO.setVolumePath(volumeInfo.path); |
| | | // fileVolumeDO.setServiceOsType(volumeInfo.type+""); |
| | | // return fileVolumeDO; |
| | | return null; |
| | | // } catch (VCIError vciError) { |
| | | // throw WebUtil.getVciBaseException(vciError); |
| | | // } |
| | | try { |
| | | PvolumeInfo volumeInfo = ServiceProvider.getFrameService().getDefaultVolume(); |
| | | VciFileVolumeDO fileVolumeDO = new VciFileVolumeDO(); |
| | | fileVolumeDO.setOid(volumeInfo.id); |
| | | fileVolumeDO.setId(volumeInfo.name); |
| | | fileVolumeDO.setName(volumeInfo.service); |
| | | fileVolumeDO.setServiceUrl(volumeInfo.host); |
| | | fileVolumeDO.setVolumePath(volumeInfo.path); |
| | | fileVolumeDO.setServiceOsType(volumeInfo.type+""); |
| | | return fileVolumeDO; |
| | | } catch (PLException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | } |
| | | |
| | | |