Package com.ateam.webstore.service.impl

Examples of com.ateam.webstore.service.impl.CategoryService


    v.setTitle("A+Team WebStore");
    v.setHeaderTitle(v.getTitle());
   
    if (navLinks == null) {
      l.info("building navigation");
      CategoryService service = new CategoryService();
      ArrayList<Category> categories = new ArrayList<Category>();
     
      categories.add((Category) service.getById(new Long(101)));
      categories.add((Category) service.getById(new Long(102)));
      categories.add((Category) service.getById(new Long(103)));
     
      navLinks = new HashMap<String,String>();

      int i = 0;
      for (Category c : categories) if (i < 3) {
View Full Code Here


   */
  public ProductListingView getCategoryView() {
   
    String category = req.getParameter(Parameters.CATEGORY_ID.getId());
   
    CategoryService cs = new CategoryService();
   
    Category cat = cs.getById(Long.parseLong(category));
   
    ProductListingView pl = new ProductListingView(getMainView());
   
    pl.setProducts(service.getProductsByCategory(Long.parseLong(category)));
    l.info("displaying category: "+cat.getName());
View Full Code Here

TOP

Related Classes of com.ateam.webstore.service.impl.CategoryService

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.