Boolean hideActionsMenu, Boolean hideScreenSharing, Boolean hideWhiteboard,
Boolean showMicrophoneStatus, Boolean chatModerated, boolean chatOpened
, boolean filesOpened, boolean autoVideoSelect, boolean sipEnabled) {
try {
Room r = new Room();
r.setName(name);
r.setComment(comment);
r.setStarttime(new Date());
r.setNumberOfPartizipants(numberOfPartizipants);
r.setRoomtype(roomTypeDao.get(roomtypes_id));
r.setIspublic(ispublic);
r.setAllowUserQuestions(allowUserQuestions);
r.setIsAudioOnly(isAudioOnly);
r.setAllowFontStyles(allowFontStyles);
r.setAppointment(appointment);
r.setIsDemoRoom(isDemoRoom);
r.setDemoTime(demoTime);
r.setIsModeratedRoom(isModeratedRoom);
r.setHideTopBar(hideTopBar);
r.setDeleted(false);
r.setIsClosed(isClosed);
r.setRedirectURL(redirectURL);
r.setOwnerId(ownerId);
r.setWaitForRecording(waitForRecording);
r.setAllowRecording(allowRecording);
r.setHideChat(hideChat);
r.setHideActivitiesAndActions(hideActivitiesAndActions);
r.setHideActionsMenu(hideActionsMenu);
r.setHideFilesExplorer(hideFilesExplorer);
r.setHideScreenSharing(hideScreenSharing);
r.setHideWhiteboard(hideWhiteboard);
r.setShowMicrophoneStatus(showMicrophoneStatus);
r.setChatModerated(chatModerated);
r.setChatOpened(chatOpened);
r.setFilesOpened(filesOpened);
r.setAutoVideoSelect(autoVideoSelect);
r.setSipEnabled(sipEnabled);
r.setPin(conferencePin);
r = roomDao.update(r, ownerId);
if (organisations != null) {
Long t = this.updateRoomOrganisations(organisations, r);
if (t == null) {
return null;
}
}
if (roomModerators != null) {
r.setModerators(getModerators(roomModerators, r.getRooms_id()));
r = roomDao.update(r, ownerId);
}
return r.getRooms_id();
} catch (Exception ex2) {
log.error("[addRoom] ", ex2);
}
return null;
}