public BusinessLifeCycleManagerV3Impl(RegistryService registry) { super(registry); if(objectFactory == null) objectFactory = new ObjectFactory(); }
private static BindingTemplates getBindingTemplates(Collection serviceBindings) throws JAXRException { BindingTemplates bt = null; if (serviceBindings != null && serviceBindings.size() > 0) { bt = objectFactory.createBindingTemplates(); Iterator iter = serviceBindings.iterator(); int currLoc = 0; BindingTemplate[] bindingTemplateArray = new BindingTemplate[serviceBindings.size()]; while (iter.hasNext()) { ServiceBinding sb = (ServiceBinding) iter.next(); bindingTemplateArray[currLoc] = getBindingTemplateFromJAXRSB(sb); currLoc++; } if (bindingTemplateArray != null) { bt.getBindingTemplate().addAll(Arrays.asList(bindingTemplateArray)); } } return bt; } }
public static BindingTemplate getBindingTemplateFromJAXRSB( ServiceBinding serviceBinding) throws JAXRException { BindingTemplate bt = objectFactory.createBindingTemplate(); if (serviceBinding.getKey() != null && serviceBinding.getKey().getId() != null) { bt.setBindingKey(serviceBinding.getKey().getId()); AccessPoint accessPoint = objectFactory.createAccessPoint(); accessPoint.setUseType(getUseType(accessuri)); accessPoint.setValue(accessuri); HostingRedirector red = objectFactory.createHostingRedirector(); Key key = sb.getKey(); if (key != null && key.getId() != null) { } else { if (bt.getAccessPoint() == null) { bt.setAccessPoint(objectFactory.createAccessPoint()); TModelInstanceDetails tid = objectFactory.createTModelInstanceDetails(); if (slcol != null && !slcol.isEmpty()) { Iterator<SpecificationLink> iter = slcol.iterator(); TModelInstanceInfo emptyTInfo = objectFactory.createTModelInstanceInfo(); tid.getTModelInstanceInfo().add(emptyTInfo); for (Object o : specificationObject.getDescription().getLocalizedStrings()) { LocalizedString locDesc = (LocalizedString) o; Description description = objectFactory.createDescription(); emptyTInfo.getDescription().add(description); description.setValue(locDesc.getValue());
public static BusinessEntity getBusinessEntityFromJAXROrg(Organization organization) throws JAXRException { BusinessEntity biz = objectFactory.createBusinessEntity(); BusinessServices bss = objectFactory.createBusinessServices(); BusinessService[] barr = new BusinessService[0]; Contacts cts = objectFactory.createContacts(); Contact[] carr = new Contact[0]; emptyDUs = objectFactory.createDiscoveryURLs(); biz.setDiscoveryURLs(emptyDUs); first = false; DiscoveryURL emptyDU = objectFactory.createDiscoveryURL(); emptyDUs.getDiscoveryURL().add(emptyDU); emptyDU.setUseType("businessEntityExt");
Address address = objectFactory.createAddress(); List<AddressLine> list = new LinkedList<AddressLine>(); stnumAL = objectFactory.createAddressLine(); stnumAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); stnumAL.setKeyValue("STREET_NUMBER"); stAL = objectFactory.createAddressLine(); stAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); stAL.setKeyValue("STREET"); cityAL = objectFactory.createAddressLine(); cityAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); cityAL.setKeyValue("CITY"); countryAL = objectFactory.createAddressLine(); countryAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); countryAL.setKeyValue("COUNTRY"); codeAL = objectFactory.createAddressLine(); codeAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); codeAL.setKeyValue("POSTALCODE"); stateAL = objectFactory.createAddressLine(); stateAL.setKeyName("uddi:uddi.org:ubr:postaladdress"); stateAL.setKeyValue("STATE"); typeAL = objectFactory.createAddressLine(); typeAL.setKeyName("uddi:uddi.org:ubr:postaladdress");
CategoryBag cbag = objectFactory.createCategoryBag(); Iterator classiter = classifications.iterator(); while (classiter.hasNext()) { Classification classification = (Classification) classiter.next(); if (classification != null) { KeyedReference keyr = objectFactory.createKeyedReference(); cbag.getKeyedReference().add(keyr);
public static BusinessService getBusinessServiceFromJAXRService( Service service) throws JAXRException { BusinessService bs = objectFactory.createBusinessService(); try { InternationalString iname = service.getName();
public static BindingTemplate getBindingTemplateFromJAXRSB( ServiceBinding serviceBinding) throws JAXRException { BindingTemplate bt = objectFactory.createBindingTemplate(); if (serviceBinding.getKey() != null && serviceBinding.getKey().getId() != null) { bt.setBindingKey(serviceBinding.getKey().getId()); AccessPoint accessPoint = objectFactory.createAccessPoint(); accessPoint.setUseType(getUseType(accessuri)); accessPoint.setValue(accessuri); HostingRedirector red = objectFactory.createHostingRedirector(); Key key = sb.getKey(); if (key != null && key.getId() != null) { } else { if (bt.getAccessPoint() == null) { bt.setAccessPoint(objectFactory.createAccessPoint()); TModelInstanceDetails tid = objectFactory.createTModelInstanceDetails(); if (slcol != null && !slcol.isEmpty()) { Iterator<SpecificationLink> iter = slcol.iterator(); TModelInstanceInfo emptyTInfo = objectFactory.createTModelInstanceInfo(); tid.getTModelInstanceInfo().add(emptyTInfo); for (Object o : specificationObject.getDescription().getLocalizedStrings()) { LocalizedString locDesc = (LocalizedString) o; Description description = objectFactory.createDescription(); emptyTInfo.getDescription().add(description); description.setValue(locDesc.getValue());
public static BusinessEntity getBusinessEntityFromJAXROrg(Organization organization) throws JAXRException { BusinessEntity biz = objectFactory.createBusinessEntity(); BusinessServices bss = objectFactory.createBusinessServices(); BusinessService[] barr = new BusinessService[0]; Contacts cts = objectFactory.createContacts(); Contact[] carr = new Contact[0]; emptyDUs = objectFactory.createDiscoveryURLs(); biz.setDiscoveryURLs(emptyDUs); first = false; DiscoveryURL emptyDU = objectFactory.createDiscoveryURL(); emptyDUs.getDiscoveryURL().add(emptyDU); emptyDU.setUseType("businessEntityExt");
Address address = objectFactory.createAddress(); AddressLine stnumAL = objectFactory.createAddressLine(); stnumAL.setKeyName("STREET_NUMBER"); if (stnum != null) { AddressLine stAL = objectFactory.createAddressLine(); stAL.setKeyName("STREET"); if (st != null) { AddressLine cityAL = objectFactory.createAddressLine(); cityAL.setKeyName("CITY"); if (city != null) { AddressLine countryAL = objectFactory.createAddressLine(); countryAL.setKeyName("COUNTRY"); if (country != null) { AddressLine codeAL = objectFactory.createAddressLine(); codeAL.setKeyName("POSTALCODE"); if (code != null) { AddressLine stateAL = objectFactory.createAddressLine(); stateAL.setKeyName("STATE"); if (state != null) { AddressLine typeAL = objectFactory.createAddressLine(); typeAL.setKeyName("TYPE"); if (type != null) {
CategoryBag cbag = objectFactory.createCategoryBag(); Iterator classiter = classifications.iterator(); while (classiter.hasNext()) { Classification classification = (Classification) classiter.next(); if (classification != null ) { KeyedReference keyr = objectFactory.createKeyedReference(); cbag.getKeyedReference().add(keyr);
public static BusinessService getBusinessServiceFromJAXRService( Service service) throws JAXRException { BusinessService bs = objectFactory.createBusinessService(); try { InternationalString iname = service.getName();
org.uddi.api_v3.ObjectFactory fac = new org.uddi.api_v3.ObjectFactory(); TModel t; Name n;
private static BindingTemplates getBindingTemplates(Collection serviceBindings) throws JAXRException { BindingTemplates bt = null; if(serviceBindings != null && serviceBindings.size() > 0) { bt = objectFactory.createBindingTemplates(); Iterator iter = serviceBindings.iterator(); int currLoc = 0; BindingTemplate[] bindingTemplateArray = new BindingTemplate[serviceBindings.size()]; while(iter.hasNext()) { ServiceBinding sb = (ServiceBinding)iter.next(); bindingTemplateArray[currLoc] = getBindingTemplateFromJAXRSB(sb); currLoc++; } if (bindingTemplateArray != null) { bt.getBindingTemplate().addAll(Arrays.asList(bindingTemplateArray)); } } return bt; } }