Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.
ATG Pipelines
Kate Soglaeva
Agenda
O DAF Servlet Pipeline
O Commerce pipelines
DAF Servlet Pipeline
PageFilter
O PageFilter starts the DAF servlet pipeline
by calling DynamoHandler
startRequestServletNam
e
AuthenticationServlet
O provides authentication using the Basic
HTTP authentication mechanism
O DEMO
1. Servlet
ProfileRequestServlet
creates an instance of
the atg/userprofiling/Profile
create a cookie containing the Profile ID of th...
CachePreventionServlet
pResponse.setHeader("Pragma", "no-cache");
pResponse.addDateHeader("Expires", 0L);
pResponse.setHea...
Inserting Servlets in the
Pipeline
Steps to create pipeline servlet
Add the
servlet to /atg/dynamo/servlet/Initial.initialServices
Set the new servlet’s next...
PipelinebleServlet
InsertableServlet
DEMO
How to use?
1. Disable unnecessary servlets
2. Add new servlets if required
Ex. Reprice order functionality
Commerce pipelines
Commerce Pipelines
/atg/commerce/order/
OrderTools
/atg/commerce/order/
OrderManager
public void
updateOrder(Order pOrder)
/atg/commerce/Pipe...
LoadOrder Pipeline Chain
O OrderManager.loadOrder()
O loadOrderObject
O loadPriceInfoObjectsForOrder
UpdateOrder Pipeline Chain:
O OrderManager.updateOrder(
O updateOrderObject
O updateCommerceItemObjects
O updateShippingGr...
ProcessOrder Pipeline Chain
O OrderManager.processOrder()
O checkForExpiredPromotions
O removeEmptyShippingGroups
O remove...
RepriceOrder Pipeline Chain
O CartModifierFormHandler.
handleRepriceOrder
O RepriceOrderDroplet
O priceOrderTotal
Questions?
ATG pipelines
Nächste SlideShare
Wird geladen in …5
×

ATG pipelines

7.905 Aufrufe

Veröffentlicht am

ATG pipelines:
- DAF Servlet Pipeline
- Commerce pipelines

Veröffentlicht in: Technologie, Business
  • Als Erste(r) kommentieren

ATG pipelines

  1. 1. ATG Pipelines Kate Soglaeva
  2. 2. Agenda O DAF Servlet Pipeline O Commerce pipelines
  3. 3. DAF Servlet Pipeline
  4. 4. PageFilter O PageFilter starts the DAF servlet pipeline by calling DynamoHandler
  5. 5. startRequestServletNam e
  6. 6. AuthenticationServlet O provides authentication using the Basic HTTP authentication mechanism O DEMO 1. Servlet
  7. 7. ProfileRequestServlet creates an instance of the atg/userprofiling/Profile create a cookie containing the Profile ID of the current guest user Auto-logs in maintain persistent information: persistentAnonymousProfiles=tr ue
  8. 8. CachePreventionServlet pResponse.setHeader("Pragma", "no-cache"); pResponse.addDateHeader("Expires", 0L); pResponse.setHeader("Cache-Control", "no- cache"); pResponse.setHeader("Cache-Control", "no- store");
  9. 9. Inserting Servlets in the Pipeline
  10. 10. Steps to create pipeline servlet Add the servlet to /atg/dynamo/servlet/Initial.initialServices Set the new servlet’s nextServlet property Reset the previous servlet’s nextServlet property Define global scope component Extend atg.servlet.pipeline.PipelineableServletImpl
  11. 11. PipelinebleServlet
  12. 12. InsertableServlet
  13. 13. DEMO
  14. 14. How to use? 1. Disable unnecessary servlets 2. Add new servlets if required Ex. Reprice order functionality
  15. 15. Commerce pipelines
  16. 16. Commerce Pipelines
  17. 17. /atg/commerce/order/ OrderTools /atg/commerce/order/ OrderManager public void updateOrder(Order pOrder) /atg/commerce/PipelineManager runProcess("updateOrder", map) orderTools pipelineManager definitionFile /atg/commerce/ commercepipeline.xml
  18. 18. LoadOrder Pipeline Chain O OrderManager.loadOrder() O loadOrderObject O loadPriceInfoObjectsForOrder
  19. 19. UpdateOrder Pipeline Chain: O OrderManager.updateOrder( O updateOrderObject O updateCommerceItemObjects O updateShippingGroupObjects O updatePaymentGroupObjects O updateRelationshipObjects O updatePriceInfoObjects O saveManualAdjustments
  20. 20. ProcessOrder Pipeline Chain O OrderManager.processOrder() O checkForExpiredPromotions O removeEmptyShippingGroups O removeEmptyPaymentGroups O moveUsedPromotionsauthorizePayment O addOrderToRepository O sendPromotionUsedMessage O sendFulfillmentMessage
  21. 21. RepriceOrder Pipeline Chain O CartModifierFormHandler. handleRepriceOrder O RepriceOrderDroplet O priceOrderTotal
  22. 22. Questions?

×