| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License") + you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| package org.openmeetings.app.persistence.beans.rooms; |
| |
| import org.openmeetings.app.conference.session.RoomClient; |
| |
| import java.io.Serializable; |
| import java.util.Date; |
| import java.util.List; |
| |
| |
| import javax.persistence.Column; |
| import javax.persistence.Entity; |
| import javax.persistence.FetchType; |
| import javax.persistence.GeneratedValue; |
| import javax.persistence.GenerationType; |
| import javax.persistence.Id; |
| import javax.persistence.Lob; |
| import javax.persistence.ManyToOne; |
| import javax.persistence.JoinColumn; |
| import javax.persistence.Table; |
| import javax.persistence.Transient; |
| |
| @Entity |
| @Table(name = "rooms") |
| public class Rooms implements Serializable { |
| |
| private static final long serialVersionUID = -2860312283159251568L; |
| @Id |
| @GeneratedValue(strategy = GenerationType.IDENTITY) |
| |
| @Column(name="rooms_id") |
| private Long rooms_id; |
| @Column(name="name") |
| private String name; |
| @Lob //@Basic(fetch=FetchType.LAZY) |
| @Column(name="comment_field") |
| private String comment; |
| @ManyToOne(fetch = FetchType.EAGER) |
| @JoinColumn (name="roomtypes_id") |
| private RoomTypes roomtype; |
| @Column(name = "starttime") |
| private Date starttime; |
| @Column(name = "updatetime") |
| private Date updatetime; |
| @Column(name = "deleted") |
| private String deleted; |
| @Column(name = "ispublic") |
| private Boolean ispublic; |
| @Column(name = "numberOfPartizipants") |
| private Long numberOfPartizipants = new Long(4); |
| |
| @Column(name = "appointMent") |
| private Boolean appointment; |
| |
| //Vars to simulate external Rooms |
| @Column(name = "externalRoomId") |
| private Long externalRoomId; |
| @Column(name = "externalRoomType") |
| private String externalRoomType; |
| |
| @Column(name = "isdemoroom") |
| private Boolean isDemoRoom; |
| @Column(name = "demo_time") |
| private Integer demoTime; //In Seconds |
| |
| //If this is true all participants of a meeting have to wait for the moderator to come into the room |
| @Column(name = "ismoderatedroom") |
| private Boolean isModeratedRoom; |
| |
| @Column(name = "allow_user_questions") |
| private Boolean allowUserQuestions; |
| |
| @Column(name = "sip_number") |
| private String sipNumber; |
| @Column(name = "conference_pin") |
| private String conferencePin; |
| |
| @Column(name = "is_audio_only") |
| private Boolean isAudioOnly; |
| |
| @Column(name = "is_closed") |
| private Boolean isClosed; |
| @Column(name = "redirect_url") |
| private String redirectURL; |
| |
| @Column(name = "owner_id") |
| private Long ownerId; //Those are the rooms from the myrooms section |
| @Column(name = "wait_for_recording") |
| private Boolean waitForRecording; //Show warning that user has to start recording |
| @Column(name = "allow_recording") |
| private Boolean allowRecording; //Show or show not the recording option in a conference room |
| |
| /** |
| * Layout of Room |
| */ |
| @Column(name = "hide_top_bar") |
| private Boolean hideTopBar = false; |
| |
| @Column(name = "hide_chat") |
| private Boolean hideChat = false; |
| |
| @Column(name = "hide_activities_and_actions") |
| private Boolean hideActivitiesAndActions = false; |
| |
| @Column(name = "hide_files_explorer") |
| private Boolean hideFilesExplorer = false; |
| |
| @Column(name = "hide_actions_menu") |
| private Boolean hideActionsMenu = false; |
| |
| @Column(name = "hide_screen_sharing") |
| private Boolean hideScreenSharing = false; |
| |
| @Column(name = "hide_whiteboard") |
| private Boolean hideWhiteboard = false; |
| |
| @Column(name = "show_microphone_status") |
| private Boolean showMicrophoneStatus = false; |
| |
| /* |
| * Non persistent attributes |
| */ |
| @Transient |
| private List<RoomClient> currentusers; |
| |
| |
| public String getComment() { |
| return comment; |
| } |
| public void setComment(String comment) { |
| this.comment = comment; |
| } |
| |
| public String getName() { |
| return name; |
| } |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| public Long getRooms_id() { |
| return rooms_id; |
| } |
| public void setRooms_id(Long rooms_id) { |
| this.rooms_id = rooms_id; |
| } |
| |
| public RoomTypes getRoomtype() { |
| return roomtype; |
| } |
| public void setRoomtype(RoomTypes roomtype) { |
| this.roomtype = roomtype; |
| } |
| |
| public Date getStarttime() { |
| return starttime; |
| } |
| public void setStarttime(Date starttime) { |
| this.starttime = starttime; |
| } |
| |
| public Date getUpdatetime() { |
| return updatetime; |
| } |
| public void setUpdatetime(Date updatetime) { |
| this.updatetime = updatetime; |
| } |
| |
| public String getDeleted() { |
| return deleted; |
| } |
| public void setDeleted(String deleted) { |
| this.deleted = deleted; |
| } |
| |
| public Boolean getIspublic() { |
| return ispublic; |
| } |
| public void setIspublic(Boolean ispublic) { |
| this.ispublic = ispublic; |
| } |
| |
| public List<RoomClient> getCurrentusers() { |
| return currentusers; |
| } |
| public void setCurrentusers(List<RoomClient> currentusers) { |
| this.currentusers = currentusers; |
| } |
| |
| public Long getNumberOfPartizipants() { |
| return numberOfPartizipants; |
| } |
| public void setNumberOfPartizipants(Long numberOfPartizipants) { |
| this.numberOfPartizipants = numberOfPartizipants; |
| } |
| |
| |
| public Boolean getAppointment() { |
| return appointment; |
| } |
| public void setAppointment(Boolean appointment) { |
| this.appointment = appointment; |
| } |
| |
| public Boolean getIsDemoRoom() { |
| return isDemoRoom; |
| } |
| public void setIsDemoRoom(Boolean isDemoRoom) { |
| this.isDemoRoom = isDemoRoom; |
| } |
| |
| public Integer getDemoTime() { |
| return demoTime; |
| } |
| public void setDemoTime(Integer demoTime) { |
| this.demoTime = demoTime; |
| } |
| |
| public Boolean getIsModeratedRoom() { |
| return isModeratedRoom; |
| } |
| public void setIsModeratedRoom(Boolean isModeratedRoom) { |
| this.isModeratedRoom = isModeratedRoom; |
| } |
| |
| public Long getExternalRoomId() { |
| return externalRoomId; |
| } |
| public void setExternalRoomId(Long externalRoomId) { |
| this.externalRoomId = externalRoomId; |
| } |
| |
| public String getExternalRoomType() { |
| return externalRoomType; |
| } |
| public void setExternalRoomType(String externalRoomType) { |
| this.externalRoomType = externalRoomType; |
| } |
| |
| public Boolean getAllowUserQuestions() { |
| return allowUserQuestions; |
| } |
| public void setAllowUserQuestions(Boolean allowUserQuestions) { |
| this.allowUserQuestions = allowUserQuestions; |
| } |
| |
| public String getSipNumber() { |
| return sipNumber; |
| } |
| public void setSipNumber(String sipNumber) { |
| this.sipNumber = sipNumber; |
| } |
| |
| public String getConferencePin() { |
| return conferencePin; |
| } |
| public void setConferencePin(String conferencePin) { |
| this.conferencePin = conferencePin; |
| } |
| |
| public Boolean getIsAudioOnly() { |
| return isAudioOnly; |
| } |
| public void setIsAudioOnly(Boolean isAudioOnly) { |
| this.isAudioOnly = isAudioOnly; |
| } |
| |
| public Boolean getIsClosed() { |
| return isClosed; |
| } |
| public void setIsClosed(Boolean isClosed) { |
| this.isClosed = isClosed; |
| } |
| |
| public String getRedirectURL() { |
| return redirectURL; |
| } |
| public void setRedirectURL(String redirectURL) { |
| this.redirectURL = redirectURL; |
| } |
| |
| public Long getOwnerId() { |
| return ownerId; |
| } |
| public void setOwnerId(Long ownerId) { |
| this.ownerId = ownerId; |
| } |
| |
| public Boolean getWaitForRecording() { |
| return waitForRecording; |
| } |
| public void setWaitForRecording(Boolean waitForRecording) { |
| this.waitForRecording = waitForRecording; |
| } |
| |
| public Boolean getAllowRecording() { |
| return allowRecording; |
| } |
| public void setAllowRecording(Boolean allowRecording) { |
| this.allowRecording = allowRecording; |
| } |
| |
| public Boolean getHideTopBar() { |
| return hideTopBar; |
| } |
| public void setHideTopBar(Boolean hideTopBar) { |
| this.hideTopBar = hideTopBar; |
| } |
| |
| public Boolean getHideChat() { |
| return hideChat; |
| } |
| public void setHideChat(Boolean hideChat) { |
| this.hideChat = hideChat; |
| } |
| |
| public Boolean getHideActivitiesAndActions() { |
| return hideActivitiesAndActions; |
| } |
| public void setHideActivitiesAndActions(Boolean hideActivitiesAndActions) { |
| this.hideActivitiesAndActions = hideActivitiesAndActions; |
| } |
| |
| public Boolean getHideFilesExplorer() { |
| return hideFilesExplorer; |
| } |
| public void setHideFilesExplorer(Boolean hideFilesExplorer) { |
| this.hideFilesExplorer = hideFilesExplorer; |
| } |
| |
| public Boolean getHideActionsMenu() { |
| return hideActionsMenu; |
| } |
| public void setHideActionsMenu(Boolean hideActionsMenu) { |
| this.hideActionsMenu = hideActionsMenu; |
| } |
| |
| public Boolean getHideScreenSharing() { |
| return hideScreenSharing; |
| } |
| public void setHideScreenSharing(Boolean hideScreenSharing) { |
| this.hideScreenSharing = hideScreenSharing; |
| } |
| |
| public Boolean getHideWhiteboard() { |
| return hideWhiteboard; |
| } |
| public void setHideWhiteboard(Boolean hideWhiteboard) { |
| this.hideWhiteboard = hideWhiteboard; |
| } |
| |
| public Boolean getShowMicrophoneStatus() { |
| return showMicrophoneStatus; |
| } |
| public void setShowMicrophoneStatus(Boolean showMicrophoneStatus) { |
| this.showMicrophoneStatus = showMicrophoneStatus; |
| } |
| |
| } |