* @return
*/
public Long addRoomModeratorByUserId(User us, Boolean isSuperModerator,
Long roomId) {
try {
RoomModerator rModerator = new RoomModerator();
rModerator.setUser(us);
rModerator.setIsSuperModerator(isSuperModerator);
rModerator.setStarttime(new Date());
rModerator.setDeleted(false);
rModerator.setRoomId(roomId);
rModerator = em.merge(rModerator);
long rModeratorId = rModerator.getRoomModeratorsId();
return rModeratorId;
} catch (Exception ex2) {
log.error("[addRoomModeratorByUserId] ", ex2);
}
return null;