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
Class StockUpdaterJoblet

java.lang.Object
  extended by org.torweg.pulse.bundle.AbstractJoblet
      extended by org.torweg.pulse.bundle.AbstractConfigurableJoblet
          extended by org.torweg.pulse.component.shop.StockUpdaterJoblet
All Implemented Interfaces:
org.quartz.Job

public class StockUpdaterJoblet
extends AbstractConfigurableJoblet

Updates the inventory of a shop by parsing an XML-file that contains the amount of items on stock. For every ShopItem to be updated, the XML-file needs to hold an element named "item" with the two attributes "ean" and "available".

Version:
$Revision: 2071 $
Author:
Christian Schatt

Nested Class Summary
static class StockUpdaterJoblet.Item
          Represents a shop item to be updated by the StockUpdaterJoblet.
static class StockUpdaterJoblet.ItemCollection
          Represents the shop items to be updated by the StockUpdaterJoblet .
 
Constructor Summary
StockUpdaterJoblet()
           
 
Method Summary
protected  void run(Bundle bundle)
          Updates the inventory of a shop by parsing an XML-file that contains the amount of items on stock.
 
Methods inherited from class org.torweg.pulse.bundle.AbstractConfigurableJoblet
getConfig, getConfiguration
 
Methods inherited from class org.torweg.pulse.bundle.AbstractJoblet
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StockUpdaterJoblet

public StockUpdaterJoblet()
Method Detail

run

protected final void run(Bundle bundle)
Updates the inventory of a shop by parsing an XML-file that contains the amount of items on stock. For every ShopItem to be updated, the XML-file needs to hold an element named "item" with the two attributes "ean" and "available".

Specified by:
run in class AbstractJoblet
Parameters:
bundle - the Bundle