use of org.apache.openmeetings.axis.services.RoomServicePortType in project OpenOLAT by OpenOLAT.
the class OpenMeetingsManagerImpl method updateRoom.
@Override
public OpenMeetingsRoom updateRoom(BusinessGroup group, OLATResourceable ores, String subIdentifier, OpenMeetingsRoom room) {
try {
String sid = adminLogin();
RoomServicePortType roomWs = getRoomWebService();
long returned = roomWs.updateRoomWithModerationQuestionsAudioTypeAndHideOptions(sid, room.getRoomId(), room.getName(), room.getType(), room.getComment(), room.getSize(), false, false, false, 0, room.isModerated(), false, room.isAudioOnly(), false, false, false, false, false, false, false);
if (returned >= 0) {
log.audit("Room updated");
openMeetingsDao.updateReference(group, ores, subIdentifier, room);
return room;
}
return null;
} catch (Exception e) {
log.error("", e);
return null;
}
}
use of org.apache.openmeetings.axis.services.RoomServicePortType in project OpenOLAT by OpenOLAT.
the class OpenMeetingsManagerImpl method getUsersOf.
@Override
public List<OpenMeetingsUser> getUsersOf(OpenMeetingsRoom room) throws OpenMeetingsException {
try {
String adminSID = adminLogin();
RoomServicePortType roomWs = getRoomWebService();
RoomReturn roomClRet = roomWs.getRoomWithClientObjectsById(adminSID, room.getRoomId());
if (roomClRet != null) {
List<RoomUser> userArr = roomClRet.getRoomUser();
return convert(userArr);
}
return Collections.emptyList();
} catch (Exception e) {
log.error("", e);
throw translateException(e, 0);
}
}
use of org.apache.openmeetings.axis.services.RoomServicePortType in project OpenOLAT by OpenOLAT.
the class OpenMeetingsManagerImpl method deleteRecording.
@Override
public boolean deleteRecording(OpenMeetingsRecording recording) {
try {
String adminSID = adminLogin();
RoomServicePortType roomWs = getRoomWebService();
boolean resp = roomWs.deleteFlvRecording(adminSID, recording.getRecordingId());
return resp;
} catch (Exception e) {
log.error("", e);
return false;
}
}
use of org.apache.openmeetings.axis.services.RoomServicePortType in project OpenOLAT by OpenOLAT.
the class OpenMeetingsManagerImpl method getRecordings.
@Override
public List<OpenMeetingsRecording> getRecordings(long roomId) throws OpenMeetingsException {
try {
String adminSID = adminLogin();
RoomServicePortType roomWs = getRoomWebService();
List<FlvRecording> recordings = roomWs.getFlvRecordingByRoomId(adminSID, roomId);
List<OpenMeetingsRecording> recList = new ArrayList<OpenMeetingsRecording>();
if (recordings != null) {
for (FlvRecording recording : recordings) {
if (recording != null) {
OpenMeetingsRecording rec = new OpenMeetingsRecording();
rec.setRoomId(recording.getRoomId());
rec.setRecordingId(recording.getFlvRecordingId());
rec.setFilename(recording.getFileName());
rec.setDownloadName(recording.getFileHash());
rec.setDownloadNameAlt(recording.getAlternateDownload());
rec.setPreviewImage(recording.getPreviewImage());
rec.setWidth(recording.getFlvWidth());
rec.setHeight(recording.getFlvHeight());
recList.add(rec);
}
}
}
return recList;
} catch (Exception e) {
log.error("", e);
throw translateException(e, 0);
}
}
use of org.apache.openmeetings.axis.services.RoomServicePortType 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);
}
}
Aggregations