-
- public EsrThirdpartySdnc sdncRegisterInfo2EsrSdnc(ThirdpartySdncRegisterInfo sdncRegisterInfo) {
- EsrThirdpartySdnc esrThirdpartySdnc = new EsrThirdpartySdnc();
- sdncRegisterInfo.setThirdpartySdncId(ExtsysUtil.generateId());
- esrThirdpartySdnc.setThirdpartySdncId(sdncRegisterInfo.getThirdpartySdncId());
- esrThirdpartySdnc.setLocation(sdncRegisterInfo.getLocation());
- esrThirdpartySdnc.setProductName(sdncRegisterInfo.getProductName());
- esrThirdpartySdnc.setEsrSystemInfoList(getEsrSystemInfoList(sdncRegisterInfo));
- return esrThirdpartySdnc;
- }
-
- private EsrSystemInfoList getEsrSystemInfoList(ThirdpartySdncRegisterInfo sdncRegisterInfo) {
- EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
- ArrayList<EsrSystemInfo> esrSystemInfo = new ArrayList<EsrSystemInfo>();
- EsrSystemInfo authInfo = new EsrSystemInfo();
- authInfo.setResouceVersion(sdncRegisterInfo.getVersion());
- authInfo.setSystemName(sdncRegisterInfo.getName());
- authInfo.setServiceUrl(sdncRegisterInfo.getUrl());
- authInfo.setVendor(sdncRegisterInfo.getVendor());
- authInfo.setType(sdncRegisterInfo.getType());
- authInfo.setUserName(sdncRegisterInfo.getUserName());
- authInfo.setPassword(sdncRegisterInfo.getPassword());
- authInfo.setProtocol(sdncRegisterInfo.getProtocol());
- authInfo.setSystemType(SystemType.thirdparty_SDNC.toString());
- esrSystemInfo.add(authInfo);
- esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);
- return esrSystemInfoList;
- }
+ private static ExtsysUtil extsysUtil = new ExtsysUtil();
+
+ public EsrThirdpartySdncDetail sdncRegisterInfo2EsrSdnc(ThirdpartySdncRegisterInfo sdncRegisterInfo) {
+ EsrThirdpartySdncDetail esrThirdpartySdnc = new EsrThirdpartySdncDetail();
+ sdncRegisterInfo.setThirdpartySdncId(extsysUtil.generateId());
+ esrThirdpartySdnc.setThirdpartySdncId(sdncRegisterInfo.getThirdpartySdncId());
+ esrThirdpartySdnc.setLocation(sdncRegisterInfo.getLocation());
+ esrThirdpartySdnc.setProductName(sdncRegisterInfo.getProductName());
+ esrThirdpartySdnc.setEsrSystemInfoList(getEsrSystemInfoList(sdncRegisterInfo));
+ return esrThirdpartySdnc;
+ }
+
+ private EsrSystemInfoList getEsrSystemInfoList(ThirdpartySdncRegisterInfo sdncRegisterInfo) {
+ EsrSystemInfoList esrSystemInfoList = new EsrSystemInfoList();
+ List<EsrSystemInfo> esrSystemInfo = new ArrayList<>();
+ EsrSystemInfo authInfo = new EsrSystemInfo();
+ authInfo.setEsrSystemInfoId(extsysUtil.generateId());
+ authInfo.setVersion(sdncRegisterInfo.getVersion());
+ authInfo.setSystemName(sdncRegisterInfo.getName());
+ authInfo.setServiceUrl(sdncRegisterInfo.getUrl());
+ authInfo.setVendor(sdncRegisterInfo.getVendor());
+ authInfo.setType(sdncRegisterInfo.getType());
+ authInfo.setUserName(sdncRegisterInfo.getUserName());
+ authInfo.setPassword(sdncRegisterInfo.getPassword());
+ authInfo.setProtocol(sdncRegisterInfo.getProtocol());
+ authInfo.setSystemType(SystemType.thirdparty_SDNC.toString());
+ esrSystemInfo.add(authInfo);
+ esrSystemInfoList.setEsrSystemInfo(esrSystemInfo);
+ return esrSystemInfoList;
+ }