Package nxt.dgs
Class DigitalGoodsHome
java.lang.Object
nxt.dgs.DigitalGoodsHome
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumfinal classfinal classfinal class -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType) static booleanaddPurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType) static DigitalGoodsHomeforChain(ChildChain childChain) getAllGoods(int from, int to) getAllPurchases(int from, int to) getAllTags(int from, int to) intgetBuyerPurchaseCount(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly) getBuyerPurchases(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) getExpiredSellerPurchases(long sellerId, int from, int to) getGoods(long goodsId) intgetGoodsInStock(int from, int to) intintgetGoodsPurchaseCount(long goodsId, boolean withPublicFeedbacksOnly, boolean completedOnly) getGoodsPurchases(long goodsId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) getInStockTags(int from, int to) getPendingPurchase(long purchaseId) getPendingSellerPurchases(long sellerId, int from, int to) getPurchase(long purchaseId) intintgetPurchaseCount(boolean withPublicFeedbacksOnly, boolean completedOnly) getPurchases(boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) intgetSellerBuyerPurchaseCount(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly) getSellerBuyerPurchases(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) getSellerGoods(long sellerId, boolean inStockOnly, int from, int to) intgetSellerGoodsCount(long sellerId, boolean inStockOnly) intgetSellerPurchaseCount(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly) getSellerPurchases(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) intintgetTagsLike(String prefix, boolean inStockOnly, int from, int to) static booleanremoveGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType) static booleanremovePurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType) searchGoods(String query, boolean inStockOnly, int from, int to) searchSellerGoods(String query, long sellerId, boolean inStockOnly, int from, int to)
-
Method Details
-
forChain
-
addGoodsListener
public static boolean addGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType) -
removeGoodsListener
public static boolean removeGoodsListener(Listener<DigitalGoodsHome.Goods> listener, DigitalGoodsHome.Event eventType) -
addPurchaseListener
public static boolean addPurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType) -
removePurchaseListener
public static boolean removePurchaseListener(Listener<DigitalGoodsHome.Purchase> listener, DigitalGoodsHome.Event eventType) -
getTagCount
public int getTagCount() -
getTagCountInStock
public int getTagCountInStock() -
getAllTags
-
getInStockTags
-
getTagsLike
public DbIterator<DigitalGoodsHome.Tag> getTagsLike(String prefix, boolean inStockOnly, int from, int to) -
getGoodsCount
public int getGoodsCount() -
getGoodsInStockCount
public int getGoodsInStockCount() -
getGoods
-
getAllGoods
-
getGoodsInStock
-
getSellerGoods
public DbIterator<DigitalGoodsHome.Goods> getSellerGoods(long sellerId, boolean inStockOnly, int from, int to) -
getSellerGoodsCount
public int getSellerGoodsCount(long sellerId, boolean inStockOnly) -
searchGoods
public DbIterator<DigitalGoodsHome.Goods> searchGoods(String query, boolean inStockOnly, int from, int to) -
searchSellerGoods
public DbIterator<DigitalGoodsHome.Goods> searchSellerGoods(String query, long sellerId, boolean inStockOnly, int from, int to) -
getPurchaseCount
public int getPurchaseCount() -
getPurchaseCount
public int getPurchaseCount(boolean withPublicFeedbacksOnly, boolean completedOnly) -
getAllPurchases
-
getPurchases
public DbIterator<DigitalGoodsHome.Purchase> getPurchases(boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) -
getSellerPurchases
public DbIterator<DigitalGoodsHome.Purchase> getSellerPurchases(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) -
getSellerPurchaseCount
public int getSellerPurchaseCount(long sellerId, boolean withPublicFeedbacksOnly, boolean completedOnly) -
getBuyerPurchases
public DbIterator<DigitalGoodsHome.Purchase> getBuyerPurchases(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) -
getBuyerPurchaseCount
public int getBuyerPurchaseCount(long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly) -
getSellerBuyerPurchases
public DbIterator<DigitalGoodsHome.Purchase> getSellerBuyerPurchases(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) -
getSellerBuyerPurchaseCount
public int getSellerBuyerPurchaseCount(long sellerId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly) -
getGoodsPurchases
public DbIterator<DigitalGoodsHome.Purchase> getGoodsPurchases(long goodsId, long buyerId, boolean withPublicFeedbacksOnly, boolean completedOnly, int from, int to) -
getGoodsPurchaseCount
public int getGoodsPurchaseCount(long goodsId, boolean withPublicFeedbacksOnly, boolean completedOnly) -
getPurchase
-
getPendingSellerPurchases
public DbIterator<DigitalGoodsHome.Purchase> getPendingSellerPurchases(long sellerId, int from, int to) -
getExpiredSellerPurchases
public DbIterator<DigitalGoodsHome.Purchase> getExpiredSellerPurchases(long sellerId, int from, int to) -
getPendingPurchase
-