Merge branch 'upgrade-to-scala-2.11' of https://github.com/ritzalam/bigbluebutton into upgrade-to-scala-2.11

This commit is contained in:
Anton Georgiev 2015-05-19 11:13:47 -04:00
commit ed854136c4
2 changed files with 554 additions and 0 deletions

View File

@ -0,0 +1,48 @@
package org.bigbluebutton.conference.service.messaging.redis;
import org.bigbluebutton.conference.meeting.messaging.red5.ConnectionInvokerService;
import org.bigbluebutton.conference.service.messaging.MessagingConstants;
public class RedisPubSubMessageHandler implements MessageHandler {
private ConnectionInvokerService service;
public void setConnectionInvokerService(ConnectionInvokerService s) {
this.service = s;
}
@Override
public void handleMessage(String pattern, String channel, String message) {
if (channel.equalsIgnoreCase(MessagingConstants.FROM_CHAT_CHANNEL)) {
handleChatMessage(message);
} else if (channel.equalsIgnoreCase(MessagingConstants.FROM_PRESENTATION_CHANNEL)) {
handlePresentationMessage(message);
} else if (channel.equalsIgnoreCase(MessagingConstants.FROM_MEETING_CHANNEL)) {
handleMeetingMessage(message);
} else if (channel.equalsIgnoreCase(MessagingConstants.FROM_USERS_CHANNEL)) {
handleUsersMessage(message);
} else if (channel.equalsIgnoreCase(MessagingConstants.FROM_WHITEBOARD_CHANNEL)) {
handleWhiteboarMessage(message);
}
}
private void handleChatMessage(String message) {
}
private void handlePresentationMessage(String message) {
}
private void handleMeetingMessage(String message) {
}
private void handleUsersMessage(String message) {
}
private void handleWhiteboarMessage(String message) {
}
}

View File

