Search in sources :

Example 1 with Room

use of org.apache.openmeetings.persistence.beans.room.xsd.Room in project OpenOLAT by OpenOLAT.

the class OpenMeetingsManagerImpl method getRoomById.

private OpenMeetingsRoom getRoomById(String sid, OpenMeetingsRoom room, long roomId) throws OpenMeetingsException {
    try {
        RoomServicePortType roomWs = getRoomWebService();
        Room omRoom = roomWs.getRoomById(sid, roomId);
        if (omRoom != null) {
            room.setComment(omRoom.getComment());
            if (omRoom.isIsModeratedRoom() != null) {
                room.setModerated(omRoom.isIsModeratedRoom());
            }
            if (omRoom.isIsAudioOnly() != null) {
                room.setAudioOnly(omRoom.isIsAudioOnly());
            }
            room.setName(omRoom.getName());
            if (omRoom.getRoomsId() != null) {
                room.setRoomId(omRoom.getRoomsId());
            } else {
                room.setRoomId(roomId);
            }
            room.setSize(omRoom.getNumberOfPartizipants());
            room.setType(omRoom.getRoomtype().getRoomtypesId());
            room.setClosed(omRoom.isIsClosed());
            return room;
        } else {
            return null;
        }
    } catch (Exception e) {
        log.error("", e);
        throw translateException(e, 0);
    }
}
Also used : RoomServicePortType(org.apache.openmeetings.axis.services.RoomServicePortType) OpenMeetingsRoom(org.olat.modules.openmeetings.model.OpenMeetingsRoom) Room(org.apache.openmeetings.persistence.beans.room.xsd.Room) ConnectException(java.net.ConnectException)

Example 2 with Room

use of org.apache.openmeetings.persistence.beans.room.xsd.Room in project openolat by klemens.

the class OpenMeetingsManagerImpl method getRoomById.

private OpenMeetingsRoom getRoomById(String sid, OpenMeetingsRoom room, long roomId) throws OpenMeetingsException {
    try {
        RoomServicePortType roomWs = getRoomWebService();
        Room omRoom = roomWs.getRoomById(sid, roomId);
        if (omRoom != null) {
            room.setComment(omRoom.getComment());
            if (omRoom.isIsModeratedRoom() != null) {
                room.setModerated(omRoom.isIsModeratedRoom());
            }
            if (omRoom.isIsAudioOnly() != null) {
                room.setAudioOnly(omRoom.isIsAudioOnly());
            }
            room.setName(omRoom.getName());
            if (omRoom.getRoomsId() != null) {
                room.setRoomId(omRoom.getRoomsId());
            } else {
                room.setRoomId(roomId);
            }
            room.setSize(omRoom.getNumberOfPartizipants());
            room.setType(omRoom.getRoomtype().getRoomtypesId());
            room.setClosed(omRoom.isIsClosed());
            return room;
        } else {
            return null;
        }
    } catch (Exception e) {
        log.error("", e);
        throw translateException(e, 0);
    }
}
Also used : RoomServicePortType(org.apache.openmeetings.axis.services.RoomServicePortType) OpenMeetingsRoom(org.olat.modules.openmeetings.model.OpenMeetingsRoom) Room(org.apache.openmeetings.persistence.beans.room.xsd.Room) ConnectException(java.net.ConnectException)

Aggregations

ConnectException (java.net.ConnectException)2 RoomServicePortType (org.apache.openmeetings.axis.services.RoomServicePortType)2 Room (org.apache.openmeetings.persistence.beans.room.xsd.Room)2 OpenMeetingsRoom (org.olat.modules.openmeetings.model.OpenMeetingsRoom)2