- try to display audit window

This commit is contained in:
Richard Alam 2018-04-09 14:03:21 -07:00
parent b85a361f3e
commit 25f4566c6a
14 changed files with 41 additions and 29 deletions

View File

@ -189,7 +189,6 @@ package org.bigbluebutton.main.model.users
} }
public function userInactivityAuditResponse():void { public function userInactivityAuditResponse():void {
trace("******************** SERVICE SENDING USER INACTIVITY AUDIT RESPONSE ***********************");
sender.userInactivityAuditResponse(); sender.userInactivityAuditResponse();
} }

View File

@ -50,7 +50,7 @@ package org.bigbluebutton.air.common {
public static const APPLICATION_SETTINGS:String = "ApplicationSettings"; public static const APPLICATION_SETTINGS:String = "ApplicationSettings";
public static const INACTIVITY_VIEW:String = "InactivityView"; public static const INACTIVITY_VIEW:String = "UserInactivityView";
/** /**
* Especials * Especials

View File

@ -24,6 +24,8 @@ package org.bigbluebutton.air.main {
import org.bigbluebutton.air.main.views.PagesNavigatorViewMediator; import org.bigbluebutton.air.main.views.PagesNavigatorViewMediator;
import org.bigbluebutton.air.main.views.TopToolbarBase; import org.bigbluebutton.air.main.views.TopToolbarBase;
import org.bigbluebutton.air.main.views.TopToolbarMediator; import org.bigbluebutton.air.main.views.TopToolbarMediator;
import org.bigbluebutton.air.main.views.UserInactivityView;
import org.bigbluebutton.air.main.views.UserInactivityViewMediator;
import robotlegs.bender.extensions.matching.TypeMatcher; import robotlegs.bender.extensions.matching.TypeMatcher;
import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap; import robotlegs.bender.extensions.mediatorMap.api.IMediatorMap;
@ -62,6 +64,7 @@ package org.bigbluebutton.air.main {
mediatorMap.map(ExitView).toMediator(ExitViewMediator); mediatorMap.map(ExitView).toMediator(ExitViewMediator);
mediatorMap.map(DisconnectView).toMediator(DisconnectViewMediator); mediatorMap.map(DisconnectView).toMediator(DisconnectViewMediator);
mediatorMap.map(MainView).toMediator(MainViewMediator); mediatorMap.map(MainView).toMediator(MainViewMediator);
mediatorMap.map(UserInactivityView).toMediator(UserInactivityViewMediator);
} }
/** /**

View File

@ -1,5 +1,6 @@
package org.bigbluebutton.air.main.commands package org.bigbluebutton.air.main.commands
{ {
import org.bigbluebutton.air.common.PageEnum;
import org.bigbluebutton.air.main.models.IUISession; import org.bigbluebutton.air.main.models.IUISession;
import robotlegs.bender.bundles.mvcs.Command; import robotlegs.bender.bundles.mvcs.Command;
@ -9,13 +10,12 @@ package org.bigbluebutton.air.main.commands
[Inject] [Inject]
public var uiSession:IUISession public var uiSession:IUISession
public function UserInactivityTimerCommand() [Inject]
{ public var responseDuration: Number
super();
}
override public function execute():void { override public function execute():void {
trace("RECEIVED INACTIVITY TIMER MESSAGE"); trace("RECEIVED INACTIVITY TIMER MESSAGE responseDuration=" + responseDuration);
uiSession.pushPage(PageEnum.INACTIVITY_VIEW);
} }
} }
} }

View File

@ -16,7 +16,7 @@ package org.bigbluebutton.air.main.commands
} }
override public function execute():void { override public function execute():void {
userService.activityResponse(); userService.userInactivityAuditResponse();
} }
} }
} }

View File

@ -6,7 +6,7 @@ package org.bigbluebutton.air.main.commands
{ {
public function UserInactivityTimerSignal() public function UserInactivityTimerSignal()
{ {
super(); super(Number);
} }
} }
} }

View File

@ -40,11 +40,12 @@ package org.bigbluebutton.air.main.views {
// If we are in the Flash Builder debugger the InvokeEvent will never be fired // If we are in the Flash Builder debugger the InvokeEvent will never be fired
if (Capabilities.isDebugger) { if (Capabilities.isDebugger) {
//var url:String = "bigbluebutton://test-install.blindsidenetworks.com/bigbluebutton/api/join?fullName=AIR&meetingID=Demo+Meeting&password=mp&redirect=false&checksum=3fdf56e9915c1031c3ea012b4ec8823cedd7c272"; //var url:String = "bigbluebutton://test-install.blindsidenetworks.com/bigbluebutton/api/join?fullName=AIR&meetingID=Demo+Meeting&password=mp&redirect=false&checksum=3fdf56e9915c1031c3ea012b4ec8823cedd7c272";
var url:String = "bigbluebutton://test-install.blindsidenetworks.com/bigbluebutton/api/join?fullName=User+2021828&meetingID=Demo+Meeting&password=ap&redirect=true&checksum=8751963df96437c7d435eac8124e4fb3ec147115"; //var url:String = "bigbluebutton://test-install.blindsidenetworks.com/bigbluebutton/api/join?fullName=User+2021828&meetingID=Demo+Meeting&password=ap&redirect=true&checksum=8751963df96437c7d435eac8124e4fb3ec147115";
var url:String = "bigbluebuttons://ritz-ss.blindside-dev.com/bigbluebutton/api/join?bannerColor=%23FF0000&bannerText=TEST+MEETING&fullName=Mobile&meetingID=mobile-test&password=ap&redirect=false&checksum=a5756401838bf2b8920b062f56f75836456ba18d";
joinRoom(url); joinRoom(url);
} }
} }
private function onInvokeEvent(invocation:InvokeEvent):void { private function onInvokeEvent(invocation:InvokeEvent):void {
if (invocation.arguments.length > 0 && !Capabilities.isDebugger) { if (invocation.arguments.length > 0 && !Capabilities.isDebugger) {
var url:String = invocation.arguments[0].toString(); var url:String = invocation.arguments[0].toString();
@ -60,7 +61,6 @@ package org.bigbluebutton.air.main.views {
FlexGlobals.topLevelApplication.mainshell.visible = false; FlexGlobals.topLevelApplication.mainshell.visible = false;
uiSession.popPage(); uiSession.popPage();
uiSession.pushPage(PageEnum.MAIN); uiSession.pushPage(PageEnum.MAIN);
joinRoom(url); joinRoom(url);
} }
} else { } else {

View File

@ -82,6 +82,7 @@ package org.bigbluebutton.air.main.views {
} else if (pageRemoved) { } else if (pageRemoved) {
view.popView(transition); view.popView(transition);
} else if (pageName != null && pageName != "") { } else if (pageName != null && pageName != "") {
trace("SWITCHING PAGE to " + pageName);
view.pushView(PageEnum.getClassfromName(pageName), null, null, transition); view.pushView(PageEnum.getClassfromName(pageName), null, null, transition);
} }
} }

View File

@ -20,7 +20,7 @@ package org.bigbluebutton.air.main.views
var messageText:Label = new Label(); var messageText:Label = new Label();
messageText.percentWidth = 90; messageText.percentWidth = 90;
messageText.text = "Inacitivty Timer"; messageText.text = "Inactivity Timer";
messageText.setStyle("textAlign", "center"); messageText.setStyle("textAlign", "center");
messageText.styleName = "disconnectMessage"; messageText.styleName = "disconnectMessage";
addElement(messageText); addElement(messageText);
@ -33,7 +33,7 @@ package org.bigbluebutton.air.main.views
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
super.updateDisplayList(unscaledWidth, unscaledHeight); super.updateDisplayList(unscaledWidth, unscaledHeight);
trace("*************** UserInactivityView updateDisplayList w=" + unscaledWidth + " h=" + unscaledHeight + "*************");
this.layout["gap"] = getStyle("gap"); this.layout["gap"] = getStyle("gap");
this.layout["padding"] = getStyle("padding"); this.layout["padding"] = getStyle("padding");
} }

View File

@ -4,8 +4,17 @@ package org.bigbluebutton.air.main.views
public class UserInactivityViewMediator extends Mediator public class UserInactivityViewMediator extends Mediator
{ {
public function UserInactivityViewMediator() [Inject]
{ public var view:UserInactivityView;
override public function initialize():void {
trace("************ UserInactivityView:: INIT **************");
view.okButton.visible = true;
}
override public function destroy():void {
trace("************ UserInactivityView:: destroy **************");
} }
} }
} }

View File

@ -23,6 +23,6 @@ package org.bigbluebutton.air.user.services {
function validateToken():void; function validateToken():void;
function joinMeeting():void; function joinMeeting():void;
function changeRole(userId:String, role:String):void; function changeRole(userId:String, role:String):void;
function activityResponse():void; function userInactivityAuditResponse():void;
} }
} }

View File

@ -97,20 +97,19 @@ package org.bigbluebutton.air.user.services {
case "UserRoleChangedEvtMsg": case "UserRoleChangedEvtMsg":
handleUserRoleChangedEvtMsg(message); handleUserRoleChangedEvtMsg(message);
break; break;
case "MeetingInactivityWarningEvtMsg": case "UserInactivityAuditMsg":
handleInactivityWarning(message); handleUserInactivityAuditMsg(message);
break; break;
default: default:
break; break;
} }
} }
private function handleInactivityWarning(m:Object):void { private function handleUserInactivityAuditMsg(m:Object):void {
var msg:Object = JSON.parse(m.msg); trace("handleInactivityWarning: " + ObjectUtil.toString(m));
trace("handleInactivityWarning: " + ObjectUtil.toString(msg)); meetingInactivityTimerSignal.dispatch(m.body.responseDuration as Number);
meetingInactivityTimerSignal.dispatch();
} }
private function handleMeetingMuted(m:Object):void { private function handleMeetingMuted(m:Object):void {
var msg:Object = JSON.parse(m.msg); var msg:Object = JSON.parse(m.msg);
trace("handleMeetingMuted: " + ObjectUtil.toString(msg)); trace("handleMeetingMuted: " + ObjectUtil.toString(msg));

View File

@ -232,12 +232,13 @@ package org.bigbluebutton.air.user.services {
userSession.mainConnection.sendMessage2x(defaultSuccessResponse, defaultFailureResponse, message); userSession.mainConnection.sendMessage2x(defaultSuccessResponse, defaultFailureResponse, message);
} }
public function activityResponse():void { public function userInactivityAuditResponse():void {
var message:Object = { var message:Object = {
header: {name: "MeetingActivityResponseCmdMsg", meetingId: conferenceParameters.meetingID, header: {name: "UserInactivityAuditResponseMsg", meetingId: conferenceParameters.meetingID,
userId: conferenceParameters.internalUserID}, userId: conferenceParameters.internalUserID},
body: {respondedBy: conferenceParameters.internalUserID} body: {userId: conferenceParameters.internalUserID}
}; };
userSession.mainConnection.sendMessage2x(defaultSuccessResponse, defaultFailureResponse, message); userSession.mainConnection.sendMessage2x(defaultSuccessResponse, defaultFailureResponse, message);
} }
} }

View File

@ -143,8 +143,8 @@ package org.bigbluebutton.air.user.services {
usersMessageSender.changeRole(userId, role); usersMessageSender.changeRole(userId, role);
} }
public function activityResponse():void { public function userInactivityAuditResponse():void {
usersMessageSender.activityResponse(); usersMessageSender.userInactivityAuditResponse();
} }
} }
} }