- private static AuthInfo vimAuthInfo2AuthInfo(VimAuthInfo vimAuthInfo) {
- AuthInfo authInfo = new AuthInfo();
- authInfo.setCloudDomain(vimAuthInfo.getCloudDomain());
- authInfo.setUserName(vimAuthInfo.getUserName());
- authInfo.setPassword(vimAuthInfo.getPassword());
- authInfo.setServiceUrl(vimAuthInfo.getAuthUrl());
- authInfo.setSslCassert(vimAuthInfo.getSslCacert());
- authInfo.setSslInsecure(vimAuthInfo.getSslInsecure());
- authInfo.setEsrSystemInfoId(ExtsysUtil.generateId());
- authInfo.setSystemType(SystemType.VIM.toString());
- authInfo.setSystemStatus(SystemStatus.normal.toString());
- return authInfo;
+ private EsrSystemInfo vimAuthInfo2EsrSystemInfoObj(ArrayList<VimAuthInfo> vimAuthInfos) {
+ EsrSystemInfo esrSystemInfoObj = new EsrSystemInfo();
+ VimAuthInfo vimAuthInfo = new VimAuthInfo();
+ vimAuthInfo = vimAuthInfos.get(0);
+ esrSystemInfoObj.setCloudDomain(vimAuthInfo.getCloudDomain());
+ esrSystemInfoObj.setUserName(vimAuthInfo.getUserName());
+ esrSystemInfoObj.setPassword(vimAuthInfo.getPassword());
+ esrSystemInfoObj.setServiceUrl(vimAuthInfo.getAuthUrl());
+ esrSystemInfoObj.setSslCassert(vimAuthInfo.getSslCacert());
+ esrSystemInfoObj.setSslInsecure(vimAuthInfo.getSslInsecure());
+ esrSystemInfoObj.setEsrSystemInfoId(ExtsysUtil.generateId());
+ esrSystemInfoObj.setSystemType(SystemType.VIM.toString());
+// esrSystemInfoObj.setSystemStatus(SystemStatus.normal.toString());
+ return esrSystemInfoObj;