psoft.hsphere.promotion
Interface PromoValidator

All Known Implementing Classes:
SimplePromo

public interface PromoValidator


Method Summary
 void delete(long promoId)
          Deletes validator data from the H-Sphere database
 boolean isPromoValid(psoft.hsphere.Account a)
          This method is called by a Promo instance in order to check if a promotion is valid for a given account
 void updateData(long promoId, java.util.Hashtable data)
          Updates the validator object and saves changes to the H-Sphere database
 

Method Detail

isPromoValid

public boolean isPromoValid(psoft.hsphere.Account a)
This method is called by a Promo instance in order to check if a promotion is valid for a given account


updateData

public void updateData(long promoId,
                       java.util.Hashtable data)
                throws java.lang.Exception
Updates the validator object and saves changes to the H-Sphere database

Parameters:
promoId - id of the Promo object instance
data - name/value pairs of data which should be saved
Throws:
java.lang.Exception

delete

public void delete(long promoId)
            throws java.lang.Exception
Deletes the validator data from the H-Sphere database

Parameters:
promoId - id of the Promo object
Throws:
java.lang.Exception