public static void mapBusinessIdentifiers(List<org.apache.juddi.model.BusinessIdentifier> modelIdentifierList, org.uddi.api_v3.IdentifierBag apiIdentifierBag, org.uddi.api_v3.BusinessEntity apiBusinessEntity) throws DispositionReportFaultMessage { if (modelIdentifierList == null || modelIdentifierList.size() == 0) { return; } if (apiIdentifierBag == null) { apiIdentifierBag = new org.uddi.api_v3.IdentifierBag(); } List<org.uddi.api_v3.KeyedReference> apiKeyedRefList = apiIdentifierBag.getKeyedReference(); apiKeyedRefList.clear(); for (org.apache.juddi.model.BusinessIdentifier modelIdentifier : modelIdentifierList) { org.uddi.api_v3.KeyedReference apiKeyedRef = new org.uddi.api_v3.KeyedReference(); apiKeyedRef.setTModelKey(modelIdentifier.getTmodelKeyRef()); apiKeyedRef.setKeyName(modelIdentifier.getKeyName()); apiKeyedRef.setKeyValue(modelIdentifier.getKeyValue()); apiKeyedRefList.add(apiKeyedRef); } apiBusinessEntity.setIdentifierBag(apiIdentifierBag); }
public static void mapBusinessIdentifiers(List<org.apache.juddi.model.BusinessIdentifier> modelIdentifierList, org.uddi.api_v3.IdentifierBag apiIdentifierBag, org.uddi.api_v3.BusinessEntity apiBusinessEntity) throws DispositionReportFaultMessage { if (modelIdentifierList == null || modelIdentifierList.size() == 0) { return; } if (apiIdentifierBag == null) { apiIdentifierBag = new org.uddi.api_v3.IdentifierBag(); } List<org.uddi.api_v3.KeyedReference> apiKeyedRefList = apiIdentifierBag.getKeyedReference(); apiKeyedRefList.clear(); for (org.apache.juddi.model.BusinessIdentifier modelIdentifier : modelIdentifierList) { org.uddi.api_v3.KeyedReference apiKeyedRef = new org.uddi.api_v3.KeyedReference(); apiKeyedRef.setTModelKey(modelIdentifier.getTmodelKeyRef()); apiKeyedRef.setKeyName(modelIdentifier.getKeyName()); apiKeyedRef.setKeyValue(modelIdentifier.getKeyValue()); apiKeyedRefList.add(apiKeyedRef); } apiBusinessEntity.setIdentifierBag(apiIdentifierBag); }
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; }