*/
public Long addRoomToOrganisation(long user_level, long rooms_id,
long organisation_id) {
try {
if (authLevelManagement.checkAdminLevel(user_level)) {
Rooms_Organisation rOrganisation = new Rooms_Organisation();
rOrganisation.setRoom(this.getRoomById(rooms_id));
log.debug("addRoomToOrganisation rooms '"
+ rOrganisation.getRoom().getName() + "'");
rOrganisation.setStarttime(new Date());
rOrganisation.setOrganisation(organisationmanagement
.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);
}