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")) {