Package org.uddi.api_v2

Examples of org.uddi.api_v2.Contacts


    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);
   
    //Pass info to business entity.
    BusinessEntity businessEntity = new BusinessEntity();
    businessEntity.setDiscoveryURLs(discoveryURLs);
    businessEntity.getName().add(name);
View Full Code Here


    BusinessEntity businessEntity = new BusinessEntity();
   
    businessEntity.getName().add(generateName(businessName));
    businessEntity.getDescription().add(generateDescription(businessDescription));
   
    Contacts contacts = new Contacts();
    contacts.getContact().add(generateContact(contactAddress, contactDescription, contactEmail,
        contactName, contactPhone, null));
    businessEntity.setContacts(contacts);
   
    DiscoveryURLs discoveryURLs = new DiscoveryURLs();
    discoveryURLs.getDiscoveryURL().add(generateDiscoveryURL(discoveryURL));
View Full Code Here

    return businessEntity;
  }
 
  public static Contacts generateContacts (List<Contact> contactList)
  {
    Contacts contacts = new Contacts();
    for (Contact c : contactList)
      contacts.getContact().add(c);
   
    return contacts;
  }
View Full Code Here

                c.getKeyedReference().add(new KeyedReference(domainprefix+"key", "name", "value"));
                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

                db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
                publicationJoe.deleteBusiness(db);
        }

        private Contacts ContactMaxEmailMaxUseType() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Email m = new Email();
                m.setValue(str255);
                m.setUseType(str255);
                c.getEmail().add(m);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                cc.getContact().add(c);;
                return cc;
        }

        private Contacts ContactTooLongEmailMaxUseType() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Email m = new Email();
                m.setValue(str256);
                m.setUseType(str255);
                c.getEmail().add(m);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                cc.getContact().add(c);;
                return cc;
        }

        private Contacts ContactEmailUseTypeToolong() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Email m = new Email();
                m.setValue(str255);
                m.setUseType(str256);
                c.getEmail().add(m);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                cc.getContact().add(c);;
                return cc;
        }

        private Contacts ContactMaxDescription() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Email m = new Email();
                m.setValue(str255);
                m.setUseType(str255);
                c.getEmail().add(m);
                Description d = new Description();
                d.setLang(str26);
                d.setValue(str255);
                c.getDescription().add(d);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                cc.getContact().add(c);;
                return cc;
        }

        private Contacts ContactDescriptionTooLong() {
                Contacts cc = new Contacts();
                Contact c = new Contact();
                PersonName n = new PersonName();
                n.setValue("Bob");
                c.getPersonName().add(n);
                Email m = new Email();
                m.setValue(str255);
                m.setUseType(str255);
                c.getEmail().add(m);
                Description d = new Description();
                d.setLang(str256);
                d.setValue(str26);
                c.getDescription().add(d);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

                cc.getContact().add(c);;
                return cc;
        }

        private Contacts ContactPhoneTooLong() {
                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(str51);
                c.getPhone().add(p);
                cc.getContact().add(c);;
                return cc;
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.Contacts

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.