info.magnolia.module.shop.accessors
Class ShopProductAccessor

java.lang.Object
  extended by info.magnolia.module.shop.accessors.DefaultCustomDataAccessor
      extended by info.magnolia.module.shop.accessors.ShopProductAccessor
All Implemented Interfaces:
CustomDataAccessor

public class ShopProductAccessor
extends DefaultCustomDataAccessor

shop product.

Author:
tmiyar

Field Summary
static String SHOP_PRODUCTS_FOLDER
           
 
Constructor Summary
ShopProductAccessor(String name)
           
 
Method Summary
static String escapeSql(String input)
           
protected  javax.jcr.Node getNode(String name)
           
static List<javax.jcr.Node> getProductsByFulltext(String queryStr)
           
static List<javax.jcr.Node> getProductsByProductCategory(String productCategory)
           
static List<javax.jcr.Node> getProductsBySQL(String query)
           
static List<javax.jcr.Node> getTaggedProducts(String tagUUID)
           
 
Methods inherited from class info.magnolia.module.shop.accessors.DefaultCustomDataAccessor
getName, getNode, getNodeByName, getNodeByName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHOP_PRODUCTS_FOLDER

public static String SHOP_PRODUCTS_FOLDER
Constructor Detail

ShopProductAccessor

public ShopProductAccessor(String name)
                    throws Exception
Throws:
Exception
Method Detail

getNode

protected javax.jcr.Node getNode(String name)
Specified by:
getNode in class DefaultCustomDataAccessor

getProductsByProductCategory

public static List<javax.jcr.Node> getProductsByProductCategory(String productCategory)

getTaggedProducts

public static List<javax.jcr.Node> getTaggedProducts(String tagUUID)

getProductsByFulltext

public static List<javax.jcr.Node> getProductsByFulltext(String queryStr)

getProductsBySQL

public static List<javax.jcr.Node> getProductsBySQL(String query)

escapeSql

public static String escapeSql(String input)


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.