|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.shop.checkout.PaymentControllerUtils
public final class PaymentControllerUtils
The PaymentControllerUtils.
| Method Summary | |
|---|---|
protected static java.lang.String |
createTransactionId(java.lang.Long uid)
Returns a generated transaction id. |
protected static boolean |
matchUsers(ServiceRequest request, Order.OrderBuilder orderBuilder)
Determines whether the id of the User matches the
Customer's user id. |
protected static Order |
saveOrder(Order order)
Merges the state of the given Order into the database. |
protected static void |
sendErrorReport(java.lang.Exception exc, EmailConfiguration config)
Sends an error report email. |
protected static void |
setRedirectEvent(ServiceRequest request,
java.lang.String action)
Adds a RedirectEvent to the EventManager. |
protected static void |
setRedirectEvent(ServiceRequest request,
java.lang.String action,
java.util.Map<java.lang.String,java.lang.String> params)
Adds a RedirectEvent to the EventManager. |
protected static void |
setRedirectEvent(ServiceRequest request,
java.lang.String action,
java.lang.String paramName,
java.lang.String paramValue)
Adds a RedirectEvent to the EventManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected static boolean matchUsers(ServiceRequest request, Order.OrderBuilder orderBuilder)
User matches the
Customer's user id.
request - the ServiceRequest.orderBuilder - the OrderBuilder.
true, if the id of the User matches the
Customer's user id. Returns false, otherwise.protected static java.lang.String createTransactionId(java.lang.Long uid)
uid - the id of the User or null, if the user is not
logged in.
protected static Order saveOrder(Order order)
Order into the database.
order - the Order to be merged.
Order.
PulseException - if the given Order cannot be merged.
protected static void setRedirectEvent(ServiceRequest request,
java.lang.String action)
RedirectEvent to the EventManager.
request - the ServiceRequest.action - the name of the action used when redirecting.
protected static void setRedirectEvent(ServiceRequest request,
java.lang.String action,
java.lang.String paramName,
java.lang.String paramValue)
RedirectEvent to the EventManager.
request - the ServiceRequest.action - the name of the action used when redirecting.paramName - the name of the parameter to set.paramValue - the value of the parameter to set.
protected static void setRedirectEvent(ServiceRequest request,
java.lang.String action,
java.util.Map<java.lang.String,java.lang.String> params)
RedirectEvent to the EventManager.
request - the ServiceRequest.action - the name of the action used when redirecting.params - the parameters to set.protected static void sendErrorReport(java.lang.Exception exc, EmailConfiguration config)
exc - the Exception which is the basis of the error report.config - the EmailConfiguration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||