Package org.openmeetings.app.persistence.beans.calendar

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


      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (authLevelManagement.checkUserLevel(user_level)) {

        Appointment appointment = new Appointment();

        Appointment appStored = appointmentDao.getAppointmentByRoomId(
            users_id, room_id);

        appointment.setAppointmentStarttime(appStored
            .getAppointmentStarttime());
        appointment.setAppointmentEndtime(appStored
            .getAppointmentEndtime());

        return appointment;
      }
View Full Code Here


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

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

      return ment;
    } catch (Exception e) {
      log.error("getAppointMentDataForRoom " + e.getMessage());
      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);

      Users us = userManagement.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<Rooms> result = new ArrayList<Rooms>();

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

          Long rooms_id = ment.getRoom().getRooms_id();
          Rooms rooom = roommanagement.getRoomById(rooms_id);

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

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

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

            Long rooms_id = ment.getRoom().getRooms_id();
            Rooms rooom = roommanagement.getRoomById(rooms_id);

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

      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);

      if (authLevelManagement.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, "");

        return memberId;
View Full Code Here

      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);

      if (authLevelManagement.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

      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);

      if (authLevelManagement.checkUserLevel(user_level)) {
        // check if the appointment belongs to the current user
        Appointment appointment = appointmentLogic
            .getAppointMentById(appointmentId);
        if (!appointment.getUserId().getUser_id().equals(users_id)) {
          throw new AxisFault(
              "The Appointment cannot be updated by the given user");
        }
      } else if (authLevelManagement.checkUserLevel(user_level)) {
        // fine
      } else {
        throw new AxisFault(
            "Not allowed to preform that action, Authenticate the SID first");
      }

      List<Map<String, String>> newList = new ArrayList<Map<String, String>>();

      for (String singleClient : mmClient) {
        String[] params = singleClient.split(",");
        Map<String, String> map = new HashMap<String, String>();
        map.put("meetingMemberId", params[0]);
        map.put("firstname", params[1]);
        map.put("lastname", params[2]);
        map.put("email", params[3]);
        map.put("userId", params[4]);
        map.put("jNameTimeZone", params[5]);
        newList.add(map);
      }

      log.debug("updateAppointment");

      RoomTypes rt = roommanagement.getRoomTypesById(roomType);

      Appointment app = appointmentLogic
          .getAppointMentById(appointmentId);

      Rooms room = app.getRoom();
      if (room != null) {

        room.setComment(appointmentDescription);
        room.setName(appointmentName);
        room.setRoomtype(rt);
View Full Code Here

        return appointmentLogic.deleteAppointment(appointmentId,
            users_id, language_id);

      } else if (authLevelManagement.checkUserLevel(user_level)) {

        Appointment appointment = appointmentLogic
            .getAppointMentById(appointmentId);

        if (!appointment.getUserId().getUser_id().equals(users_id)) {
          throw new AxisFault(
              "The Appointment cannot be deleted by the given user");
        }

        return appointmentLogic.deleteAppointment(appointmentId,
View Full Code Here

      Long users_id = sessionManagement.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (authLevelManagement.checkUserLevel(user_level)) {

        Appointment appointment = new Appointment();

        Appointment appStored = appointmentDao.getAppointmentByRoomId(
            users_id, room_id);

        appointment.setAppointmentStarttime(appStored
            .getAppointmentStarttime());
        appointment.setAppointmentEndtime(appStored
            .getAppointmentEndtime());

        return appointment;
      }
View Full Code Here

TOP

Related Classes of org.openmeetings.app.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.