Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Overview of atg framework


Published on

Gives an high level introduction of ATG Framework.

Published in: Technology

Overview of atg framework

  2. 2. AGENDA What is E-Commerce & m-commerce Different frameworks/platforms providing e-commerce solutions Overview of Oracle ATG Different modules provided by Oracle ATG Commerce Nucleus Different Oracle ATG Components
  3. 3. E-COMMERCE & M-COMMERCE Distributing, Buying, Selling and marketing products and services over internet through which transaction or terms of sale are performed electronically. Types of E-Commerce  B2B(Applies to businesses buying from and selling to each other. E.g. Walmart)  B2C(Applies to business that sells its products or services to consumers. E.g. flipkart)  C2B(Applies to any consumer that sells a product or service to a business. )  C2C(Applies to sites primarily offering goods and services to assist consumers interacting with each other. E.g. olx)
  6. 6. ART TECHNOLOGY GROUP (ATG) Web Commerce Application Highly scalable and flexible component-based architecture. E-commerce software solutions & On-demand commerce optimization applications. Co-founded by Jeet Singh & Joseph Chung in 1991. ATG’s solutions provide merchandising, marketing, content personalization, automated recommendations. Acquired by Oracle in 2005. The latest version of Oracle ATG Commerce is 11, which includes the integration support of REST MVC framework, Endeca Experience Manager.
  7. 7. ATG PLATFORM ATG platform is built on “layered” and “modular” approach. ATG Web Commerce applications implement a component development model based on Java Beans and JSP The core of ATG platform is it’s Application framework i.e. Dynamo Application Framework (DAF). DAF runs on top of the application server (like weblogic, websphere etc..) and provides essential facilities for application development and deployment.
  9. 9. APPLICATIONS IN ORACLE COMMERCE Commerce Personalization Merchandising Business Control Center Customer Service Center Endeca Commerce & Experience Manager
  10. 10. ATG COMMERCE
  11. 11. DIFFERENT MODULES AVAILABLE IN ATG DPS  Personalization module  Used to create and maintain user profiles  User specific business rules DCS  Core Commerce Module  Provides the commerce capabilities like Shopping Cart, Order Purchase & Checkout.
  12. 12. CONTD.. DSS  Extends the targeting capabilities of DPS  Scenarios are event driven  Designed to manage interaction between the site visitor and content DCC  Provides developer with the tool “ACC” B2BCommerce B2CCommerce DCS.CustomCatalogs Fulfillment DAS-UI
  13. 13. KEY CONCEPTS Component Centric Model MVC2 framework Dependency Injection Modular approach Data Anywhere Architecture (Similar to ORM)
  14. 14. COMPONENT DEVELOPMENT MODEL What is a Component? Examples of Component Architecture  Microsofts COM/DCOM  Java Beans  CORBA Benefits of Component Development Model  Code Reusability  Reduced Development time  Continuous, Incremental improvements
  15. 15. COMPONENT IN ATG Any simple Java Class can be treated as a “Component”. To define a component in ATG, we need to create .properties file in the corresponding config directory. E.g. public class MyComponent{ } -> src/com/dev/ Create a .properties file in the corresponding config directory i.e. config/com/dev/ The properties file contains the class name and the scope of the component (request/session/global)
  16. 16. DYNAMO APPLICATION FRAMEWORK DAF is the core of Oracle ATG Web Commerce It runs on top of the application server It provides a Component Development Environment. Supplies essential facilities for application development and deployment  Nucleus  Repositories  Droplets  FormHandlers  Tag Libraries
  17. 17. NUCLEUS Dynamo’s Open Object Framework Central registry for the java beans which contains our application level logic. Creates and configures the components Organizes them into a hierarchical namespace
  18. 18. FORM HANDLER Specialized Nucleus Components Can be embedded into JSPs to do form validation and based on the result perform actions like submitting user data, forwarding the user to some other pages Form handler components have handleXXX() methods, which takes care of appropriate handler logic based on user action. Some of the mostly used OOTB form handlers are ProfileFormHandler, CartModifierFormHandler, CommitOrderFormHandler etc..
  19. 19. DROPLET Specialized Nucleus components which are used to display dynamic content on the JSP pages Also known as “Dynamo Servlet Beans” Java Developers and Page designers can work independently and applications are easier to maintain OOTB droplets are ItemLookupDroplet, ForEach, Switch etc..
  20. 20. REPOSITORIES Data Access layer that defines generic representation of data store Data Anywhere Architecture (DAA) provides a unified view of content and data Core of DAA is “Repository API” Using Repository API, we can employ a single approach to accessing different data types, including SQL databases, LDAP directories, content management systems and file systems
  21. 21. HIGH LEVEL OVERVIEW OF DAA Advantages  Data Source Independence  Maximum Performance  Simplified transactional control  Fine-grained Access Control
  22. 22. TAG LIBRARIES Earlier the presentation language used is “JHTML” JHTML has lots of custom tags to access Dynamo Components JSP became the defacto language for Presentation tier Introduced to access Nucleus components and render dynamic content from JSP files Example tags include <dsp:form>, <dsp:input>,<dsp:valueof>, <dsp:a>, <dsp:getvalueof> etc..
  23. 23. DROPLETS To display the dynamic content on JSP pages using nucleus components. We can embed the output of a nucleus component using dsp tag libraries e.g. <dsp:droplet name=“/atg/dynamo/ForEach> <dsp:param name=“array” bean=“/com/sample/Student.subjects/> <dsp:oparam name=“output”> <dsp:valueof param=“element”/> </dsp:oparam>
  24. 24. CONTD… Each droplet has a predefined set of parameters that control it’s behavior  Input  Output  Open Input parameters are passed into the droplet e.g. <dsp:param name=“array” bean=“/com/sample/Student.subjects/> Output parameters are set by the droplet e.g. <dsp:valueof param=“element”/> Open parameters specify code to execute at different stages of servlet processing Content that needs to be displayed before output is displayed using outputStart <dsp:oparam name=“outputStart”> …. </dsp:oparam> <dsp:oparam name=“output”>……</dsp:oparam> Content that needs to be displayed before output is displayed using
  25. 25. CONTD.. Some of the OOTB droplets <dsp:droplet name=“atg/dynamo/droplet/foreach”> <dsp:droplet name=“atg/dynamo/droplet/switch”> <dsp:droplet name=“atg/dynamo/droplet/empty”> <dsp:droplet name=“atg/commerce/catalog/ProductLookup”>
  26. 26. FORM HANDLERS Evaluates the form data before it is submitted, check for errors, and determine what action to take. The form input fields are associated with the properties of the form handler rather than the component that we want to modify E.g. <dsp:input type=“text” bean=“MyFormHandler.age”> Form Handler must include one or more handler methods, to handle the processing of the form.
  27. 27. CONTD… Handler methods links form elements with Nucleus components Signature of the handler method Public boolean handleXXX(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ ---- } Action based on return valueReturn Value Action false No further values are processed after the handler is called. Rest of the page is not served. true Normal processing of the form values continues Page specified by the form’s action attribute is served.
  28. 28. CONTD... Sample Jsp file showing form data <dsp:form action=“SaveData”> <dsp:input type=“text” value=“jeet” bean=“MyFormHandler.firstName” /> <dsp:input type=“text” value=“singh” bean=“MyFormHandler.firstName” /> <dsp:input type=“submit” value=“Save” bean=“”/> <dsp:input type=“cancel” value=“Reset” bean=“MyFormHandler.cancel” /> </dsp:form>
  29. 29. CONTD… public class MyFormHandler extends GenericFormHandler{ private String firstName; private String lastName; public boolean handleSave(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ return true/false;} public boolean handleCancel(DynamoHttpServletRequest req, DynamoHttpServletResponse res){ return true/false;} ….. ….. }
  30. 30. CONTD… $class=MyFormHandler -> Fully Qualified Class Name $scope=request -> how the class instance will behave age=25 -> form handler property. We have to provide as name value pairs. subjects= java,atg,openapi prop1^=MyOtherFormHandler.prop1
  31. 31. SCOPE OF THE COMPONENTS •Scope specifies how the nucleus component is used among different users. •We specify the scope of the component in .properties file •Available scopes • Global: shared among all the users (default) • Session: for each user session a separate instance will be provided • Request: for each active request a separate instance will be provided • Window: for each browse window a separate instance will be provided • Prototype: every time the component is resolved separate instance of the components will be provided