You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by se...@apache.org on 2012/07/01 17:40:42 UTC
svn commit: r1355937 - in /incubator/openmeetings/trunk/singlewebapp:
WebContent/src/base/hibernate/hibRtmpConnection.lzx
src/org/openmeetings/app/remote/MainService.java
Author: sebawagner
Date: Sun Jul 1 15:40:41 2012
New Revision: 1355937
URL: http://svn.apache.org/viewvc?rev=1355937&view=rev
Log:
OPENMEETINGS-314 Webcam Title of user is username of default OM user
Modified:
incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/hibernate/hibRtmpConnection.lzx
incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/remote/MainService.java
Modified: incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/hibernate/hibRtmpConnection.lzx
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/hibernate/hibRtmpConnection.lzx?rev=1355937&r1=1355936&r2=1355937&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/hibernate/hibRtmpConnection.lzx (original)
+++ incubator/openmeetings/trunk/singlewebapp/WebContent/src/base/hibernate/hibRtmpConnection.lzx Sun Jul 1 15:40:41 2012
@@ -469,12 +469,15 @@
canvas.setAttribute('firstName',value.firstname);
canvas.setAttribute('lastName',value.lastname);
+
+ hib.userobject.firstname = value.firstname;
+ hib.userobject.lastname = value.lastname;
+
canvas.setAttribute('mail','');
canvas.setAttribute('lastLogin','');
canvas.setAttribute('official_code','');
canvas.setAttribute('picture_uri',value.picture_uri);
canvas.setAttribute('language','');
- //canvas.setAttribute('currentuser',value.login);
if ($debug) Debug.write("canvas.landingZone :: ",canvas.landingZone);
Modified: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/remote/MainService.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/remote/MainService.java?rev=1355937&r1=1355936&r2=1355937&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/remote/MainService.java (original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/app/remote/MainService.java Sun Jul 1 15:40:41 2012
@@ -666,17 +666,26 @@ public class MainService implements IPen
}
/**
- * this function logs a user into if he enteres the app directly into a room
+ * this function returns a user object with organization objects set only
+ * the organization is not available for users that are using a HASH mechanism
+ * cause the SOAP/REST API does not guarantee that the user connected to the HASH
+ * has a valid user object set
*
* @param SID
*/
public Users markSessionAsLogedIn(String SID) {
try {
sessionManagement.updateUserWithoutSession(SID, -1L);
- Configuration conf = cfgManagement.getConfKey(3L,
- "default.rpc.userid");
- return userManagement.getUserById(Long.parseLong(conf
- .getConf_value()));
+
+ Long defaultRpcUserid = cfgManagement.getConfValue(
+ "default.rpc.userid", Long.class, "-1");
+ Users defaultRpcUser = userManagement.getUserById(defaultRpcUserid);
+
+ Users user = new Users();
+ user.setOrganisation_users(defaultRpcUser.getOrganisation_users());
+
+ return user;
+
} catch (Exception err) {
log.error("[markSessionAsLogedIn]", err);
}