Examples of addUserContact()


Examples of org.apache.openmeetings.db.dao.user.UserContactsDao.addUserContact()

    dao.updateContactStatus(userContactId, false);

    contact = dao.get(userContactId);

    dao.addUserContact(contact.getOwner().getUser_id(), getUserId(), false, "");

    User user = contact.getOwner();

    if (user.getAdresses() != null) {
      String message = RequestContactConfirmTemplate.getEmail(user, contact);
View Full Code Here

Examples of org.openmeetings.app.data.user.dao.UserContactsDaoImpl.addUserContact()

   
    // Get instance
    UserContactsDaoImpl  contactDaoImpl = UserContactsDaoImpl.getInstance();
   
    assertNotNull("Cann't access to contacts dao implimentation", contactDaoImpl);
    Long id = contactDaoImpl.addUserContact(1L, 1L, false, "");
    assertTrue("New contact cann't added", id > 0);
    UserContacts userContact = contactDaoImpl.getUserContacts(id);

    assertTrue("Contact should be the same with user", userContact.getContact().equals(Usermanagement.getInstance().getUserById(id)));
   
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.