Package org.openmeetings.app.persistence.beans.user

Examples of org.openmeetings.app.persistence.beans.user.UserSipData


               
                //UserSIP Data
                if (itemUsers.element("sip_username") != null
                    && itemUsers.element("sip_userpass") != null
                    && itemUsers.element("sip_authid") != null) {
                  UserSipData userSipData = new UserSipData();
                  userSipData.setUsername(unformatString(itemUsers.element("sip_username").getText()));
                  userSipData.setUsername(unformatString(itemUsers.element("sip_userpass").getText()));
                  userSipData.setUsername(unformatString(itemUsers.element("sip_authid").getText()));
                  us.setUserSipData(userSipData);
                }
                 
               
                String additionalname = unformatString(itemUsers.element("additionalname").getText());
View Full Code Here


      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      Query query = session.createQuery(hql);
      query.setParameter("userSipDataId", userSipDataId);
      UserSipData userSipData = null;
      try {
        userSipData = (UserSipData) query.getSingleResult();
        } catch (NoResultException ex) {
        }
      tx.commit();
View Full Code Here

        String middle_i = "X";
        String last_name = "Virtanen";
        String email = "test@test.de";
        String password = "password";
     
        UserSipData sipData = this.openSIPgUserCreateUser(first_name, middle_i, last_name, email, password, "test");
   
    } catch (Exception err) {

      log.error("[openSIPgUserCreateTest]",err);
     
View Full Code Here

              OpenXGReturnObjectDaoImpl.getInstance().addOpenXGReturnObject(openXGReturnObjectURI);
             
              log.debug(" openXGReturnObjectURI Status Code "+openXGReturnObjectURI.getStatus_code());
              log.debug(" openXGReturnObjectURI Status String "+openXGReturnObjectURI.getStatus_string());
             
            UserSipData userSipData = new UserSipData();
           
            //userSipData.setUsername(sip_language_phonecode.getConf_value() + useridAsNumber);
            userSipData.setUsername(userid);
            userSipData.setUserpass(password);
            userSipData.setAuthId(userid);
           
            return userSipData;
           
          } else {
           
View Full Code Here

                    organisations);
          }

          if (generateSipUserData) {

            UserSipData userSipData = OpenXGHttpClient
                .getInstance().openSIPgUserCreateUser(
                    firstname, "", lastname,
                    us.getAdresses().getEmail(), password,
                    login);

            if (us.getUserSipData() == null) {
              Long userSipDataId = UserSipDataDaoImpl
                  .getInstance().addUserSipData(userSipData);

              us.setUserSipData(UserSipDataDaoImpl.getInstance()
                  .getUserSipDataById(userSipDataId));
            } else {

              us.getUserSipData().setUsername(
                  userSipData.getUsername());
              us.getUserSipData().setUserpass(
                  userSipData.getUserpass());
              us.getUserSipData().setAuthId(
                  userSipData.getAuthId());

              UserSipDataDaoImpl.getInstance().updateUserSipData(
                  us.getUserSipData());
            }

          } else if (us.getUserSipData() == null) {
            UserSipData userSipData = new UserSipData();

            userSipData.setUsername(sip_user);
            userSipData.setUserpass(sip_pass);
            userSipData.setAuthId(sip_auth);

            Long userSipDataId = UserSipDataDaoImpl.getInstance()
                .addUserSipData(userSipData);

            us.setUserSipData(UserSipDataDaoImpl.getInstance()
                .getUserSipDataById(userSipDataId));

          } else {

            UserSipData userSipData = UserSipDataDaoImpl
                .getInstance().getUserSipDataById(
                    us.getUserSipData().getUserSipDataId());

            userSipData.setUsername(sip_user);
            userSipData.setUserpass(sip_pass);
            userSipData.setAuthId(sip_auth);

            UserSipDataDaoImpl.getInstance().updateUserSipData(
                userSipData);

            us.setUserSipData(userSipData);
View Full Code Here

      users.setShowContactData(showContactData);
      users.setShowContactDataToContacts(showContactDataToContacts);

      if (generateSipUserData) {

        UserSipData userSipData = OpenXGHttpClient
            .getInstance()
            .openSIPgUserCreateUser(firstname, "", lastname,
                users.getAdresses().getEmail(), userpass, login);

        Long userSipDataId = UserSipDataDaoImpl.getInstance()
            .addUserSipData(userSipData);

        users.setUserSipData(UserSipDataDaoImpl.getInstance()
            .getUserSipDataById(userSipDataId));

      } else {
        UserSipData userSipData = new UserSipData();

        userSipData.setUsername(sip_user);
        userSipData.setUserpass(sip_pass);
        userSipData.setAuthId(sip_auth);

        Long userSipDataId = UserSipDataDaoImpl.getInstance()
            .addUserSipData(userSipData);

        users.setUserSipData(UserSipDataDaoImpl.getInstance()
View Full Code Here

      users.setOmTimeZone(OmTimeZoneDaoImpl.getInstance().getOmTimeZone(
          jNameTimeZone));

      if (generateSipUserData) {

        UserSipData userSipData = OpenXGHttpClient
            .getInstance()
            .openSIPgUserCreateUser(firstname, "", lastname,
                users.getAdresses().getEmail(), userpass, login);

        Long userSipDataId = UserSipDataDaoImpl.getInstance()
            .addUserSipData(userSipData);

        users.setUserSipData(UserSipDataDaoImpl.getInstance()
            .getUserSipDataById(userSipDataId));

      } else {
        UserSipData userSipData = new UserSipData();

        userSipData.setUsername("");
        userSipData.setUserpass("");
        userSipData.setAuthId("");

        Long userSipDataId = UserSipDataDaoImpl.getInstance()
            .addUserSipData(userSipData);

        users.setUserSipData(UserSipDataDaoImpl.getInstance()
View Full Code Here

          // emailManagement.updateUserEmail(mail.getMail().getMail_id(),user_id,
          // email);

          if (generateSipUserData) {

            UserSipData userSipData = openXGHttpClient
                .openSIPgUserCreateUser(firstname, "",
                    lastname, us.getAdresses().getEmail(),
                    password, login);

            if (us.getUserSipData() == null) {
              Long userSipDataId = userSipDataDao
                  .addUserSipData(userSipData);

              us.setUserSipData(userSipDataDao
                  .getUserSipDataById(userSipDataId));
            } else {

              us.getUserSipData().setUsername(
                  userSipData.getUsername());
              us.getUserSipData().setUserpass(
                  userSipData.getUserpass());
              us.getUserSipData().setAuthId(
                  userSipData.getAuthId());

              userSipDataDao.updateUserSipData(us
                  .getUserSipData());
            }

          } else if (us.getUserSipData() == null) {
            UserSipData userSipData = new UserSipData();

            userSipData.setUsername(sip_user);
            userSipData.setUserpass(sip_pass);
            userSipData.setAuthId(sip_auth);

            Long userSipDataId = userSipDataDao
                .addUserSipData(userSipData);

            us.setUserSipData(userSipDataDao
                .getUserSipDataById(userSipDataId));

          } else {

            UserSipData userSipData = userSipDataDao
                .getUserSipDataById(us.getUserSipData()
                    .getUserSipDataId());

            userSipData.setUsername(sip_user);
            userSipData.setUserpass(sip_pass);
            userSipData.setAuthId(sip_auth);

            userSipDataDao.updateUserSipData(userSipData);

            us.setUserSipData(userSipData);
View Full Code Here

      users.setShowContactData(showContactData);
      users.setShowContactDataToContacts(showContactDataToContacts);

      if (generateSipUserData) {

        UserSipData userSipData = openXGHttpClient
            .openSIPgUserCreateUser(firstname, "", lastname, users
                .getAdresses().getEmail(), userpass, login);

        Long userSipDataId = userSipDataDao.addUserSipData(userSipData);

        users.setUserSipData(userSipDataDao
            .getUserSipDataById(userSipDataId));

      } else {
        UserSipData userSipData = new UserSipData();

        userSipData.setUsername(sip_user);
        userSipData.setUserpass(sip_pass);
        userSipData.setAuthId(sip_auth);

        Long userSipDataId = userSipDataDao.addUserSipData(userSipData);

        users.setUserSipData(userSipDataDao
            .getUserSipDataById(userSipDataId));
View Full Code Here

      users.setPictureuri(pictureuri);
      users.setOmTimeZone(omTimeZoneDaoImpl.getOmTimeZone(jNameTimeZone));

      if (generateSipUserData) {

        UserSipData userSipData = openXGHttpClient
            .openSIPgUserCreateUser(firstname, "", lastname, users
                .getAdresses().getEmail(), userpass, login);

        Long userSipDataId = userSipDataDao.addUserSipData(userSipData);

        users.setUserSipData(userSipDataDao
            .getUserSipDataById(userSipDataId));

      } else {
        UserSipData userSipData = new UserSipData();

        userSipData.setUsername("");
        userSipData.setUserpass("");
        userSipData.setAuthId("");

        Long userSipDataId = userSipDataDao.addUserSipData(userSipData);

        users.setUserSipData(userSipDataDao
            .getUserSipDataById(userSipDataId));
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.user.UserSipData

Copyright © 2018 www.massapicom. 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.