Examples of Contact


Examples of de.danielbechler.diff.example.phonebook.Contact

  }

  @Test
  public void testDetectsChangeForDuplicatesInList() throws Exception
  {
    final Contact joe = new Contact("Joe", "Smith");
    final PhoneBook phoneBookServer = new PhoneBook("devs");
    phoneBookServer.addContact(joe);
    final PhoneBook phoneBookMobile = new PhoneBook("devs");
    phoneBookMobile.addContact(joe);
View Full Code Here

Examples of de.xanders.data.customer.dao.Contact

    /**
     * @see ContactService#getContactById(java.lang.Long)
     */
    protected ContactVO handleGetContactById(java.lang.Long contactId)
        throws java.lang.Exception {
      Contact contact = this.getContactDao().load(contactId);
      return this.getContactDao().toContactVO(contact);
    }
View Full Code Here

Examples of eas.simulation.spatial.sim2D.physicalSimulation.physicsEngine.Contact

        for (int i=0;i<arbiters.size();i++) {
            Arbiter<AgentType> arb = arbiters.get(i);
           
            if (arb.concerns(body)) {
                for (int j=0;j<arb.getNumContacts();j++) {
                    Contact contact = arb.getContact(j);
                    CollisionEvent event = new CollisionEvent(0, arb.getBody1(), arb.getBody2(), contact.getPosition(), contact.getNormal(), contact.getSeparation());
                   
                    collisions.add(event);
                }
            }
        }
View Full Code Here

Examples of edu.dartmouth.cs.gae_sample.data.Contact

      getServletContext().getRequestDispatcher("/query_result.jsp")
          .forward(req, resp);
      return;
    }

    Contact contact = new Contact(id, tema, titulo, resumen, autorind, autor1, autor2, autor3, autor4, autor5, autor6, afiliacion, unal, institucion, cargo, dia, mes, anio, lugar, fecha, nombre, editorial, ubicacion, acceso, importancia, observ, ambiental, bienestar, democracia, formacion, invest, legado, megat, nalPub, territ);

    boolean ret = ContactDatastore.add(contact);
    if (ret) {
      req.setAttribute("_retStr", "Add contact " + id + " succ");
View Full Code Here

Examples of gfriends.server.model.Contact

  @SuppressWarnings("unchecked")
  @Override
  public boolean register(String nickname, String email) {

    PersistenceManager pm = null;
    Contact contact = new Contact(nickname, email, new Date(), true, null);

    try {
      pm = PMF.get().getPersistenceManager();

      String query = "select from " + Contact.class.getName() + " where email == :email";
      List<Contact> contactList = (List<Contact>) pm.newQuery(query).execute(email);

      if (contactList != null && contactList.size() > 0) {
        return false;
      }

      query = "select from " + Contact.class.getName();
      contactList = (List<Contact>) pm.newQuery(query).execute();
      contact.setEnable(false);
      contact.setStyle("contact_" + contactList.size());
      pm.makePersistent(contact);

      sendMail(nickname, email);

      return true;
View Full Code Here

Examples of gov.nist.javax.sip.header.Contact

         * Check if we got this request on the contact address of the dialog If not the dialog
         * does not belong to this request. We check this condition if a contact address has been
         * assigned to the dialog. Forgive the sins of B2BUA's that like to record route ACK's
         */
        if (dialog != null && sipProvider != dialog.getSipProvider()) {
            Contact contact = dialog.getMyContactHeader();
            if (contact != null) {
                SipUri contactUri = (SipUri) (contact.getAddress().getURI());
                String ipAddress = contactUri.getHost();
                int contactPort = contactUri.getPort();
                String contactTransport = contactUri.getTransportParam();
                if (contactTransport == null)
                    contactTransport = "udp";
View Full Code Here

Examples of javax.microedition.pim.Contact

            while( e.hasMoreElements() ) {
                if( !isSorted && iElement == maxReturn ) {
                    break;
                }

                Contact c = (Contact) e.nextElement();
                ContactObject contact = new ContactObject( c );
                if( testable != null ) {
                    if( testable.test( contact ) ) {
                        FindNamespace.insertElementByOrder( found, contact, orderByField, isAscending );
                        iElement++;
View Full Code Here

Examples of models.Contact

    public static void form(Long id) {
        if(id == null) {
//            render();
          renderJapid((Object)null);
        }
        Contact contact = Contact.findById(id);
//        render(contact);
        renderJapid(contact);
    }
View Full Code Here

Examples of models.entities.Contact

    public void baseDaoTest() {
        running(fakeApplication(inMemoryDatabase()), new Runnable() {
            public void run() {
                try {
                    ContactDao dao = DaoManager.getContactDao();
                    Contact c1 = new Contact();
                    c1.setFirstName("Jack");
                    c1.setLastName("Jones");
                    dao.persist(c1);

                    assertNotNull("saved contact id is null", c1.getId());
                    Contact c2 = dao.findById(c1.getId());
                    assertEquals("names are not equal", c2.getFirstName(), c1.getFirstName());
                    dao.remove(c2);
                    Contact c3 = dao.findById(c1.getId());
                    assertNull("removed contact is not null", c3);
                } catch (DataAccessException e) {
                    e.printStackTrace();
                }
            }
View Full Code Here

Examples of net.fortuna.ical4j.model.property.Contact

      s += "\n" + user.getOrganization();
    }
    if (user.getPersonalPhoneIdentifiers() != null) {
      s += "\n" + user.getPersonalPhoneIdentifiers();
    }
    vEvent.getProperties().add(new Contact(s));
    try {
      if (StringUtils.isNotBlank(user.getEmail()) == true) {
        final ParameterList organizerParams = new ParameterList();
        organizerParams.add(new Cn(user.getFullname()));
        final Organizer organizer = new Organizer(organizerParams, "mailto:" + user.getEmail());
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.