Examples of RemoteSessionObject


Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());
        log.debug("showNickNameDialogAsInt" + showNickNameDialogAsInt);

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    try {
      Long users_id = sessiondataDao.checkSession(SID);
      Long user_level = userManagement.getUserLevelByID(users_id);
      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, "", "", "", externalUserId,
            externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    SOAPLogin soapLogin = soapDao.get(secureHash);
    if (soapLogin != null && !soapLogin.getUsed()) { //add code for  || (soapLogin.getAllowSameURLMultipleTimes())
      SessiondataDao sessionDao = getBean(SessiondataDao.class);
      Sessiondata sd = sessionDao.getSessionByHash(soapLogin.getSessionHash());
      if (sd != null && sd.getSessionXml() != null) {
        RemoteSessionObject remoteUser = RemoteSessionObject.fromXml(sd.getSessionXml());
        if (remoteUser != null && !Strings.isEmpty(remoteUser.getExternalUserId())) {
          AdminUserDao userDao = getBean(AdminUserDao.class);
          User user = userDao.getExternalUser(remoteUser.getExternalUserId(), remoteUser.getExternalUserType());
          if (user == null) {
            user = userDao.getNewUserInstance(null);
            user.setFirstname(remoteUser.getFirstname());
            user.setLastname(remoteUser.getLastname());
            user.setLogin(remoteUser.getUsername()); //FIXME check if login UNIQUE
            user.setExternalUserId(remoteUser.getExternalUserId());
            user.setExternalUserType(remoteUser.getExternalUserType());
            user.getAdresses().setEmail(remoteUser.getEmail());
            user.setPictureuri(remoteUser.getPictureUrl());
          } else {
            user.setFirstname(remoteUser.getFirstname());
            user.setLastname(remoteUser.getLastname());
            user.setPictureuri(remoteUser.getPictureUrl());
          }
          user = userDao.update(user, null);

          soapLogin.setUsed(true);
          soapLogin.setUseDate(new Date());
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

      if (AuthLevelUtil.checkWebServiceLevel(user_level)) {
        Sessiondata sd = sessiondataDao.getSessionByHash(SID);
        if (sd == null || sd.getSessionXml() == null) {
          return new Long(-37);
        } else {
          RemoteSessionObject userObject = RemoteSessionObject.fromXml(sd.getSessionXml());

          log.debug(userObject.toString());

          IConnection current = Red5.getConnectionLocal();
          String streamId = current.getClient().getId();
          Client currentClient = sessionManager.getClientByStreamId(streamId, null);

          // Check if this User is simulated in the OpenMeetings
          // Database

          if (!Strings.isEmpty(userObject.getExternalUserId())) {
            // If so we need to check that we create this user in
            // OpenMeetings and update its record

            User user = userManager.getUserByExternalIdAndType(
                userObject.getExternalUserId(),
                userObject.getExternalUserType());

            if (user == null) {
              String iCalTz = configurationDao.getConfValue("default.timezone", String.class, "");

              long userId = userManager
                  .addUserWithExternalKey(1, 0, 0,
                      userObject.getFirstname(),
                      userObject.getUsername(),
                      userObject.getLastname(), 1L,
                      true, "", // password is empty by default
                      null, null, "",
                      userObject.getExternalUserId(),
                      userObject.getExternalUserType(),
                      true, userObject.getEmail(),
                      iCalTz,
                      userObject.getPictureUrl());

              currentClient.setUser_id(userId);
              SessionVariablesUtil.setUserId(current.getClient(), userId);
            } else {
              user.setPictureuri(userObject.getPictureUrl());

              userManager.updateUser(user);

              currentClient.setUser_id(user.getUser_id());
              SessionVariablesUtil.setUserId(current.getClient(), user.getUser_id());
            }
          }

          log.debug("userObject.getExternalUserId() -2- " + currentClient.getUser_id());

          currentClient.setUserObject(userObject.getUsername(), userObject.getFirstname(), userObject.getLastname());
          currentClient.setPicture_uri(userObject.getPictureUrl());
          currentClient.setMail(userObject.getEmail());

          log.debug("UPDATE USER BY STREAMID " + streamId);

          if (currentClient.getUser_id() != null) {
            sessiondataDao.updateUser(SID, currentClient.getUser_id());
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

      throws AxisFault {
    try {
      Long users_id = sessiondataDao.checkSession(SID);
      if (AuthLevelUtil.hasWebServiceLevel(userDao.getRights(users_id))) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here

Examples of org.apache.openmeetings.db.entity.server.RemoteSessionObject

    log.debug("UserService.setUserObjectAndGenerateRoomHashByURL");
    try {
      Long users_id = sessiondataDao.checkSession(SID);
      if (AuthLevelUtil.hasWebServiceLevel(userDao.getRights(users_id))) {

        RemoteSessionObject remoteSessionObject = new RemoteSessionObject(
            username, firstname, lastname, profilePictureUrl,
            email, externalUserId, externalUserType);

        log.debug(remoteSessionObject.toString());

        String xmlString = remoteSessionObject.toXml();

        log.debug("xmlString " + xmlString);

        sessiondataDao.updateUserRemoteSession(SID, xmlString);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.