pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.shop.checkout
Class UpdateStockTask

java.lang.Object
  extended by org.torweg.pulse.component.shop.checkout.UpdateStockTask
All Implemented Interfaces:
CheckoutFinishingTask, Configurable<CheckoutFinishingTaskConfiguration>

public class UpdateStockTask
extends java.lang.Object
implements CheckoutFinishingTask

The UpdateStockTask.

Version:
$Revision$
Author:
Christian Schatt

Constructor Summary
UpdateStockTask()
          The no-argument constructor.
 
Method Summary
 void execute(java.lang.Long id)
          Updates the stock of the ordered ShopItems.
 void initialize(CheckoutFinishingTaskConfiguration configuration)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateStockTask

public UpdateStockTask()
The no-argument constructor.

Method Detail

execute

public final void execute(java.lang.Long id)
Updates the stock of the ordered ShopItems.

Specified by:
execute in interface CheckoutFinishingTask
Parameters:
id - the id of the Order.
Throws:
java.lang.IllegalArgumentException - if the given id is null.
See Also:
CheckoutFinishingTask.execute(Long)

initialize

public final void initialize(CheckoutFinishingTaskConfiguration configuration)
Does nothing.

Specified by:
initialize in interface Configurable<CheckoutFinishingTaskConfiguration>
Parameters:
configuration - may be null.
See Also:
Configurable.initialize(org.torweg.pulse.configuration.Configuration)