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 PayPalPaymentController

java.lang.Object
  extended by org.torweg.pulse.bundle.Controller
      extended by org.torweg.pulse.component.shop.checkout.PayPalPaymentController
All Implemented Interfaces:
Configurable<PayPalPaymentControllerConfiguration>

public final class PayPalPaymentController
extends Controller
implements Configurable<PayPalPaymentControllerConfiguration>

The PayPalPaymentController.

Version:
$Revision: 1979 $
Author:
Christian Schatt

Nested Class Summary
 
Nested classes/interfaces inherited from class org.torweg.pulse.bundle.Controller
Controller.AlwaysRun
 
Constructor Summary
PayPalPaymentController()
           
 
Method Summary
 PaymentControllerResult cancel(Bundle bundle, ServiceRequest request)
          Cancel the PayPal™ payment.
 PaymentControllerResult finishAuthorization(Bundle bundle, ServiceRequest request)
          Finish the PayPal™ payment authorization.
 PaymentControllerResult finishCaptureWithGiropay(Bundle bundle, ServiceRequest request)
          Finish the PayPal™ payment capture with giropay.
 void initialize(PayPalPaymentControllerConfiguration c)
          Initializes the PayPalPaymentController with the given PayPalPaymentControllerConfiguration.
 PaymentControllerResult startAuthorization(Bundle bundle, ServiceRequest request)
          Start the PayPal™ payment authorization.
 PaymentControllerResult startCapture(Bundle bundle, ServiceRequest request)
          Start the PayPal™ payment capture.
 
Methods inherited from class org.torweg.pulse.bundle.Controller
getAlwaysRun, isAlwaysRun, setAlwaysRun
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PayPalPaymentController

public PayPalPaymentController()
Method Detail

startAuthorization

@Action(value="startPayPalPaymentAuthorization", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="startPayPalPaymentAuthorization")
@Groups(values="checkout")
public PaymentControllerResult startAuthorization(Bundle bundle, ServiceRequest request)
Start the PayPal™ payment authorization.

Parameters:
bundle - the Bundle.
request - the ServiceRequest.
Returns:
the PaymentControllerResult.

finishAuthorization

@Action(value="finishPayPalPaymentAuthorization", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="finishPayPalPaymentAuthorization")
@Groups(values="checkout")
public PaymentControllerResult finishAuthorization(Bundle bundle, ServiceRequest request)
Finish the PayPal™ payment authorization.

Parameters:
bundle - the Bundle.
request - the ServiceRequest.
Returns:
the PaymentControllerResult.

startCapture

@Action(value="startPayPalPaymentCapture", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="startPayPalPaymentCapture")
@Groups(values="checkout")
public PaymentControllerResult startCapture(Bundle bundle, ServiceRequest request)
Start the PayPal™ payment capture.

Parameters:
bundle - the Bundle.
request - the ServiceRequest.
Returns:
the PaymentControllerResult.

finishCaptureWithGiropay

@Action(value="finishPayPalPaymentCaptureWithGiropay", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="finishPayPalPaymentCaptureWithGiropay")
@Groups(values="checkout")
public PaymentControllerResult finishCaptureWithGiropay(Bundle bundle, ServiceRequest request)
Finish the PayPal™ payment capture with giropay.

Parameters:
bundle - the Bundle.
request - the ServiceRequest.
Returns:
the PaymentControllerResult.

cancel

@Action(value="cancelPayPalPayment", generate=true, security=ALWAYS, stripSitemapID=false)
@Permission(value="cancelPayPalPayment")
@Groups(values="checkout")
public PaymentControllerResult cancel(Bundle bundle, ServiceRequest request)
Cancel the PayPal™ payment.

Parameters:
bundle - the Bundle
request - the ServiceRequest
Returns:
the PaymentControllerResult

initialize

public void initialize(PayPalPaymentControllerConfiguration c)
Initializes the PayPalPaymentController with the given PayPalPaymentControllerConfiguration.

Specified by:
initialize in interface Configurable<PayPalPaymentControllerConfiguration>
Parameters:
c - the PayPalPaymentControllerConfiguration.
Throws:
java.lang.IllegalArgumentException - if the given PayPalPaymentControllerConfiguration is null.