Package org.jayasoft.woj.portal.model

Examples of org.jayasoft.woj.portal.model.Product


            List lic = ServiceFactory.getLicenseService().addLicense(pendingOrder);
                        UserImpl buyer = pendingOrder.getBuyer();
                       
                       
                        // We modify user for fidelity
                        Product p = pendingOrder.getPrice().getProduct();
                        int years = pendingOrder.getSubscribedYears();
                        FidelityService fs = ServiceFactory.getFidelityService();
                        fs.buy(buyer, p, years, pendingOrder.getSubscribedUsers());
                       
                        LOGGER.info("creating invoice...");
View Full Code Here


                    public String doInAction(ActionForm form, HttpServletRequest request, HttpServletResponse response) throws ServiceException {
                        ActionsHelper.rememberPage(request, "/fidelity/showFidelityOffers");
                       
                        FidelityService fs = ServiceFactory.getFidelityService();
                        PricingService ps = ServiceFactory.getPricingService();
                        Product pStd = ps.getProduct("STD");
                        Product pPro = ps.getProduct("PRO250");

                        List ppStdPurchase = fs.getPointsByProduct(pStd, ProductPoint.PURCHASE);
                        List ppProPurchase = fs.getPointsByProduct(pPro, ProductPoint.PURCHASE);
                        List ppStdGodson = fs.getPointsByProduct(pStd, ProductPoint.GODSON);
                        List ppProGodson = fs.getPointsByProduct(pPro, ProductPoint.GODSON);
View Full Code Here

    }
   
    public List getEnabledProducts() {
      List products = getAllProducts();
      for (Iterator iter = new ArrayList(products).iterator(); iter.hasNext();) {
      Product p = (Product) iter.next();
      if(!p.isEnabled()) {
        products.remove(p);
      }
    }
      return products;
    }
View Full Code Here

   
    /* (non-Javadoc)
     * @see org.jayasoft.woj.portal.data.dao.hibernate.DefaultHibernateWOJDao#newHandledObject()
     */
    public WOJObject newHandledObject() {
        return new Product();
    }
View Full Code Here

TOP

Related Classes of org.jayasoft.woj.portal.model.Product

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.