Class PerkStoreStorage

java.lang.Object
org.exoplatform.perkstore.storage.PerkStoreStorage
Direct Known Subclasses:
PerkStoreCachedStorage

public class PerkStoreStorage extends Object
  • Constructor Details

  • Method Details

    • getProductById

      public Product getProductById(long productId)
    • saveProduct

      public Product saveProduct(Product product, String username) throws PerkStoreException
      Throws:
      PerkStoreException
    • getAllProducts

      public List<Product> getAllProducts()
    • countOrderedQuantity

      public double countOrderedQuantity(long productId)
    • countRemainingOrdersToProcess

      public long countRemainingOrdersToProcess(long id)
    • countRemainingOrdersToProcess

      public long countRemainingOrdersToProcess(long identityId, long productId)
    • countUserTotalPurchasedQuantity

      public double countUserTotalPurchasedQuantity(long productId, long identityId)
    • countUserPurchasedQuantityInPeriod

      public double countUserPurchasedQuantityInPeriod(long productId, long identityId, long startDate, long endDate)
    • getOrders

      public List<ProductOrder> getOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner)
    • countOrders

      public Long countOrders(String username, OrderFilter filter, boolean isPerkStoreManager, boolean isProductOwner)
    • getOrderById

      public ProductOrder getOrderById(long orderId)
    • saveOrder

      public ProductOrder saveOrder(ProductOrder order) throws PerkStoreException
      Throws:
      PerkStoreException
    • findOrderByTransactionHash

      public ProductOrder findOrderByTransactionHash(String hash)
    • findOrderByRefundTransactionHash

      public ProductOrder findOrderByRefundTransactionHash(String hash)
    • getFileDetail

      public FileDetail getFileDetail(long productId, Long imageAttachementId, boolean parseBinaryData)
    • replaceTransactions

      public ProductOrder replaceTransactions(String oldHash, String newHash)