Examples of Contact


Examples of org.oasis.wsrp.v2.Contact

      return setExportLifetime;
   }

   public static Contact createContact(Postal postal, Telecom telecom, Online online)
   {
      Contact contact = new Contact();
      contact.setPostal(postal);
      contact.setTelecom(telecom);
      contact.setOnline(online);

      return contact;
   }
View Full Code Here

Examples of org.opentransactions.otapi.Contact

        if (addressBook == null) {
            System.out.println("getContactDetails - addressBook returns null");
            return null;
        }
        for(int i=0;i<addressBook.GetContactCount();i++){
            Contact contact = addressBook.GetContact(i);
            if(contact==null)
                continue;
            if(contactID.equals(contact.getContact_id())){
                contactDetails = new ContactDetails();
                contactDetails.setEmail(contact.getEmail());
                contactDetails.setLabel(contact.getGui_label());
                contactDetails.setPublicKey(contact.getPublic_key());
                contactDetails.setMemo(contact.getMemo());
                contactDetails.setContact(contact);
                List data = new ArrayList();
                System.out.println("mode:"+mode+" contact.GetContactAcctCount():"+contact.GetContactAcctCount());
                if(mode==1){
                    for(int j=0;j<contact.GetContactAcctCount();j++){
                        if(contact.GetContactAcct(j)==null)
                            continue;
                       
                        data.add(new String[]{contact.GetContactAcct(j).getGui_label()});
                    }
                    contactDetails.setContactAccts(data);
                }else{
                    for(int j=0;j<contact.GetContactNymCount();j++){
                        if(contact.GetContactNym(j)==null)
                            continue;
                        data.add(new String[]{contact.GetContactNym(j).getGui_label()});
                    }
                    contactDetails.setContactNyms(data);
                }
                break;
            }
View Full Code Here

Examples of org.restlet.example.ext.rdf.foaf.objects.Contact

        users.remove(user.getId());
    }

    @Override
    public Contact getContactById(String contactId) {
        Contact result = null;
        for (User user : users.values()) {
            for (Contact contact : user.getContacts()) {
                if (contactId.equals(contact.getId())) {
                    result = contact;
                    break;
View Full Code Here

Examples of org.restlet.test.ext.odata.cafe.Contact

        assertEquals("Le Cafe Louis", cafe.getName());
        assertEquals("Cafe corp.", cafe.getCompanyName());
        assertEquals("Levallois-Perret", cafe.getCity());
        assertEquals(92300, cafe.getZipCode());

        Contact contact = cafe.getContact();
        assertNotNull(contact);
        assertEquals("1", contact.getId());
        assertEquals("Agathe Zeblues", contact.getName());
        assertEquals("Chief", contact.getTitle());

        assertTrue(iterator.hasNext());
        cafe = iterator.next();
        assertEquals("2", cafe.getId());
        assertEquals("Le Petit Marly", cafe.getName());
        assertEquals("Cafe inc.", cafe.getCompanyName());
        assertEquals("Marly Le Roi", cafe.getCity());
        assertEquals(78310, cafe.getZipCode());

        contact = cafe.getContact();
        assertNotNull(contact);
        assertEquals("2", contact.getId());
        assertEquals("Alphonse Denltas", contact.getName());
        assertEquals("Boss", contact.getTitle());
    }
View Full Code Here

Examples of org.restlet.test.ext.odata.cafecustofeeds.Contact

        assertEquals("Le Cafe Louis", cafe.getName());
        assertEquals("Cafe corp.", cafe.getCompanyName());
        assertEquals("Levallois-Perret", cafe.getCity());
        assertEquals(92300, cafe.getZipCode());

        Contact contact = cafe.getContact();
        assertNotNull(contact);
        assertEquals("1", contact.getId());
        assertEquals("Agathe Zeblues", contact.getName());
        assertEquals("Chief", contact.getTitle());

        assertTrue(iterator.hasNext());
        cafe = iterator.next();
        assertEquals("2", cafe.getId());
        assertEquals("Le Petit Marly", cafe.getName());
        assertEquals("Cafe inc.", cafe.getCompanyName());
        assertEquals("Marly Le Roi", cafe.getCity());
        assertEquals(78310, cafe.getZipCode());

        contact = cafe.getContact();
        assertNotNull(contact);
        assertEquals("2", contact.getId());
        assertEquals("Alphonse Denltas", contact.getName());
        assertEquals("Boss", contact.getTitle());
    }
View Full Code Here

Examples of org.smslib.Contact

          String type = tokens4.nextToken();
          type = (type == null ? "" : type.trim());
          // TODO: *end*
          String name = tokens4.nextToken();
          name = (name == null ? "" : name.trim());
          phonebook.getContacts().add(new Contact(name, phone, location, Integer.parseInt(index)));
          count++;
          entry = reader.readLine().trim();
        }
        reader.close();
      }
View Full Code Here

Examples of org.sporcic.domain.Contact

    public List<Contact> addContacts(Contact[] contacts) {

        List<Contact> data = new ArrayList<Contact>();

        for(Contact contact : contacts) {
            Contact newContact = contactDao.addContact(contact);
            data.add(newContact);
        }

        return data;
    }
View Full Code Here

Examples of org.springframework.issues.Contact

  }
 
  @RequestMapping("/contacts")
  public ModelAndView showContacts() {
   
    return new ModelAndView("contact", "command", new Contact());
  }
View Full Code Here

Examples of org.springframework.richclient.samples.simple.domain.Contact

  public ContactPropertiesDialog(Contact contact, ContactDataStore dataStore) {
    Assert.notNull(dataStore, "The data store is required to edit a contact");
    if (contact == null) {
      creatingNew = true;
      contact = new Contact();
    }
    setCloseAction(CloseAction.DISPOSE);
    form = new ContactForm(contact);
    setDialogPage(new FormBackedDialogPage(form));
    this.dataStore = dataStore;
View Full Code Here

Examples of org.spw.model.Contact

    public CommunicationDataProviderTest(String testName) {
        super(testName);
    }
   
    protected void setUp() throws Exception {
        Contact contact = new Contact();
        contact.setIdContact(TEST_ID_CONTACT);
        contact.setFirstName(getName());
        contactCtrl.create(contact);
        //Action completed with a participant
        Communication com1 = new Communication();
        com1.setIdCommunication(TEST_ID_COMPLETED_WITH_CONTACT);
        com1.setActionToBeConducted("Test already done");
        com1.setDateOfCompletion(new Date());
        com1.setTopic(getName());
        List participants = new ArrayList();
        participants.add(contact);
        com1.setParticipants(participants);
        comCtrl.create(com1);
        contact.getParticipate().add(com1);
        contactCtrl.update(contact);
        //No action to complete
        Communication com2 = new Communication();
        com2.setIdCommunication(TEST_ID_NO_ACTION);
        com2.setTopic(getName());
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.