public static void mapContacts(List<org.apache.juddi.model.Contact> modelContactList, org.uddi.api_v3.Contacts apiContacts, org.uddi.api_v3.BusinessEntity apiBusinessEntity) throws DispositionReportFaultMessage { if (modelContactList == null || modelContactList.size() == 0) { return; } if (apiContacts == null) { apiContacts = new org.uddi.api_v3.Contacts(); } List<org.uddi.api_v3.Contact> apiContactList = apiContacts.getContact(); apiContactList.clear(); for (org.apache.juddi.model.Contact modelContact : modelContactList) { org.uddi.api_v3.Contact apiContact = new org.uddi.api_v3.Contact(); mapContact(modelContact,apiContact); apiContactList.add(apiContact); } apiBusinessEntity.setContacts(apiContacts); }
public static void mapContacts(List<org.apache.juddi.model.Contact> modelContactList, org.uddi.api_v3.Contacts apiContacts, org.uddi.api_v3.BusinessEntity apiBusinessEntity) throws DispositionReportFaultMessage { if (modelContactList == null || modelContactList.size() == 0) { return; } if (apiContacts == null) { apiContacts = new org.uddi.api_v3.Contacts(); } List<org.uddi.api_v3.Contact> apiContactList = apiContacts.getContact(); apiContactList.clear(); for (org.apache.juddi.model.Contact modelContact : modelContactList) { org.uddi.api_v3.Contact apiContact = new org.uddi.api_v3.Contact(); mapContact(modelContact,apiContact); apiContactList.add(apiContact); } apiBusinessEntity.setContacts(apiContacts); }
if (carr.length>0) { cts.getContact().addAll(Arrays.asList(carr)); biz.setContacts(cts);
if (carr.length > 0) { cts.getContact().addAll(Arrays.asList(carr)); biz.setContacts(cts);
public static org.uddi.api_v3.BusinessEntity MapBusiness(org.uddi.api_v2.BusinessEntity be) { if (be == null) { return null; } BusinessEntity item = new org.uddi.api_v3.BusinessEntity(); item.setBusinessKey(be.getBusinessKey()); item.getName().addAll(MapName(be.getName())); item.setCategoryBag(MapCategoryBag(be.getCategoryBag())); item.setDiscoveryURLs(MapDiscoveryURLs(be.getDiscoveryURLs())); item.getDescription().addAll(MapDescription(be.getDescription())); item.setContacts(MapContacts(be.getContacts())); item.setIdentifierBag(MapIdentBag(be.getIdentifierBag())); if (be.getBusinessServices() != null && !be.getBusinessServices().getBusinessService().isEmpty()) { item.setBusinessServices(new BusinessServices()); item.getBusinessServices().getBusinessService().addAll(MapService(be.getBusinessServices().getBusinessService())); } return item; }