Package net.naijatek.myalumni.framework.exceptions

Examples of net.naijatek.myalumni.framework.exceptions.DuplicateEmailException


    public void createMember(MemberVO member, HttpServletRequest request) throws MyAlumniBaseException {
     
      MemberVO tempMember  = memberDao.getMemberProfileByUserName(member.getMemberUserName());
     
      if (memberDao.isEmailRegisteredAlready(member.getEmail())){
        throw new DuplicateEmailException("error.duplicate.email")//Email Already exists
      }
     
      if (tempMember == null){
        member.setLastName(StringUtil.capitalize(member.getLastName()));
        member.setFirstName(StringUtil.capitalize(member.getFirstName()));
View Full Code Here


    public void createAdminMember(MemberVO member, HttpServletRequest request) throws MyAlumniBaseException {
     
      MemberVO tempMember  = memberDao.getMemberProfileByUserName(member.getMemberUserName());
     
      if (memberDao.isEmailRegisteredAlready(member.getEmail())){
        throw new DuplicateEmailException("error.duplicate.email")//Email Already exists
      }
     
      if (tempMember == null){
        member.setLastName(StringUtil.capitalize(member.getLastName()));
        member.setFirstName(StringUtil.capitalize(member.getFirstName()));
View Full Code Here

    public void addUser(MemberVO userthrows DuplicateMemberException, DuplicateEmailException{
     
      MemberVO tempMember  = memberDao.getMemberProfileByUserName(user.getMemberUserName());
     
      if (tempMember.getEmail().equalsIgnoreCase(user.getEmail())){
        throw new DuplicateEmailException("error.duplicate.email")//Email Already exists
      }
     
      if (tempMember.getMemberUserName().equalsIgnoreCase(user.getMemberUserName())){
        throw new DuplicateMemberException("error.duplicate.member")//User Already exists
      }
View Full Code Here

    public void updateUser(MemberVO user) throws DuplicateEmailException {
      //MemberVO userProfile  = memberDao.getMemberProfileByUserName(user.getMemberUserName());
     
      if (isMemberAvailableByEmail(user.getEmail(), user.getMemberId())){
        throw new DuplicateEmailException("error.duplicate.email")//Email Already exists
      }

//    // email address is changing for the same user
//      if (!userProfile.getEmail().equalsIgnoreCase(user.getEmail()) && !userProfile.getMemberId().equalsIgnoreCase(user.getMemberId())){
//        throw new DuplicateEmailException("error.duplicate.email");  //Email Already exists
View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.framework.exceptions.DuplicateEmailException

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.