Package org.encuestame.persistence.domain

Examples of org.encuestame.persistence.domain.EmailSubscribe


                emailsDomain.setSubscribed(Boolean.FALSE); //By Default is FALSE, user need subscribe.
                emailsDomain.setIdListEmail(emailList);
                getEmailListsDao().saveOrUpdate(emailsDomain);
                unitEmails.setIdEmail(emailsDomain.getIdEmail());
                //TODO: Necesitamos crear el registro con el hash !!
                final EmailSubscribe subscribe = new EmailSubscribe();
                subscribe.setEmail(emailsDomain);
                subscribe.setList(emailList);
                subscribe.setHashCode(codeSubscribe);
                getEmailListsDao().saveOrUpdate(subscribe);
                if (EnMePlaceHolderConfigurer.getBooleanProperty("application.email.enabled")) {
                    getMailService().send(emailsDomain.getEmail(),"Invitation to Subscribe Encuestame List","Invitation to Subscribe");
                }
                //TODO:Enviamos correo al usuario para que confirme su subscripcion.
View Full Code Here


     * @return
     * @throws EnMeExpcetion
     */
    public Boolean subscribeEmails(final String subscriptionCode, final String subscriptionOption) throws EnMeExpcetion{
        Boolean success = false;
        EmailSubscribe subscribe = getEmailListsDao().getSubscribeAccount(subscriptionCode);
        if (subscribe!=null){
            try {
                   Email emails = new Email();
                   if(subscriptionOption.equals("subscribe"))
                   {
View Full Code Here

    /**
     * Subscribe email.
     */
    @Test
  public void testEmailSubscribe() {
    final EmailSubscribe subscribe = new EmailSubscribe();
    final EmailList emailList = createListEmails(this.initAccount, "VIP Email List", new Date());
    final Email email = createEmails("juan@encuestame.org", emailList);
    subscribe.setHashCode("CKDpka8834s");
    //subscribe.setIdSubscribe(5L);
    subscribe.setList(emailList);
    subscribe.setEmail(email);
    getCatEmailDao().saveOrUpdate(subscribe);
    assertNotNull(subscribe.getHashCode());
    assertNotNull(subscribe.getList());
    assertNotNull(subscribe.getEmail());
    assertNotNull(subscribe.getIdSubscribe());
  }
View Full Code Here

TOP

Related Classes of org.encuestame.persistence.domain.EmailSubscribe

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.