@@ -68,11 +68,11 @@ public class HashPage extends BaseInitedPage implements IUpdatable {
68
68
static final String HASH = "secure" ;
69
69
static final String LANG = "language" ;
70
70
private final WebMarkupContainer recContainer = new WebMarkupContainer (PANEL_RECORDING );
71
- private final VideoInfo vi = new VideoInfo ("info" );
72
- private final VideoPlayer vp = new VideoPlayer ("player" );
71
+ private final VideoInfo videoInfo = new VideoInfo ("info" );
72
+ private final VideoPlayer videoPlayer = new VideoPlayer ("player" );
73
73
private boolean error = true ;
74
- private MainPanel mp = null ;
75
- private RoomPanel rp = null ;
74
+ private MainPanel mainPanel = null ;
75
+ private RoomPanel roomPanel = null ;
76
76
private final PageParameters p ;
77
77
78
78
@ SpringBean
@@ -91,9 +91,9 @@ private void createRoom(Long roomId) {
91
91
Room room = roomDao .get (roomId );
92
92
if (room != null && !room .isDeleted ()) {
93
93
error = false ;
94
- rp = new RoomPanel (CHILD_ID , room );
95
- mp = new MainPanel (PANEL_MAIN , rp );
96
- replace (mp );
94
+ roomPanel = new RoomPanel (CHILD_ID , room );
95
+ mainPanel = new MainPanel (PANEL_MAIN , roomPanel );
96
+ replace (mainPanel );
97
97
}
98
98
}
99
99
@@ -128,21 +128,21 @@ protected void onInitialize() {
128
128
} else {
129
129
Recording rec = i .getRecording ();
130
130
if (rec != null ) {
131
- vi .setVisible (!i .isPasswordProtected ());
132
- vp .setVisible (!i .isPasswordProtected ());
131
+ videoInfo .setVisible (!i .isPasswordProtected ());
132
+ videoPlayer .setVisible (!i .isPasswordProtected ());
133
133
if (!i .isPasswordProtected ()) {
134
- vi .update (null , rec );
135
- vp .update (null , rec );
134
+ videoInfo .update (null , rec );
135
+ videoPlayer .update (null , rec );
136
136
}
137
137
recContainer .setVisible (true );
138
138
error = false ;
139
139
}
140
140
Room r = i .getRoom ();
141
141
if (r != null && !r .isDeleted ()) {
142
142
createRoom (r .getId ());
143
- if (i .isPasswordProtected () && rp != null ) {
144
- mp .getChat ().setVisible (false );
145
- rp .setOutputMarkupPlaceholderTag (true ).setVisible (false );
143
+ if (i .isPasswordProtected () && roomPanel != null ) {
144
+ mainPanel .getChat ().setVisible (false );
145
+ roomPanel .setOutputMarkupPlaceholderTag (true ).setVisible (false );
146
146
}
147
147
}
148
148
}
@@ -153,8 +153,8 @@ protected void onInitialize() {
153
153
} else if (recId != null ) {
154
154
recContainer .setVisible (true );
155
155
Recording rec = recDao .get (recId );
156
- vi .update (null , rec );
157
- vp .update (null , rec );
156
+ videoInfo .update (null , rec );
157
+ videoPlayer .update (null , rec );
158
158
error = false ;
159
159
} else {
160
160
createRoom (roomId );
@@ -197,8 +197,8 @@ protected IWsClient getWsClient() {
197
197
error = false ;
198
198
}
199
199
}
200
- add (recContainer .add (vi .setOutputMarkupPlaceholderTag (true ),
201
- vp .setOutputMarkupPlaceholderTag (true )), new InvitationPasswordDialog ("i-pass" , this ));
200
+ add (recContainer .add (videoInfo .setOutputMarkupPlaceholderTag (true ),
201
+ videoPlayer .setOutputMarkupPlaceholderTag (true )), new InvitationPasswordDialog ("i-pass" , this ));
202
202
remove (urlParametersReceivingBehavior );
203
203
add (new IconTextModal ("access-denied" )
204
204
.withLabel (errorMsg )
@@ -217,11 +217,11 @@ protected void onParameterArrival(IRequestParameters requestParameters, AjaxRequ
217
217
@ Override
218
218
public void update (AjaxRequestTarget target ) {
219
219
Invitation i = WebSession .get ().getInvitation ();
220
- if (i .getRoom () != null && rp != null ) {
221
- rp .show (target );
220
+ if (i .getRoom () != null && roomPanel != null ) {
221
+ roomPanel .show (target );
222
222
} else if (i .getRecording () != null ) {
223
- target .add (vi .update (target , i .getRecording ()).setVisible (true )
224
- , vp .update (target , i .getRecording ()).setVisible (true ));
223
+ target .add (videoInfo .update (target , i .getRecording ()).setVisible (true )
224
+ , videoPlayer .update (target , i .getRecording ()).setVisible (true ));
225
225
}
226
226
}
227
227
}
0 commit comments