Package org.openmeetings.app.persistence.beans.rooms

Examples of org.openmeetings.app.persistence.beans.rooms.RoomTypes


      List<RoomTypes> rommTypesList = ConferenceService.getInstance().getRoomTypes(SID);
      RoomTypes[] roomTypesArray = new RoomTypes[rommTypesList.size()];
     
      int count = 0;
      for (Iterator<RoomTypes>it = rommTypesList.iterator();it.hasNext();){
        RoomTypes roomType = it.next();
        roomTypesArray[count] = roomType;
        count++;
      }
     
      return roomTypesArray;
View Full Code Here


   * @param name
   * @return ID of new created roomtype or null
   */
  public Long addRoomType(String name){
    try {
      RoomTypes rtype = new RoomTypes();
      rtype.setName(name);
      rtype.setStarttime(new Date());
      rtype.setDeleted("false");
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      rtype = session.merge(rtype);
      session.flush();
      long returnId = rtype.getRoomtypes_id();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
      return returnId;
    } catch (Exception ex2) {
      log.error("[addRoomType] ",ex2);
View Full Code Here

          users_id);
      if (AuthLevelmanagement.getInstance().checkUserLevel(user_level)) {

        log.debug("updateAppointment");

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

        Appointment app = AppointmentLogic.getInstance()
            .getAppointMentById(appointmentId);
View Full Code Here

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

        log.debug("updateAppointment");

        RoomTypes rt = roommanagement.getRoomTypesById(roomType);

        Appointment app = appointmentLogic
            .getAppointMentById(appointmentId);

        Rooms room = app.getRoom();
View Full Code Here

      RoomTypes[] roomTypesArray = new RoomTypes[rommTypesList.size()];

      int count = 0;
      for (Iterator<RoomTypes> it = rommTypesList.iterator(); it
          .hasNext();) {
        RoomTypes roomType = it.next();
        roomTypesArray[count] = roomType;
        count++;
      }

      return roomTypesArray;
View Full Code Here

        newList.add(map);
      }

      log.debug("updateAppointment");

      RoomTypes rt = roommanagement.getRoomTypesById(roomType);

      Appointment app = appointmentLogic
          .getAppointMentById(appointmentId);

      Rooms room = app.getRoom();
View Full Code Here

   * @param name
   * @return ID of new created roomtype or null
   */
  public Long addRoomType(String name, boolean deleted) {
    try {
      RoomTypes rtype = new RoomTypes();
      rtype.setName(name);
      rtype.setStarttime(new Date());
      rtype.setDeleted(deleted ? "true" : "false");
      rtype = em.merge(rtype);
      long returnId = rtype.getRoomtypes_id();
      return returnId;
    } catch (Exception ex2) {
      log.error("[addRoomType] ", ex2);
    }
    return null;
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.rooms.RoomTypes

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.