Examples of Contact


Examples of org.uddi.api_v2.Contact

                List<Contact> r = new ArrayList<Contact>();
                if (contact == null) {
                        return r;
                }
                for (int i = 0; i < contact.size(); i++) {
                        Contact c = new Contact();
                        c.setUseType(contact.get(i).getUseType());
                        c.setPersonName(contact.get(i).getPersonName().get(0).getValue());
                        c.getAddress().addAll(MapAddress(contact.get(i).getAddress()));
                        c.getDescription().addAll(MapDescription(contact.get(i).getDescription()));
                        c.getEmail().addAll(MapEmail(contact.get(i).getEmail()));
                        c.getPhone().addAll(MapPhone(contact.get(i).getPhone()));
                       
                        r.add(c);
                }
                return r;
        }
View Full Code Here

Examples of org.uddi.api_v3.Contact

    }
    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

Examples of org.vaelen.contactmanager.model.Contact

    createContact("Riker", "William", "Serial Number: SC-231-427\nCurrent Post: USS Titan NCC-80102 (Captain)\nPrevious Posts:\n\tUSS Enterprise NCC-1701-E (First Officer)\n\tUSS Enterprise NCC-1701-D (First Officer)\n\tUSS Hood NCC-42296 (First Officer)\n\tUSS Potemkin NCC-18253\n\tUSS Pegasus NCC-53847 (Conn Officer)", "riker@starfleet.com", "555-555-5555");
  }
 
  /** This method creates a Contact object to use for testing purposes. */
  private void createContact(String lastName, String firstName, String notes, String email, String phone) {
    Contact contact = new Contact();
    String contactId = UUID.randomUUID().toString();
    contact.setContactId(contactId);
    contact.setFirstName(firstName);
    contact.setLastName(lastName);
    contact.setNotes(notes);
   
    String phoneId = UUID.randomUUID().toString();
    PhoneNumber phoneNumber = new PhoneNumber();
    phoneNumber.setPhoneId(phoneId);
    phoneNumber.setContactId(contactId);
    phoneNumber.setPhoneNumber(phone);
    Set<PhoneNumber> phoneSet = new LinkedHashSet<PhoneNumber>();
    phoneSet.add(phoneNumber);
    contact.setPhoneNumbers(phoneSet);
   
    String emailId = UUID.randomUUID().toString();
    EmailAddress emailAddress = new EmailAddress();
    emailAddress.setEmailId(emailId);
    emailAddress.setContactId(contactId);
    emailAddress.setEmailAddress(email);
    Set<EmailAddress> emailSet = new LinkedHashSet<EmailAddress>();
    emailSet.add(emailAddress);
    contact.setEmailAddresses(emailSet);
   
    contact.setContactId(contactId);
    contactMap.put(contactId, contact);
    debug("Test Contact Created. First Name: %s, Last Name: %s, Contact ID: %s", firstName, lastName, contactId);
  }
View Full Code Here

Examples of org.wicketstuff.javaee.example.model.Contact

        add(new Label("welcomeMessage", welcome));
        add(new ListView<Contact>("contacts", contactDao.getContacts()) {

            @Override
            protected void populateItem(final ListItem<Contact> item) {
                Contact contact = item.getModelObject();
                item.add(new Label("name", contact.getName()));
                item.add(new Label("email", contact.getEmail()));
                item.add(new Link<Contact>("delete", item.getModel()) {

                    @Override
                    public void onClick() {
                        contactDao.remove(item.getModelObject());
View Full Code Here

Examples of org.wso2.carbon.business.messaging.salesforce.stub.sobject.Contact

                if (qr.getSize() > 0) {
                    System.out.println("Logged in user can see " + qr.getRecords().length +
                                       " contact records. ");
                    do {
                        for (int i = 0; i < qr.getRecords().length; i++) {
                            Contact con = (Contact) qr.getRecords()[i];
                            String fName = con.getFirstName();
                            String lName = con.getLastName();
                            if (fName == null) {
                                System.out.println("Contact " + (i + 1) + ": " + lName);
                            } else {
                                System.out.println("Contact " + (i + 1) + ": " + fName + " " + lName);
                            }
View Full Code Here

Examples of rocks.xmpp.core.roster.model.Contact

public class ContactExchangeManagerTest extends ExtensionTest {

    @BeforeClass
    public void prepareRoster() throws Exception {
        Roster roster = new Roster();
        roster.getContacts().add(new Contact(Jid.valueOf("juliet@example.net"), "juliet", "friends", "friends2"));
        roster.getContacts().add(new Contact(Jid.valueOf("romeo@example.net"), "romeo", "friends"));
        IQ iq = new IQ(AbstractIQ.Type.SET, roster);
        // Simulate a roster push in order to fill the roster.
        xmppSession.handleElement(iq);
    }
View Full Code Here

Examples of ru.drakeface.springmvchibernate.domain.Contact

                .list();
    }

    @Override
    public void removeContact(Integer id) {
        Contact contact = (Contact) sessionFactory.getCurrentSession().load(
                Contact.class, id);
        if (null != contact) {
            sessionFactory.getCurrentSession().delete(contact);
        }
View Full Code Here

Examples of sample.hello.bean.Contact

  private static void initOneContact() {
    Address[] addrs = {
      new Address("Shanghai", "Long Hua Street"),
      new Address("Shanghai", "Dong Quan Street")
    };
    Contact cHuang = new Contact("huangyim", "Huang Yi Ming", Arrays.asList(addrs));
    store.put(cHuang.getId(), cHuang);
  }
View Full Code Here

Examples of siena.base.test.model.Contact

      ent.addresses = new ArrayList<Address>();
      ent.addresses.add(new Address("addr_"+i+"_0", "town_"+i+"_0"));
      ent.addresses.add(new Address("addr_"+i+"_1", "town_"+i+"_1"));
      ent.contacts = new HashMap<String, Contact>();
      ent.contacts.put("id_"+i,
          new Contact("Somebody_"+i, Arrays.asList("foo_"+i, "bar_"+i)));
     
      // Blob
      byte[] blob = new byte[5000];
      Arrays.fill(blob, _byte++);
      ent.typeBlob = blob;
View Full Code Here

Examples of sk.vrto.domain.Contact

     * @param user User to create contacts for
     */
    @PostConstruct
    public void initForUser(User user) {
        contacts.putAll(user, Arrays.asList(
                new Contact("Chuck Norris", "gmail@chucknorris.com", user),
                new Contact("Wayne Gretzky", "gretzky@nhl.com", user),
                new Contact("Mario Lemieux", "lemieux@nhl.com", user),
                new Contact("Arnold Schwarzenegger", "schwarzie@expedanbles.com", user),
                new Contact("James Gosling", "gosling@java.com", user),
                new Contact("Walter White", "walter.white@breakingbad.com", user),
                new Contact("Frank Horrigan", "bigbadboss@enclave.com", user),
                new Contact("Alex Ovechkin", "ovi8@caps.com", user)
        ));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.