*/
public Long addRoomToOrganisation(long user_level, long rooms_id,
long organisation_id) {
try {
if (AuthLevelUtil.checkAdminLevel(user_level)) {
RoomOrganisation rOrganisation = new RoomOrganisation();
rOrganisation.setRoom(roomDao.get(rooms_id));
log.debug("addRoomToOrganisation rooms '"
+ rOrganisation.getRoom().getName() + "'");
rOrganisation.setStarttime(new Date());
rOrganisation.setOrganisation(organisationManager
.getOrganisationById(organisation_id));
rOrganisation.setDeleted(false);
rOrganisation = em.merge(rOrganisation);
long returnId = rOrganisation.getRooms_organisation_id();
return returnId;
}
} catch (Exception ex2) {
log.error("[addRoomToOrganisation] ", ex2);
}