Package org.apache.openmeetings.persistence.beans.calendar

Examples of org.apache.openmeetings.persistence.beans.calendar.Appointment


    if (room.getAppointment() == false)
      return null;

    try {
      Appointment ment = appointmentLogic.getAppointmentByRoom(room_id);

      return ment;
    } catch (Exception e) {
      log.error("getAppointMentDataForRoom ", e);
      return null;
View Full Code Here


 
      if (room.getAppointment() == false) {
        throw new IllegalStateException("Room has no appointment");
      }
   
      Appointment appointment = appointmentLogic
          .getAppointmentByRoom(room_id);

      Map<String, Object> returnMap = new HashMap<String, Object>();

      returnMap.put("appointment", appointment);

      User us = userManager.getUserById(currentClient.getUser_id());
      TimeZone timezone = timezoneUtil.getTimezoneByUser(us);

      returnMap.put("appointment", appointment);

      returnMap.put(
          "start",
          CalendarPatterns.getDateWithTimeByMiliSeconds(
              appointment.getAppointmentStarttime(), timezone));
      returnMap.put(
          "end",
          CalendarPatterns.getDateWithTimeByMiliSeconds(
              appointment.getAppointmentEndtime(), timezone));
      returnMap.put("timeZone", timezone.getDisplayName());

      return returnMap;
    } catch (Exception e) {
      log.error("getAppointMentAndTimeZones " , e );
View Full Code Here

          .getTodaysAppointmentsForUser(users_id);
      List<Room> result = new ArrayList<Room>();

      if (points != null) {
        for (int i = 0; i < points.size(); i++) {
          Appointment ment = points.get(i);

          Long rooms_id = ment.getRoom().getRooms_id();
          Room rooom = roomDao.get(rooms_id);

          if (!rooom.getRoomtype().getRoomtypes_id()
              .equals(room_types_id))
            continue;
View Full Code Here

            .getTodaysAppointmentsForUser(users_id);
        List<Room> result = new ArrayList<Room>();

        if (appointments != null) {
          for (int i = 0; i < appointments.size(); i++) {
            Appointment ment = appointments.get(i);

            Long rooms_id = ment.getRoom().getRooms_id();
            Room rooom = roomDao.get(rooms_id);

            rooom.setCurrentusers(this
                .getRoomClientsListByRoomId(rooom.getRooms_id()));
            result.add(rooom);
View Full Code Here

      } else {

        // If this is an Appointment then the Moderator will be set to
        // the Invitor

        Appointment ment = appointmentLogic
            .getAppointmentByRoom(room_id);

        List<MeetingMember> members = meetingMemberDao
            .getMeetingMemberByAppointmentId(ment
                .getAppointmentId());

        Long userIdInRoomClient = currentClient.getUser_id();

        boolean found = false;
View Full Code Here

          endtime);

      IcalHandler handler = new IcalHandler(
          IcalHandler.ICAL_METHOD_REQUEST);

      Appointment point = appointmentLogic
          .getAppointMentById(appointMentId);

      // Transforming Meeting Members

      HashMap<String, String> attendeeList = handler.getAttendeeData(
          email, username, invitor);

      Vector<HashMap<String, String>> atts = new Vector<HashMap<String, String>>();
      atts.add(attendeeList);

      // Defining Organizer
      User user = userManager.getUserById(organizer_userId);

      HashMap<String, String> organizerAttendee = handler
          .getAttendeeData(email, username, invitor);
      String replyToEmail = null;
      if (user != null) {
        replyToEmail = user.getAdresses().getEmail();
        organizerAttendee = handler.getAttendeeData(replyToEmail, user.getLogin(), invitor);
      }

      // Create ICal Message
      String meetingId = handler.addNewMeeting(starttime, endtime,
          point.getAppointmentName(), atts, invitation_link,
          organizerAttendee, point.getIcalId(), timezone);

      // Writing back meetingUid
      if (point.getIcalId() == null || point.getIcalId().length() < 1) {
        point.setIcalId(meetingId);

        appointmentDaoImpl.updateAppointment(point);
      }

      log.debug(handler.getICalDataAsString());
View Full Code Here

      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);

      if (authLevelUtil.checkWebServiceLevel(user_level)) {

        Appointment appointment = appointmentDao
            .getAppointmentByRoom(room_id);

        if (appointment == null) {
          return -1L;
        }
        // Not In Remote List available - extern user
        Long memberId = meetingMemberLogic.addMeetingMember(firstname,
            lastname, "0", "0", appointment.getAppointmentId(),
            null, email, null, baseUrl, null, new Boolean(false),
            language_id, false, "", null, null, "");

        return memberId;
View Full Code Here

      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManager.getUserLevelByID(users_id);

      if (authLevelUtil.checkWebServiceLevel(user_level)) {

        Appointment appointment = appointmentDao
            .getAppointmentByRoom(room_id);

        if (appointment == null) {
          return -1L;
        }

        // Not In Remote List available - extern user
        Long memberId = meetingMemberLogic.addMeetingMember(firstname,
            lastname, "0", "0", appointment.getAppointmentId(),
            null, email, "", baseUrl, null, new Boolean(false),
            language_id, false, "", null, null, invitorName);

        return memberId;
View Full Code Here

  public Appointment createAppointment() throws Exception {
    assertNotNull("Can't access to appointment dao implimentation", appointmentDao);

    // add new appointment
    Appointment ap = new Appointment();

    ap.setAppointmentName("appointmentName");
    ap.setAppointmentLocation("appointmentLocation");

    Date appointmentstart = new Date();
    Date appointmentend = new Date();
    appointmentend.setTime(appointmentstart.getTime() + 3600);

    ap.setAppointmentStarttime(appointmentstart);
    ap.setAppointmentEndtime(appointmentend);
    ap.setAppointmentDescription("appointmentDescription");
    ap.setStarttime(new Date());
    ap.setDeleted(false);
    ap.setIsDaily(false);
    ap.setIsWeekly(false);
    ap.setIsMonthly(false);
    ap.setIsYearly(false);
    ap.setIsPasswordProtected(false);

    ap.setUserId(usersDao.get(1L));
    ap.setIsConnectedEvent(false);
    Long id = appointmentDao.addAppointmentObj(ap);
    assertNotNull("Cann't add appointment", id);
    return ap;
  }
View Full Code Here

TOP

Related Classes of org.apache.openmeetings.persistence.beans.calendar.Appointment

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.