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 SendEmailsTask

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

public class SendEmailsTask
extends java.lang.Object
implements CheckoutFinishingTask

The SendEmailsTask.

Version:
$Revision$
Author:
Christian Schatt

Constructor Summary
SendEmailsTask()
          The no-argument constructor.
 
Method Summary
 void execute(java.lang.Long id)
          Sends the order emails.
 void initialize(CheckoutFinishingTaskConfiguration config)
          Initializes the SendEmailsTask with the given CheckoutFinishingTaskConfiguration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SendEmailsTask

public SendEmailsTask()
The no-argument constructor.

Method Detail

execute

public final void execute(java.lang.Long id)
Sends the order emails.

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 config)
Initializes the SendEmailsTask with the given CheckoutFinishingTaskConfiguration.

Specified by:
initialize in interface Configurable<CheckoutFinishingTaskConfiguration>
Parameters:
config - the CheckoutFinishingTaskConfiguration.
Throws:
ConfigurationException - if the given CheckoutFinishingTaskConfiguration is not an instance of SendEmailsTaskConfiguration.
See Also:
Configurable.initialize(org.torweg.pulse.configuration.Configuration)