Examples of Contact


Examples of com.liferay.portal.model.Contact

    try {
      ExpandoValueLocalServiceUtil.addValue(
        themeDisplay.getCompanyId(), User.class.getName(), "SN",
        "aboutMe", user.getUserId(), aboutMe);

      Contact contact = user.getContact();

      contact.setJobTitle(jobTitle);

      ContactLocalServiceUtil.updateContact(contact);
    }
    catch (Exception e) {
      _log.error(e, e);
View Full Code Here

Examples of com.openbravo.ws.customers.Contact

    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Contact)) {
            return false;
        }
        Contact other = (Contact) obj;
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
                ((this.businessPartnerId == null && other.getBusinessPartnerId() == null) ||
                (this.businessPartnerId != null &&
                this.businessPartnerId.equals(other.getBusinessPartnerId()))) &&
                ((this.clientId == null && other.getClientId() == null) ||
                (this.clientId != null &&
                this.clientId.equals(other.getClientId()))) &&
                ((this.email == null && other.getEmail() == null) ||
                (this.email != null &&
                this.email.equals(other.getEmail()))) &&
                ((this.fax == null && other.getFax() == null) ||
                (this.fax != null &&
                this.fax.equals(other.getFax()))) &&
                ((this.firstName == null && other.getFirstName() == null) ||
                (this.firstName != null &&
                this.firstName.equals(other.getFirstName()))) &&
                ((this.id == null && other.getId() == null) ||
                (this.id != null &&
                this.id.equals(other.getId()))) &&
                ((this.lastName == null && other.getLastName() == null) ||
                (this.lastName != null &&
                this.lastName.equals(other.getLastName()))) &&
                ((this.phone == null && other.getPhone() == null) ||
                (this.phone != null &&
                this.phone.equals(other.getPhone()))) &&
                ((this.phone2 == null && other.getPhone2() == null) ||
                (this.phone2 != null &&
                this.phone2.equals(other.getPhone2())));
        __equalsCalc = null;
        return _equals;
    }
View Full Code Here

Examples of com.packtpub.java7.concurrency.chapter6.recipe06.util.Contact

   
    /*
     * Write the first element of the map
     */
    Map.Entry<String, Contact> element;
    Contact contact;
   
    element=map.firstEntry();
    contact=element.getValue();
    System.out.printf("Main: First Entry: %s: %s\n",contact.getName(),contact.getPhone());
   
    /*
     * Write the last element of the map
     */
    element=map.lastEntry();
    contact=element.getValue();
    System.out.printf("Main: Last Entry: %s: %s\n",contact.getName(),contact.getPhone());

    /*
     * Write a subset of the map
     */
    System.out.printf("Main: Submap from A1996 to B1002: \n");
    ConcurrentNavigableMap<String, Contact> submap=map.subMap("A1996", "B1002");
    do {
      element=submap.pollFirstEntry();
      if (element!=null) {
        contact=element.getValue();
        System.out.printf("%s: %s\n",contact.getName(),contact.getPhone());
      }
    } while (element!=null);
  }
View Full Code Here

Examples of com.plusone.model.Contact

  public void doPost(HttpServletRequest request, HttpServletResponse response) {
    String name = request.getParameter("name-field");
    String email = request.getParameter("email-field");
    String phone = request.getParameter("phone-field");

    Contact contact = new Contact();
    contact.setDisplayName(name);
    contact.setEmailAddress(email);
    contact.setPhoneNumber(phone);
    contact.setIpaddress(request.getRemoteAddr());

    ContactAction action = new ContactAction(new InputVerifier());

    if (action.IsValid(contact)) {
      action.Save(contact);
View Full Code Here

Examples of com.sahuaro.domain.Contact

      sb.append("Last name: " + prospect.getLastName() + "\n");
      sb.append("Email: " + prospect.getEmail() + "\n");
      sb.append("Message:\n " + message + "\n");
     
    }else if(t instanceof Contact){
      Contact contact = (Contact) t;
      sb.append(prospect.getFirstName() + " is trying to contact you.\n");
      sb.append("The prospect info is show below.\n");
      sb.append("First name: " + prospect.getFirstName() + "\n");
      sb.append("Last name: " + prospect.getLastName() + "\n");
      sb.append("Email: " + prospect.getEmail() + "\n");
      sb.append("Company: " + contact.getCompany() + "\n");
      sb.append("Telephone: " + contact.getTelephone() + "\n");
      sb.append("Message:\n " + message + "\n");
     
    }
    return sb.toString();
  }
View Full Code Here

Examples of com.sandrini.sandelivery.model.Contact

    public List<Contact> getAllContacts() {
        return getSession().createQuery("from Contact order by name").list();
    }

    public void deleteContact(Long contactId) {
        Contact contact = getContact(contactId);
        if (contact != null) {
            getSession().delete(contact);
        }
    }
View Full Code Here

Examples of com.sivalabs.addressbook.model.Contact

  }
 
  @RequestMapping(method=RequestMethod.GET, value="newContact")
  public String newContactForm(Model model)
  {
    model.addAttribute("contact", new Contact());
    return "phonebook/newContact";
  }
View Full Code Here

Examples of com.sivalabs.angularcrud.entities.Contact

    User user2 = new User(2, "siva@gmail.com", "siva", "Siva");
   
    user1.addRoles(role1, role2);
    user2.addRoles(role1);
   
    Contact contact1 = new Contact(null, "abcd@gmail.com", "Abcd", null, null, user2);
    Contact contact2 = new Contact(null, "xyz@gmail.com", "Xyz", null, null, user2);
    user2.addContacts(contact1, contact2);
   
    userService.createUser(user1);
    userService.createUser(user2);
   
View Full Code Here

Examples of com.sivalabs.jacksondemo.entities.Contact

  @Autowired
  private ContactService contactService;
 
  @RequestMapping(value="/{contactId}", method=RequestMethod.GET, produces=JSON_TYPE)
  public ResponseEntity<Contact> findContact(@PathVariable("contactId") Integer contactId) {
    Contact contact = contactService.findContactById(contactId);
    ResponseEntity<Contact> response = new ResponseEntity<>(getCopy(contact), HttpStatus.OK);
    return response;
  }
View Full Code Here

Examples of com.sivalabs.phonebook.entities.Contact

    User user2 = new User(null, "siva@gmail.com", "siva", "Siva");
   
    user1 = userService.createUser(user1);
    user2 = userService.createUser(user2);
   
    Contact c1 = new Contact();
    c1.setName("Ramu");
    c1.setEmail("ramu@gmail.com");
    c1.setMobile("9874568584");
    c1.setUser(user1);
   
    Contact c2 = new Contact();
    c2.setName("Suman");
    c2.setEmail("suman@gmail.com");
    c2.setMobile("965852222");
    c2.setUser(user1);
   
    Contact c3 = new Contact();
    c3.setName("Anil");
    c3.setEmail("anil@gmail.com");
    c3.setMobile("966666666");
    c3.setUser(user2);
   
    phoneBookService.createContact(user1.getId(), c1);
    phoneBookService.createContact(user1.getId(), c2);
    phoneBookService.createContact(user2.getId(), c3);
   
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.