com.jp.protection.priv.products
Interface ProductsStorageListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ProductsStorageAdapter

public interface ProductsStorageListener
extends java.util.EventListener

Defines methods to allow listening to products storage events


Method Summary
 void beforeProductsStorageSave(ProductsStorage aProductsStorage)
          Invoked before products storage will be saved.
 void productAdded(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been added to the product storage
 void productDeleted(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been deleted from the product storage
 void productsStorageLoaded(ProductsStorage aProductsStorage)
          Invoked after products storage has been loaded
 void productsStorageSaved(ProductsStorage aProductsStorage)
          Invoked after products storage has been saved
 void productUpdated(ProductsStorage aProductsStorage, Product aProduct)
          Invoked after a product has been updated
 

Method Detail

productsStorageLoaded

void productsStorageLoaded(ProductsStorage aProductsStorage)
Invoked after products storage has been loaded

Parameters:
aProductsStorage - products storage

beforeProductsStorageSave

void beforeProductsStorageSave(ProductsStorage aProductsStorage)
Invoked before products storage will be saved. Interested parties can listen for this event to commit pending changes to the products storage.

Parameters:
aProductsStorage - products storage

productsStorageSaved

void productsStorageSaved(ProductsStorage aProductsStorage)
Invoked after products storage has been saved

Parameters:
aProductsStorage - products storage

productAdded

void productAdded(ProductsStorage aProductsStorage,
                  Product aProduct)
Invoked after a product has been added to the product storage

Parameters:
aProductsStorage - products storage
aProduct - Product a product has been added to the product storage

productDeleted

void productDeleted(ProductsStorage aProductsStorage,
                    Product aProduct)
Invoked after a product has been deleted from the product storage

Parameters:
aProductsStorage - products storage
aProduct - Product a product has been deleted from the product storage

productUpdated

void productUpdated(ProductsStorage aProductsStorage,
                    Product aProduct)
Invoked after a product has been updated

Parameters:
aProductsStorage - products storage
aProduct - Product a product has been updated