Package org.sete.domain

Examples of org.sete.domain.ContactInformation


        user.setLastName(ln);
        user.setDateOfBirth(new Date());
        user.setLoginName(fn);
        user.setPassword(passwordEncoder.encodePassword("sete", null));

        ContactInformation ci = new ContactInformation();
        ci.setAddress(addr);
        ci.setEmailAddress(eaddr);
        ci.setPhoneNumber(pn);
        user.setContactInformation(ci);

        user.setUserRolePrivileges(rolePrivs);
        baseDao.saveOrUpdate(user);
    }
View Full Code Here


    }

    private ContactInformation createContactInfo(CreateSeteUserVo vo)
    {
      //contactInformation
      ContactInformation ci = new ContactInformation();
      ci.setAddress(vo.getAddress());
      ci.setEmailAddress(vo.getEmailAddress());
      ci.setPhoneNumber( vo.getPhoneNumber());
      return ci;
    }
View Full Code Here

        // new password
        su.setPassword(passwordEncoder.encodePassword(csupvo.getNewPassword(), null));

        //contactInformation
        ContactInformation ci = new ContactInformation();
        ci.setAddress(csupvo.getAddress());
        ci.setEmailAddress(csupvo.getEmailAddress());
        ci.setPhoneNumber( csupvo.getPhoneNumber());
        su.setContactInformation(ci);

        seteUserDao.saveSeteUser(su);

    }
View Full Code Here

  /*
   *  Test method for {@link org.sete.service.admin.SeteUserProfileServiceImpl#loadSeteUser(String Creator)}.
   */
  @Test
  public void testLoadSeteUser(){
    ContactInformation ci = new ContactInformation();
    ci.setAddress("test address");
    ci.setEmailAddress("nm@xyz.edu");
    ci.setPhoneNumber("908-720-7643");
    aSeteUser = new SeteUser();
    aSeteUser.setId(1);
    aSeteUser.setFirstName("nevedita");
    aSeteUser.setLastName("mallick");
    aSeteUser.setContactInformation(ci);
View Full Code Here

        su.setLoginName(vo.getLoginName());
        su.setPassword(passwordEncoder.encodePassword(vo.getPassword(), null));

        //contactInformation
        ContactInformation ci = new ContactInformation();
        ci.setAddress(vo.getAddress());
        ci.setEmailAddress(vo.getEmailAddress());
        ci.setPhoneNumber( vo.getPhoneNumber());
        su.setContactInformation(ci);


        //massage UserPrivilegeType
        /* Contains all sets of Roles privilege/action mappings for User*/
 
View Full Code Here

        user.setLastName(ln);
        user.setDateOfBirth(new Date());
        user.setLoginName(fn);
        user.setPassword(passwordEncoder.encodePassword("sete", null));

        ContactInformation ci = new ContactInformation();
        ci.setAddress(addr);
        ci.setEmailAddress(eaddr);
        ci.setPhoneNumber(pn);
        user.setContactInformation(ci);

        Set<UserRolePrivilege> rolePrivs = new HashSet<UserRolePrivilege>();
        UserRolePrivilege p = new UserRolePrivilege();
        p.setUserRoleType(TypeUtil.forKey(UserRoleType.class, roleKey));
View Full Code Here

    vo.setMiddleName(su.getMiddleName());
    vo.setLastName(su.getLastName());
    vo.setLoginName(su.getLoginName());
     
    if(su.getContactInformation() == null)
      su.setContactInformation(new ContactInformation());
     
    vo.setAddress(su.getContactInformation().getAddress());
    vo.setEmailAddress(su.getContactInformation().getEmailAddress());
    vo.setPhoneNumber(su.getContactInformation().getPhoneNumber());
   
View Full Code Here

    public void createNewSeteUserProfile(CreateSeteUserProfileVo csupvo) {

        SeteUser su = userDao.findById(Integer.valueOf(csupvo.getCreator())) ;
     
        //contactInformation
        ContactInformation ci = new ContactInformation();
        ci.setAddress(csupvo.getAddress());
        ci.setEmailAddress(csupvo.getEmailAddress());
        ci.setPhoneNumber( csupvo.getPhoneNumber());
        su.setContactInformation(ci);
       
        try{
        seteUserDao.saveSeteUser(su);
        }
View Full Code Here

    public void editSeteUserProfile(CreateSeteUserProfileVo csupvo) {

        SeteUser su = userDao.findById(Integer.valueOf(csupvo.getCreator())) ;
       
        //contactInformation
        ContactInformation ci = new ContactInformation();
        ci.setAddress(csupvo.getAddress());
        ci.setEmailAddress(csupvo.getEmailAddress());
        ci.setPhoneNumber( csupvo.getPhoneNumber());
        su.setContactInformation(ci);

        try{
            seteUserDao.saveSeteUser(su);
            }
View Full Code Here

        user.setLastName(ln);
        user.setDateOfBirth(new Date());
        user.setLoginName(fn);
        user.setPassword(passwordEncoder.encodePassword("sete", null));

        ContactInformation ci = new ContactInformation();
        ci.setAddress(addr);
        ci.setEmailAddress(eaddr);
        ci.setPhoneNumber(pn);
        user.setContactInformation(ci);

        user.setUserRolePrivileges(rolePrivs);
        baseDao.saveOrUpdate(user);
    }
View Full Code Here

TOP

Related Classes of org.sete.domain.ContactInformation

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.