@ -0,0 +1,506 @@
package org.bigbluebutton.core.api;
import java.util.Map;
import org.bigbluebutton.conference.service.messaging.redis.MessageSender;
public class Red5BBBInGw implements IBigBlueButtonInGW {
private MessageSender sender;
public void setMessageSender(MessageSender sender) {
this.sender = sender;
}
@Override
public void isAliveAudit(String aliveID) {
// TODO Auto-generated method stub
}
@Override
public void statusMeetingAudit(String meetingID) {
// TODO Auto-generated method stub
}
@Override
public void endMeeting(String meetingID) {
// TODO Auto-generated method stub
}
@Override
public void endAllMeetings() {
// TODO Auto-generated method stub
}
@Override
public void createMeeting2(String meetingID, String externalMeetingID,
String meetingName, boolean recorded, String voiceBridge,
long duration, boolean autoStartRecording,
boolean allowStartStopRecording, String moderatorPass,
String viewerPass, long createTime, String createDate) {
// TODO Auto-generated method stub
}
@Override
public void destroyMeeting(String meetingID) {
// TODO Auto-generated method stub
}
@Override
public void getAllMeetings(String meetingID) {
// TODO Auto-generated method stub
}
@Override
public void lockSettings(String meetingID, Boolean locked,
Map<String, Boolean> lockSettigs) {
// TODO Auto-generated method stub
}
@Override
public void initLockSettings(String meetingID, Map<String, Boolean> settings) {
// TODO Auto-generated method stub
}
@Override
public void sendLockSettings(String meetingID, String userId,
Map<String, Boolean> settings) {
// TODO Auto-generated method stub
}
@Override
public void getLockSettings(String meetingId, String userId) {
// TODO Auto-generated method stub
}
@Override
public void lockUser(String meetingId, String requesterID, boolean lock,
String internalUserID) {
// TODO Auto-generated method stub
}
@Override
public void validateAuthToken(String meetingId, String userId,
String token, String correlationId, String sessionId) {
// TODO Auto-generated method stub
}
@Override
public void registerUser(String roomName, String userid, String username,
String role, String externUserID, String authToken) {
// TODO Auto-generated method stub
}
@Override
public void userRaiseHand(String meetingId, String userId) {
// TODO Auto-generated method stub
}
@Override
public void lowerHand(String meetingId, String userId, String loweredBy) {
// TODO Auto-generated method stub
}
@Override
public void shareWebcam(String meetingId, String userId, String stream) {
// TODO Auto-generated method stub
}
@Override
public void unshareWebcam(String meetingId, String userId, String stream) {
// TODO Auto-generated method stub
}
@Override
public void setUserStatus(String meetingID, String userID, String status,
Object value) {
// TODO Auto-generated method stub
}
@Override
public void getUsers(String meetingID, String requesterID) {
// TODO Auto-generated method stub
}
@Override
public void userLeft(String meetingID, String userID, String sessionId) {
// TODO Auto-generated method stub
}
@Override
public void userJoin(String meetingID, String userID, String authToken) {
// TODO Auto-generated method stub
}
@Override
public void getCurrentPresenter(String meetingID, String requesterID) {
// TODO Auto-generated method stub
}
@Override
public void assignPresenter(String meetingID, String newPresenterID,
String newPresenterName, String assignedBy) {
// TODO Auto-generated method stub
}
@Override
public void setRecordingStatus(String meetingId, String userId,
Boolean recording) {
// TODO Auto-generated method stub
}
@Override
public void getRecordingStatus(String meetingId, String userId) {
// TODO Auto-generated method stub
}
@Override
public void userConnectedToGlobalAudio(String voiceConf, String userid,
String name) {
// TODO Auto-generated method stub
}
@Override
public void userDisconnectedFromGlobalAudio(String voiceConf,
String userid, String name) {
// TODO Auto-generated method stub
}
@Override
public void initAudioSettings(String meetingID, String requesterID,
Boolean muted) {
// TODO Auto-generated method stub
}
@Override
public void muteAllExceptPresenter(String meetingID, String requesterID,
Boolean mute) {
// TODO Auto-generated method stub
}
@Override
public void muteAllUsers(String meetingID, String requesterID, Boolean mute) {
// TODO Auto-generated method stub
}
@Override
public void isMeetingMuted(String meetingID, String requesterID) {
// TODO Auto-generated method stub
}
@Override
public void muteUser(String meetingID, String requesterID, String userID,
Boolean mute) {
// TODO Auto-generated method stub
}
@Override
public void lockMuteUser(String meetingID, String requesterID,
String userID, Boolean lock) {
// TODO Auto-generated method stub
}
@Override
public void ejectUserFromVoice(String meetingID, String userId,
String ejectedBy) {
// TODO Auto-generated method stub
}
@Override
public void ejectUserFromMeeting(String meetingId, String userId,
String ejectedBy) {
// TODO Auto-generated method stub
}
@Override
public void voiceUserJoined(String meetingId, String userId,
String webUserId, String conference, String callerIdNum,
String callerIdName, Boolean muted, Boolean speaking) {
// TODO Auto-generated method stub
}
@Override
public void voiceUserLeft(String meetingId, String userId) {
// TODO Auto-generated method stub
}
@Override
public void voiceUserLocked(String meetingId, String userId, Boolean locked) {
// TODO Auto-generated method stub
}
@Override
public void voiceUserMuted(String meetingId, String userId, Boolean muted) {
// TODO Auto-generated method stub
}
@Override
public void voiceUserTalking(String meetingId, String userId,
Boolean talking) {
// TODO Auto-generated method stub
}
@Override
public void voiceRecording(String meetingId, String recordingFile,
String timestamp, Boolean recording) {
// TODO Auto-generated method stub
}
@Override
public void clear(String meetingID) {
// TODO Auto-generated method stub
}
@Override
public void removePresentation(String meetingID, String presentationID) {
// TODO Auto-generated method stub
}
@Override
public void getPresentationInfo(String meetingID, String requesterID,
String replyTo) {
// TODO Auto-generated method stub
}
@Override
public void sendCursorUpdate(String meetingID, double xPercent,
double yPercent) {
// TODO Auto-generated method stub
}
@Override
public void resizeAndMoveSlide(String meetingID, double xOffset,
double yOffset, double widthRatio, double heightRatio) {
// TODO Auto-generated method stub
}
@Override
public void gotoSlide(String meetingID, String page) {
// TODO Auto-generated method stub
}
@Override
public void sharePresentation(String meetingID, String presentationID,
boolean share) {
// TODO Auto-generated method stub
}
@Override
public void getSlideInfo(String meetingID, String requesterID,
String replyTo) {
// TODO Auto-generated method stub
}
@Override
public void sendConversionUpdate(String messageKey, String meetingId,
String code, String presId, String presName) {
// TODO Auto-generated method stub
}
@Override
public void sendPageCountError(String messageKey, String meetingId,
String code, String presId, int numberOfPages, int maxNumberPages,
String presName) {
// TODO Auto-generated method stub
}
@Override
public void sendSlideGenerated(String messageKey, String meetingId,
String code, String presId, int numberOfPages, int pagesCompleted,
String presName) {
// TODO Auto-generated method stub
}
@Override
public void sendConversionCompleted(String messageKey, String meetingId,
String code, String presId, int numPages, String presName,
String presBaseUrl) {
// TODO Auto-generated method stub
}
@Override
public void getPolls(String meetingID, String requesterID) {
// TODO Auto-generated method stub
}
@Override
public void createPoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void updatePoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void startPoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void stopPoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void removePoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void respondPoll(String meetingID, String requesterID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void preCreatedPoll(String meetingID, String msg) {
// TODO Auto-generated method stub
}
@Override
public void getCurrentLayout(String meetingID, String requesterID) {
// TODO Auto-generated method stub
}
@Override
public void broadcastLayout(String meetingID, String requesterID,
String layout) {
// TODO Auto-generated method stub
}
@Override
public void getChatHistory(String meetingID, String requesterID,
String replyTo) {
// TODO Auto-generated method stub
}
@Override
public void sendPublicMessage(String meetingID, String requesterID,
Map<String, String> message) {
// TODO Auto-generated method stub
}
@Override
public void sendPrivateMessage(String meetingID, String requesterID,
Map<String, String> message) {
// TODO Auto-generated method stub
}
@Override
public void sendWhiteboardAnnotation(String meetingID, String requesterID,
Map<String, Object> annotation) {
// TODO Auto-generated method stub
}
@Override
public void requestWhiteboardAnnotationHistory(String meetingID,
String requesterID, String whiteboardId, String replyTo) {
// TODO Auto-generated method stub
}
@Override
public void clearWhiteboard(String meetingID, String requesterID,
String whiteboardId) {
// TODO Auto-generated method stub
}
@Override
public void undoWhiteboard(String meetingID, String requesterID,
String whiteboardId) {
// TODO Auto-generated method stub
}
@Override
public void enableWhiteboard(String meetingID, String requesterID,
Boolean enable) {
// TODO Auto-generated method stub
}
@Override
public void isWhiteboardEnabled(String meetingID, String requesterID,
String replyTo) {
// TODO Auto-generated method stub
}
@Override
public void lockLayout(String meetingID, String setById, boolean lock,
boolean viewersOnly, String layout) {
// TODO Auto-generated method stub
}
}