Package org.openmeetings.app.persistence.beans.adresses

Examples of org.openmeetings.app.persistence.beans.adresses.Adresses


            String sendMail = emailManagement.sendMail(login,
                password, email, link, sendConfirmation);
            if (!sendMail.equals("success"))
              return new Long(-19);
          }
          Adresses adr =  new Adresses();
          adr.setStreet(street);
          adr.setZip(zip);
          adr.setTown(town);
          adr.setStates(statemanagement.getStateById(states_id));
          adr.setAdditionalname(additionalname);
          adr.setComment("");
          adr.setFax(fax);
          adr.setPhone(phone);
          adr.setEmail(email);

          // If this user needs first to click his E-Mail verification
          // code then set the status to 0
          if (sendConfirmation) {
            status = 0;
          }

          Long user_id = addUser(level_id, availible, status,
              firstname, login, lastname, language_id, password,
              adr, age, hash, sip_user, sip_pass,
              sip_auth, generateSipUserData, timezone,
              forceTimeZoneCheck, userOffers, userSearchs,
              showContactData, showContactDataToContacts, organisations);
          log.debug("Added user-Id " + user_id);
          if (user_id == null) {
            return new Long(-111);
          }

          /*
           * Long adress_emails_id =
           * emailManagement.registerEmail(email, address_id,""); if
           * (adress_emails_id==null) { return new Long(-112); }
           */

          if (adr.getAdresses_id() > 0 && user_id > 0) {
            return user_id;
          } else {
            return new Long(-16);
          }
        } else {
View Full Code Here


    try {
      if (USER_ID != 0) {
        Users us = getUser(USER_ID);
        us.setDeleted("true");
        us.setUpdatetime(new Date());
        Adresses adr = us.getAdresses();
        if (adr != null) {
          adr.setDeleted("true");
        }

        if (us.getUser_id() == null) {
          em.persist(us);
        } else {
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.adresses.Adresses

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.