Package com.centraview.administration.user

Examples of com.centraview.administration.user.UserVO


      UserHome home = (UserHome)CVUtility.getHomeObject("com.centraview.administration.user.UserHome", "User");
      User remote = (User)home.create();
      remote.setDataSource(dataSource);

      UserVO userVO = remote.getCustomerUserFull(userID);

      String fullName = userVO.getFirstName() + " " + userVO.getLastName();
      userForm.set("individualName", fullName);
      userForm.set("username", userVO.getLoginName());
      userForm.set("title", userVO.getTitle());
      userForm.set("userID", new Integer(userVO.getUserId()));

      AddressVO primaryAddress = userVO.getPrimaryAddress();
      if (primaryAddress != null) {
        userForm.set("street1", primaryAddress.getStreet1());
        userForm.set("street2", primaryAddress.getStreet2());
        userForm.set("city", primaryAddress.getCity());
        userForm.set("state", primaryAddress.getStateName());
        userForm.set("zipCode", primaryAddress.getZip());
        userForm.set("country", primaryAddress.getCountryName());
      }
     
      Collection mocList = userVO.getMOC();
      Iterator iterator = mocList.iterator();
      int count = 1;
      while (iterator.hasNext()) {
        MethodOfContactVO moc = (MethodOfContactVO)iterator.next();
        if (moc.getMocType() == 1 && moc.getIsPrimary().equalsIgnoreCase("YES")) {
View Full Code Here

TOP

Related Classes of com.centraview.administration.user.UserVO

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.