Package org.uddi.api_v3

Examples of org.uddi.api_v3.Contact


                clerk.unRegisterBinding(bindingTemplate.getBindingKey(), clerk.getUDDINode().getApiNode());
              }
            }
            if (removeServiceWithNoBindingTemplates) {
              try {
                BusinessService existingService = clerk.findService(businessService.getServiceKey(), clerk.getUDDINode().getApiNode());
                if (existingService.getBindingTemplates()==null || existingService.getBindingTemplates().getBindingTemplate().size()==0) {
                  clerk.unRegisterService(businessService.getServiceKey(),clerk.getUDDINode().getApiNode());
                }
              } catch (Exception e) {
                log.error(e.getMessage(),e);
              }
View Full Code Here


      // Now get the entity and check the values
      GetServiceDetail gs = new GetServiceDetail();
      gs.getServiceKey().add(serviceKey);
      ServiceDetail sd = inquiry.getServiceDetail(gs);
      List<BusinessService> bsOutList = sd.getBusinessService();
      BusinessService bsOut = bsOutList.get(0);

      assertEquals(bsIn.getServiceKey(), bsOut.getServiceKey());
     
      TckValidator.checkNames(bsIn.getName(), bsOut.getName());
      TckValidator.checkDescriptions(bsIn.getDescription(), bsOut.getDescription());
      TckValidator.checkBindingTemplates(bsIn.getBindingTemplates(), bsOut.getBindingTemplates());
      TckValidator.checkCategories(bsIn.getCategoryBag(), bsOut.getCategoryBag());
    }
    catch(Exception e) {
      logger.error(e.getMessage(), e);
      Assert.fail("No exception should be thrown.");
    }
View Full Code Here

    }
    assertEquals(contactList1.size(), contactList2.size());
    Iterator<Contact> contactList1Itr = contactList1.iterator();
    Iterator<Contact> contactList2Itr = contactList2.iterator();
    while (contactList1Itr.hasNext()) {
      Contact contact1 = contactList1Itr.next();
      Contact contact2 = contactList2Itr.next();
      assertEquals(contact1.getUseType(), contact2.getUseType());
     
      checkPersonNames(contact1.getPersonName(), contact2.getPersonName());
      checkDescriptions(contact1.getDescription(), contact2.getDescription());
    }
  }
View Full Code Here

    }
    assertEquals(contactList1.size(), contactList2.size());
    Iterator<Contact> contactList1Itr = contactList1.iterator();
    Iterator<Contact> contactList2Itr = contactList2.iterator();
    while (contactList1Itr.hasNext()) {
      Contact contact1 = contactList1Itr.next();
      Contact contact2 = contactList2Itr.next();
      assertEquals(contact1.getUseType(), contact2.getUseType());
     
      checkPersonNames(contact1.getPersonName(), contact2.getPersonName());
      checkDescriptions(contact1.getDescription(), contact2.getDescription());
    }
  }
View Full Code Here

    Phone phone = new Phone();
    phone.setUseType("Hotline");
    phone.setValue(data.getUSPhoneNumber());
   
    //Contact object
    Contact contact = new Contact();
    contact.setUseType("CEO");
    contact.getPersonName().add(personName);
    contact.getAddress().add(address);
    contact.getPhone().add(phone);
   
    //All contact for the business. Here only one is generated.
    Contacts contacts = new Contacts();
    contacts.getContact().add(contact);
   
View Full Code Here

   * @return
   */
  public static Contact generateContact(List<Address> addresses, List<Description> descriptions,
      List<Email> emails, List<PersonName> personNames, List<Phone> phones, String useType)
  {
    Contact contact = new Contact();
    if (addresses != null)
      for (Address a : addresses)
        contact.getAddress().add(a);
    if (descriptions != null)
      for (Description d : descriptions)
        contact.getDescription().add(d);
    if (emails != null)
      for (Email e : emails)
        contact.getEmail().add(e);
    if (personNames != null)
      for (PersonName pn : personNames)
        contact.getPersonName().add(pn);
    if (phones != null)
      for (Phone p : phones)
        contact.getPhone().add(p);
    if (useType != null)
      contact.setUseType(useType);
   
    return contact;
  }
View Full Code Here

   * @return
   */
  public static Contact generateContact(String contactAddress, String contactDescription,
      String contactEmail, String contactName, String contactPhone, String useType)
  {
    Contact contact = new Contact();
    List<AddressLine> addressLine = new ArrayList<AddressLine>();
    addressLine.add(generateAddressLine(contactAddress, null, null));
   
    contact.getAddress().add(generateAddress(addressLine, null, null, null, null));
    contact.getDescription().add(generateDescription(contactDescription));
    contact.getEmail().add(generateEmail(contactEmail, null));
    contact.getPersonName().add(generatePersonName(contactName, null));
    contact.getPhone().add(generatePhone(contactPhone));
    contact.setUseType(useType);
   
    return contact;
  }
View Full Code Here

                return c;
        }

        private static Contacts getContacts() {
                Contacts c = new Contacts();
                Contact admin = new Contact();
                admin.setUseType("it support");
                admin.getEmail().add(new Email("admin@localhost", "primary"));
                admin.getDescription().add(new Description("the guy in that keeps the lights green", "en"));
                admin.getPersonName().add(new PersonName("admin1", "en"));
                Address r=new Address();
                r.setLang("en");
                r.setSortCode("none");
                r.setTModelKey(domainprefix + "address");
                r.setUseType("mailing address");
                r.getAddressLine().add(new AddressLine("keyname","keyval","1313 mockingbird lane"));
                admin.getAddress().add(r);
                c.getContact().add(admin);
                return c;
               
        }
View Full Code Here

                return cc;
        }

        private Contacts ContactPhoneUseTypeMaxLen() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Phone p = new Phone();
                p.setValue(str50);
                p.setUseType(str255);
                c.getPhone().add(p);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                return cc;
        }

        private Contacts ContactPhoneMaxLength() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Phone p = new Phone();
                p.setValue(str50);
                c.getPhone().add(p);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v3.Contact

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.