Examples of SignUpBean


Examples of org.encuestame.utils.security.SignUpBean

    /**
     * Send notification status account.
     * @param userAccBean
     */
    public void sendNotificationStatusAccount(final UserAccountBean userAccBean){
        final SignUpBean singUp = new SignUpBean();
        singUp.setCaptcha("CaPtChA");
        singUp.setEmail(userAccBean.getEmail());
        singUp.setFullName(userAccBean.getName());
        singUp.setPassword(userAccBean.getPassword());
        singUp.setUsername(userAccBean.getUsername());
        getAccountDao().saveOrUpdate(singUp);
        if (EnMePlaceHolderConfigurer.getBooleanProperty("application.email.enabled")) {
            try {
                getMailService().sendNotificationStatusAccount(singUp, "Change user status");
            } catch (Exception e) {
View Full Code Here

Examples of org.encuestame.utils.security.SignUpBean

     * @param userAccount
     * @return
     */
    public static final SignUpBean convertUserAccountToSignUpBean(
            final UserAccount userAccount) {
        final SignUpBean signUpBean = new SignUpBean();
        if (userAccount != null) {
            signUpBean.setCaptcha("");
            signUpBean.setEmail(userAccount.getUserEmail());
            signUpBean.setFullName(userAccount.getCompleteName());
            signUpBean.setPassword(userAccount.getPassword());
            signUpBean.setUsername(userAccount.getUsername());
        }
        return signUpBean;
    }
View Full Code Here

Examples of org.encuestame.utils.security.SignUpBean

    public void testSendNotificationStatusAccountEmail() throws Exception{
          final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                  this.emailList.getIdList());
          for (Email emails : emailList) {
                assertNotNull(emails.getEmail());
                final SignUpBean signUpBean = new SignUpBean();
                signUpBean.setCaptcha("mycaptcha");
                signUpBean.setEmail(this.emails.toString());
                signUpBean.setFullName("mifullname");
                signUpBean.setPassword("mipassword");
                signUpBean.setUsername("myusername");
                mailService.sendNotificationStatusAccount(signUpBean, "Mi mensaje");
              }
      }
View Full Code Here

Examples of org.encuestame.utils.security.SignUpBean

    public void testSendConfirmYourAccountEmail() throws Exception{
          final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                  this.emailList.getIdList());
          for (Email emails : emailList) {
                assertNotNull(emails.getEmail());
                final SignUpBean signUpBean = new SignUpBean();
                signUpBean.setCaptcha("mycaptcha");
                signUpBean.setEmail(this.emails.toString());
                signUpBean.setFullName("mifullname");
                signUpBean.setPassword("mipassword");
                signUpBean.setUsername("myusername");
                mailService.sendConfirmYourAccountEmail(signUpBean, "myCode");
              }
      }
View Full Code Here

Examples of org.encuestame.utils.security.SignUpBean

    public void testSendPasswordConfirmationEmail() throws Exception{
        final List<Email> emailList = getCatEmailDao().findEmailsByListId(
                this.emailList.getIdList());
        for (Email emails : emailList) {
              assertNotNull(emails.getEmail());
              final SignUpBean signUpBean = new SignUpBean();
              signUpBean.setCaptcha("mycaptcha");
              signUpBean.setEmail(emails.getEmail());
              signUpBean.setFullName("mifullname");
              signUpBean.setPassword("mipassword");
              signUpBean.setUsername("myusername");
              mailService.sendPasswordConfirmationEmail(signUpBean);
            }
    }
View Full Code Here

Examples of org.encuestame.utils.security.SignUpBean

      * @param email email.
      * @param password password
      * @return {@link SignUpBean}.
      */
     public SignUpBean createSignUpBean(final String username, final String email, final String password){
         final SignUpBean signUpBean = new SignUpBean();
             signUpBean.setCaptcha("12345");
             signUpBean.setEmail(email);
             signUpBean.setFullName(username);
             signUpBean.setPassword(password);
             signUpBean.setUsername(username);
         return signUpBean;
     }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.