public final class DigitalGoodsStore
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DigitalGoodsStore.Event |
static class |
DigitalGoodsStore.Goods |
static class |
DigitalGoodsStore.Purchase |
Constructor and Description |
---|
DigitalGoodsStore() |
public static boolean addGoodsListener(Listener<DigitalGoodsStore.Goods> listener, DigitalGoodsStore.Event eventType)
public static boolean removeGoodsListener(Listener<DigitalGoodsStore.Goods> listener, DigitalGoodsStore.Event eventType)
public static boolean addPurchaseListener(Listener<DigitalGoodsStore.Purchase> listener, DigitalGoodsStore.Event eventType)
public static boolean removePurchaseListener(Listener<DigitalGoodsStore.Purchase> listener, DigitalGoodsStore.Event eventType)
public static java.util.Collection<DigitalGoodsStore.Goods> getAllGoods()
public static java.util.SortedSet<DigitalGoodsStore.Goods> getSellerGoods(java.lang.Long sellerId)
public static DigitalGoodsStore.Goods getGoods(java.lang.Long goodsId)
public static java.util.Collection<DigitalGoodsStore.Purchase> getAllPurchases()
public static java.util.SortedSet<DigitalGoodsStore.Purchase> getSellerPurchases(java.lang.Long sellerId)
public static java.util.SortedSet<DigitalGoodsStore.Purchase> getBuyerPurchases(java.lang.Long buyerId)
public static java.util.SortedSet<DigitalGoodsStore.Purchase> getSellerBuyerPurchases(java.lang.Long sellerId, java.lang.Long buyerId)
public static DigitalGoodsStore.Purchase getPurchase(java.lang.Long purchaseId)
public static java.util.SortedSet<DigitalGoodsStore.Purchase> getPendingSellerPurchases(java.lang.Long sellerId)