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

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


  }

  public void updateRoomModeratorByUserId(Long roomModeratorsId,
      Boolean isSuperModerator) {
    try {
      RoomModerators rModerator = this
          .getRoomModeratorById(roomModeratorsId);

      if (rModerator == null) {
        return;
      }

      rModerator.setIsSuperModerator(isSuperModerator);
      rModerator.setUpdatetime(new Date());

      if (rModerator.getRoomModeratorsId() == 0) {
        em.persist(rModerator);
      } else {
        if (!em.contains(rModerator)) {
          em.merge(rModerator);
        }
View Full Code Here


              .elementIterator("room_moderator"); iterMod
              .hasNext();) {

            Element room_moderator = iterMod.next();

            RoomModerators roomModerators = new RoomModerators();

            Long user_id = getNewId(
                importLongType(unformatString(room_moderator
                    .element("user_id").getText())),
                Maps.USERS);
            Boolean is_supermoderator = importBooleanType(unformatString(room_moderator
                .element("is_supermoderator").getText()));

            roomModerators.setDeleted("false");
            roomModerators.setRoomId(getNewId(rooms_id,
                Maps.ROOMS));
            roomModerators.setUser(userManagement
                .getUserById(user_id));
            roomModerators
                .setIsSuperModerator(is_supermoderator);

            roomModeratorsDao
                .addRoomModeratorByObj(roomModerators);
View Full Code Here

TOP

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

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.