Package com.google.api.services.calendar.model

Examples of com.google.api.services.calendar.model.EventAttendee


            JacksonFactory jacksonFactory = new JacksonFactory();
            if (facet.attendeesStorage!=null) {
                this.attendees = new ArrayList<EventAttendee>();
                String[] attendees = facet.attendeesStorage.split("\\|");
                for (String attendee : attendees) {
                    final EventAttendee eventAttendee = jacksonFactory.fromString(attendee, EventAttendee.class);
                    eventAttendee.put("attendeeStatusClass", toCssClass(eventAttendee.getResponseStatus()));
                    this.attendees.add(eventAttendee);
                }
            }
            if (facet.creatorStorage!=null)
                creator = jacksonFactory.fromString(facet.creatorStorage, Event.Creator.class);
View Full Code Here


    }
    if (appointmentDto.getAttendees() != null) {
      final List<EventAttendee> attendees = new ArrayList<EventAttendee>();
      for (final PersonDto attendee : appointmentDto.getAttendees()) {
        if (attendee.getEmail() != null) {
          final EventAttendee eventAttendee = new EventAttendee();
          eventAttendee.setDisplayName(attendee.getName());
          eventAttendee.setEmail(attendee.getEmail());
          eventAttendee.setOptional(attendee.isOptional());
          attendees.add(eventAttendee);
        }
      }
      event.setAttendees(attendees);
    }
View Full Code Here

    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
      attendee.setDisplayName(bean.getName());
      attendee.setEmail(bean.getEmail());
      if (ParticipantType.REQUIRED.equals(bean.getType())) {
        attendee.setOptional(false);
      }
      list.add(attendee);
    }

    EventAttendee organizer = new EventAttendee();
    organizer.setDisplayName(from.getName());
    organizer.setEmail(from.getEmail());
    if (ParticipantType.REQUIRED.equals(from.getType())) {
      organizer.setOptional(false);
    }
    organizer.setOrganizer(true);
    list.add(organizer);

    event.setAttendees(list);
    return event;
  }
View Full Code Here

    DateTime end = new DateTime(endDate, TimeZone.getTimeZone("UTC"));
    event.setEnd(new EventDateTime().setDateTime(end));

    List<EventAttendee> list = new ArrayList<EventAttendee>();
    for (Participant bean : attendeesList) {
      EventAttendee attendee = new EventAttendee();
      attendee.setDisplayName(bean.getName());
      attendee.setEmail(bean.getEmail());
      if (ParticipantType.REQUIRED.equals(bean.getType())) {
        attendee.setOptional(false);
      }
      list.add(attendee);
    }

    EventAttendee organizer = new EventAttendee();
    organizer.setDisplayName(from.getName());
    organizer.setEmail(from.getEmail());
    if (ParticipantType.REQUIRED.equals(from.getType())) {
      organizer.setOptional(false);
    }
    organizer.setOrganizer(true);
    list.add(organizer);

    event.setAttendees(list);
    return event;
  }
View Full Code Here

TOP

Related Classes of com.google.api.services.calendar.model.EventAttendee

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.