fr.paris.lutece.plugins.stock.service
Interface IPurchaseRules

All Known Implementing Classes:
PurchaseRules

public interface IPurchaseRules

Interface implemented by class that check business rules.


Method Summary
 void checkBeforePurchase(IPurchaseDTO purchase, java.lang.String sessionId)
          Called before to save the purchase.
 

Method Detail

checkBeforePurchase

void checkBeforePurchase(IPurchaseDTO purchase,
                         java.lang.String sessionId)
                         throws PurchaseException
Called before to save the purchase. Should be used for checking if purchase is allow.

Parameters:
purchase - the purchase
sessionId - the session id
Throws:
PurchaseException - the purchase exception


Copyright © 2012 Mairie de Paris. All Rights Reserved.