Examples of SiteDomainParamBean


Examples of com.jada.xml.site.SiteDomainParamBean

        if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentBean.getContentSessionKey().getSiteProfileClassId())) {
          siteDomainLanguage = language;
          break;
        }
      }
      SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(contentBean.getContentSessionBean().getSiteDomain().getSiteDomainLanguage(), siteDomainLanguage);
        String mailFrom = siteDomainParamBean.getMailFromContactUs();
    ContentSessionBean contentSessionBean = contentBean.getContentSessionBean();
        if (email == null) {
          logger.error("email address value is null and email may not be sent");
            ActionForward forward = actionMapping.findForward("error") ;
            forward = new ActionForward(forward.getPath() +
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

          siteDomainLanguage = language;
          break;
        }
      }
    }
    SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(contentBean.getContentSessionBean().getSiteDomain().getSiteDomainLanguage(), siteDomainLanguage);
    Site site = siteDomain.getSite();

    TemplateEngine engine = TemplateEngine.getInstance();
    engine.init(request, servletContext, true);
    engine.setParameter("orderHeaderId", orderHeader.getOrderHeaderId());
    String body = engine.mergeData("mail/custSaleConfirmation.vm", "template", engine);
        Mailer mailer = new Mailer(site);

        String mailFrom = siteDomainParamBean.getMailFromCustSales();
        String subject = siteDomainParamBean.getSubjectCustSales();
        String mailTo = orderHeader.getCustEmail();
        if (mailFrom == null) {
          mailFrom = "";
        }
        if (subject == null) {
          subject = "";
        }
        if (Format.isNullOrEmpty(mailFrom) || Format.isNullOrEmpty(mailTo)) {
          logger.error("Unable to send customer sales email");
          logger.error("mailFrom = " + mailFrom);
          logger.error("mailTo = " + mailTo);
          logger.error("subject = " + subject);
        }
        mailer.sendMail(mailFrom, mailTo, subject, body, "text/html");
       
    body = engine.mergeData("mail/adminSaleNotification.vm", "template", engine);
    mailTo = siteDomainParamBean.getCheckoutNotificationEmail();
        mailFrom = siteDomainParamBean.getMailFromNotification();
        subject = siteDomainParamBean.getSubjectNotification();
        if (!Format.isNullOrEmpty(mailFrom) && !Format.isNullOrEmpty(mailTo)) {
          mailer.sendMail(mailFrom, mailTo, subject, body, "text/html");
        }
  }
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

          siteDomainLanguage = language;
          break;
        }
      }
    }
    SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(siteDomain.getSiteDomainLanguage(), siteDomainLanguage);
    Site site = siteDomain.getSite();
   
    TemplateEngine engine = TemplateEngine.getInstance();
    engine.init(orderHeader.getSiteDomain(),
          orderHeader.getSiteProfile(),
          orderHeader.getSiteCurrency(),
          servletContext);
    engine.setParameter("orderHeaderId", orderHeader.getOrderHeaderId());
    String body = engine.mergeData("mail/shippingQuote.vm", "template", engine);
        Mailer mailer = new Mailer(site);

        String mailFrom = siteDomainParamBean.getMailFromShippingQuote();
        String subject = siteDomainParamBean.getSubjectShippingQuote();
        String mailTo = orderHeader.getCustEmail();
        if (mailFrom == null) {
          mailFrom = "";
        }
        if (subject == null) {
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

    }
    return secureURLPrefix;
  }
 
  public static SiteDomainParamBean getSiteDomainParamBean(SiteDomainLanguage master, SiteDomainLanguage siteDomainLanguage) throws Exception {
    SiteDomainParamBean masterBean = (SiteDomainParamBean) Utility.joxUnMarshall(SiteDomainParamBean.class, master.getSiteDomainParam());
        SiteDomainParamBean siteDomainParamBean = null;
        if (siteDomainLanguage == null) {
          siteDomainParamBean = new SiteDomainParamBean();
        }
        else {
          siteDomainParamBean = (SiteDomainParamBean) Utility.joxUnMarshall(SiteDomainParamBean.class, siteDomainLanguage.getSiteDomainParam());
        }
       
        if (siteDomainParamBean.getCheckoutNotificationEmail() == null) {
          siteDomainParamBean.setCheckoutNotificationEmail(masterBean.getCheckoutNotificationEmail());
        }
        if (siteDomainParamBean.getCheckoutShoppingCartMessage() == null) {
          siteDomainParamBean.setCheckoutShoppingCartMessage(masterBean.getCheckoutShoppingCartMessage());
        }
        if (siteDomainParamBean.getTemplateFooter() == null) {
          siteDomainParamBean.setTemplateFooter(masterBean.getTemplateFooter());
        }
        if (siteDomainParamBean.getPaymentPaypalApiUsername() == null) {
          siteDomainParamBean.setPaymentPaypalApiUsername(masterBean.getPaymentPaypalApiUsername());
        }
        if (siteDomainParamBean.getPaymentPaypalApiPassword() == null) {
          siteDomainParamBean.setPaymentPaypalApiPassword(masterBean.getPaymentPaypalApiPassword());
        }
        if (siteDomainParamBean.getPaymentPaypalSignature() == null) {
          siteDomainParamBean.setPaymentPaypalSignature(masterBean.getPaymentPaypalSignature());
        }
        if (siteDomainParamBean.getPaymentPaypalEnvironment() == null) {
          siteDomainParamBean.setPaymentPaypalEnvironment(masterBean.getPaymentPaypalEnvironment());
        }
        if (siteDomainParamBean.getPaymentPaypalExtraAmount() == null) {
          siteDomainParamBean.setPaymentPaypalExtraAmount(masterBean.getPaymentPaypalExtraAmount());
        }
        if (siteDomainParamBean.getPaymentPaypalExtraPercentage() == null) {
          siteDomainParamBean.setPaymentPaypalExtraPercentage(masterBean.getPaymentPaypalExtraPercentage());
        }
        if (siteDomainParamBean.getPaymentPaypalCustClassId() == null) {
          siteDomainParamBean.setPaymentPaypalCustClassId(masterBean.getPaymentPaypalCustClassId());
        }
        if (siteDomainParamBean.getPaymentProcessType() == null) {
          siteDomainParamBean.setPaymentProcessType(masterBean.getPaymentProcessType());
        }
        if (siteDomainParamBean.getCategoryPageSize() == null) {
          siteDomainParamBean.setCategoryPageSize(masterBean.getCategoryPageSize());
        }
        if (siteDomainParamBean.getBusinessContactName() == null) {
          siteDomainParamBean.setBusinessContactName(masterBean.getBusinessContactName());
        }
        if (siteDomainParamBean.getBusinessCompany() == null) {
          siteDomainParamBean.setBusinessCompany(masterBean.getBusinessCompany());
        }
        if (siteDomainParamBean.getBusinessAddress1() == null) {
          siteDomainParamBean.setBusinessAddress1(masterBean.getBusinessAddress1());
        }
        if (siteDomainParamBean.getBusinessAddress2() == null) {
          siteDomainParamBean.setBusinessAddress2(masterBean.getBusinessAddress2());
        }
        if (siteDomainParamBean.getBusinessCity() == null) {
          siteDomainParamBean.setBusinessCity(masterBean.getBusinessCity());
        }
        if (siteDomainParamBean.getBusinessStateCode() == null) {
          siteDomainParamBean.setBusinessStateCode(masterBean.getBusinessStateCode());
        }
        if (siteDomainParamBean.getBusinessPostalCode() == null) {
          siteDomainParamBean.setBusinessPostalCode(masterBean.getBusinessPostalCode());
        }
        if (siteDomainParamBean.getBusinessCountryCode() == null) {
          siteDomainParamBean.setBusinessCountryCode(masterBean.getBusinessCountryCode());
        }
        if (siteDomainParamBean.getBusinessPhone() == null) {
          siteDomainParamBean.setBusinessPhone(masterBean.getBusinessPhone());
        }
        if (siteDomainParamBean.getBusinessFax() == null) {
          siteDomainParamBean.setBusinessFax(masterBean.getBusinessFax());
        }
        if (siteDomainParamBean.getBusinessEmail() == null) {
          siteDomainParamBean.setBusinessEmail(masterBean.getBusinessEmail());
        }
        if (siteDomainParamBean.getMailFromPwdReset() == null) {
          siteDomainParamBean.setMailFromPwdReset(masterBean.getMailFromPwdReset());
        }
        if (siteDomainParamBean.getSubjectPwdReset() == null) {
          siteDomainParamBean.setSubjectPwdReset(masterBean.getSubjectPwdReset());
        }
        if (siteDomainParamBean.getMailFromCustSales() == null) {
          siteDomainParamBean.setMailFromCustSales(masterBean.getMailFromCustSales());
        }
        if (siteDomainParamBean.getSubjectCustSales() == null) {
          siteDomainParamBean.setSubjectCustSales(masterBean.getSubjectCustSales());
        }
        if (siteDomainParamBean.getMailFromNotification() == null) {
          siteDomainParamBean.setMailFromNotification(masterBean.getMailFromNotification());
        }
        if (siteDomainParamBean.getSubjectNotification() == null) {
          siteDomainParamBean.setSubjectNotification(masterBean.getSubjectNotification());
        }
        return siteDomainParamBean;
  }
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

    siteDomainLanguage.setSiteName("localhost");
    siteDomainLanguage.setRecUpdateBy(userId);
    siteDomainLanguage.setRecUpdateDatetime(new Date(System.currentTimeMillis()));
    siteDomainLanguage.setRecCreateBy(userId);
    siteDomainLanguage.setRecCreateDatetime(new Date(System.currentTimeMillis()));
    SiteDomainParamBean siteDomainParamBean = new SiteDomainParamBean();
    siteDomainLanguage.setSiteDomainParam(Utility.joxMarshall("SiteDomainParamBean", siteDomainParamBean));
    siteDomainLanguage.setSiteProfileClass(siteProfileClass);
    em.persist(siteDomainLanguage);
    siteDomain.getSiteDomainLanguages().add(siteDomainLanguage);
    siteDomain.setSiteDomainLanguage(siteDomainLanguage);
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

        generateItem(homePageDetail.getItem(), siteDomain);
      }
    }
   
    int recordCount = Constants.TEMPLATE_MODULE_DISPLAY_SIZE;
    SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(siteDomain.getSiteDomainLanguage(), null);
    if (!Format.isNullOrEmpty(siteDomainParamBean.getModuleDisplaySize())) {
      recordCount = Format.getInt(siteDomainParamBean.getModuleDisplaySize());
    }
   
    String sql = NamedQuery.getInstance().getQuery("content.topRated");
    Query query = em.createQuery(sql);
    query.setMaxResults(recordCount);
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

        if (language.getSiteProfileClass().getSiteProfileClassId().equals(contentBean.getContentSessionKey().getSiteProfileClassId())) {
          siteDomainLanguage = language;
          break;
        }
      }
      SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(contentBean.getContentSessionBean().getSiteDomain().getSiteDomainLanguage(), siteDomainLanguage);
      form.setShoppingCartMessage(siteDomainParamBean.getCheckoutShoppingCartMessage());

      if (print != null && print.equals("Y")) {
        createEmptyPrintTemplateInfo(request);
      }
      else {
View Full Code Here

Examples of com.jada.xml.site.SiteDomainParamBean

          break;
        }
      }
    }
   
    SiteDomainParamBean siteDomainParamBean = SiteDomainDAO.getSiteDomainParamBean(siteDomain.getSiteDomainLanguage(), siteDomainLanguage);
    String message = siteDomainParamBean.getCheckoutShoppingCartMessage();
    header.setShoppingCartMessage(message);
    header.setSiteName(siteDomain.getSiteDomainLanguage().getSiteName());
    if (!siteProfileClassDefault) {
      if (siteDomainLanguage.getSiteName() != null) {
        header.setSiteName(siteDomainLanguage.getSiteName());
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.