Examples of Appointment


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

       
      } else{
       
        //If this is an Appointment then the Moderator will be set to the Invitor
       
        Appointment ment = AppointmentLogic.getInstance().getAppointmentByRoom(room_id);
       
        List<MeetingMember> members = MeetingMemberDaoImpl.getInstance().getMeetingMemberByAppointmentId(ment.getAppointmentId());
       
        Long userIdInRoomClient = currentClient.getUser_id();
       
        boolean found = false;
        boolean moderator_set = false;
View Full Code Here

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

   
    if(room.getAppointment() == false)
      return null;
   
    try{
      Appointment ment = AppointmentLogic.getInstance().getAppointmentByRoom(room_id);
     
     
      return ment;
    }catch(Exception e){
      log.error("getAppointMentDataForRoom " + e.getMessage());
View Full Code Here

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

   
    if(room.getAppointment() == false)
      return null;
   
    try{
      Appointment appointment = AppointmentLogic.getInstance().getAppointmentByRoom(room_id);
     
      Map returnMap = new HashMap();
     
      returnMap.put("appointment", appointment);
     
      Users us = Usermanagement.getInstance().getUserById(currentClient.getUser_id());
     
      String jNameTimeZone = null;
      if (us != null && us.getOmTimeZone() != null) {
        jNameTimeZone = us.getOmTimeZone().getJname();
      } else {
        Configuration conf = Configurationmanagement.getInstance().getConfKey(3L, "default.timezone");
        if (conf != null) {
          jNameTimeZone = conf.getConf_value();
        }
      }
     
      OmTimeZone omTimeZone = OmTimeZoneDaoImpl.getInstance().getOmTimeZone(jNameTimeZone);
     
      Calendar cal = Calendar.getInstance();
      cal.setTimeZone(TimeZone.getTimeZone(omTimeZone.getIcal()));
      int offset = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET);
     
      Date starttime = new Date(appointment.getAppointmentStarttime().getTime() + offset);
      Date endtime = new Date(appointment.getAppointmentEndtime().getTime() + offset);
     
      returnMap.put("appointment", appointment);
     
      returnMap.put("start", CalendarPatterns.getDateWithTimeByMiliSeconds(starttime));
      returnMap.put("end", CalendarPatterns.getDateWithTimeByMiliSeconds(endtime));
View Full Code Here

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

       List<Appointment> points = AppointmentLogic.getInstance().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.getInstance().getRoomById(rooms_id);
         
          if(!rooom.getRoomtype().getRoomtypes_id().equals(room_types_id))
            continue;
         
View Full Code Here

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

        List<Appointment> appointments = AppointmentLogic.getInstance().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.getInstance().getRoomById(rooms_id);

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

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

        log.debug("updateAppointment");

        log.debug("appointmentId " + appointmentId);

        Appointment app = AppointmentLogic.getInstance()
            .getAppointMentById(appointmentId);

        Users user = Usermanagement.getInstance().getUserById(users_id);
       
        return AppointmentLogic.getInstance().updateAppointmentByTime(
View Full Code Here

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

        log.debug("updateAppointment");

        RoomTypes rt = Roommanagement.getInstance().getRoomTypesById(
            roomType);

        Appointment app = AppointmentLogic.getInstance()
            .getAppointMentById(appointmentId);

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

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

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

//        Appointment app = AppointmentLogic.getInstance()
//            .getAppointMentById(appointmentId);
//        Roommanagement.getInstance().deleteRoom(app.getRoom());
       
        Appointment appointment = new Appointment();

        Appointment appStored = AppointmentDaoImpl.getInstance().getAppointmentByRoomId(
                              users_id, room_id);

        Users user = Usermanagement.getInstance().getUserById(users_id);
       
        TimeZone timeZone = TimeZone.getTimeZone(user.getOmTimeZone().getIcal());
       
        Calendar cal = Calendar.getInstance();
        cal.setTimeZone(timeZone);
        int offset = cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSET);
       
        //System.out.println("CalendarServlet offset "+offset );
        //System.out.println("CalendarServlet TimeZone "+TimeZone.getDefault().getID() );
        //log.debug("addAppointment offset :: "+offset);
       
        appointment.setAppointmentStarttime(new Date(appStored.getAppointmentStarttime().getTime() + offset));
        appointment.setAppointmentEndtime(new Date(appStored.getAppointmentEndtime().getTime() + offset));
       
       
        return appointment;
      }
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.