Package com.zerodes.exchangesync.dto

Examples of com.zerodes.exchangesync.dto.PersonDto


    if (event.getEnd().getDateTime() != null) {
      result.setAllDay(event.getEnd().getDateTime().isDateOnly());
    }
    result.setLocation(event.getLocation());
    if (event.getOrganizer() != null) {
      final PersonDto person = new PersonDto();
      person.setName(event.getOrganizer().getDisplayName());
      person.setEmail(event.getOrganizer().getEmail());
      result.setOrganizer(person);
    }
    if (event.getAttendees() != null) {
      final Set<PersonDto> attendees = new HashSet<PersonDto>();
      for (final EventAttendee eventAttendee : event.getAttendees()) {
        final PersonDto person = new PersonDto();
        person.setName(eventAttendee.getDisplayName());
        person.setEmail(eventAttendee.getEmail());
        if (eventAttendee.getOptional() != null) {
          person.setOptional(eventAttendee.getOptional());
        }
        attendees.add(person);
      }
      result.setAttendees(attendees);
    }
View Full Code Here


    task.setDueDate(convertToJodaDateTime(dueDate, false));
    return task;
  }
 
  public PersonDto convertToPersonDto(final EmailAddress email, final boolean optional) {
    final PersonDto person = new PersonDto();
    person.setName(email.getName());
    if (email.getRoutingType().equals("SMTP")) {
      person.setEmail(email.getAddress());
    }
    person.setOptional(optional);
    return person;
  }
View Full Code Here

TOP

Related Classes of com.zerodes.exchangesync.dto.PersonDto

Copyright © 2018 www.massapicom. 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.