under the namespace petstore::controller::ejb
The classes in this package implement an EJB action following the command design pattern.
Implements an EJB action following the command design pattern. Depending on the event that triggered it, updates quantity, add a new item or deletes an item to the shopping cart
Implements an EJB action following the command design pattern. Changes the locale of the waf::StateMachine, ShoppingClientFacade, and the (components) ShoppingCart
Implements an EJB action following the command design pattern. Creates a user in the SignOnEJB, associates a ShoppingClientFacade to it.
Implements an EJB action following the command design pattern. It creates or updates a customer based on the type of event that occurred
Implements an EJB action following the command design pattern. Creates an order, empties the cart and creates an OrderEventResponse
Implements an EJB action following the command design pattern. It signs a user on.
(Stateful) caches references and provides unified access to customer, shopping cart, and user ID.
(Stateful) Session Bean that provides access to the Shopping Client Facade. Extends the WAF EJB controller (EJBControllerLocalEJB).
Under the namespace petstore::controller::events
This Event contains the information for the EJBController of a change the state of the shopping cart. There are four basic types of cart events: ADD_ITEM, DELETE_ITEM, andUPDATE_ITEM(S)
This Event contains the new username and password
This Event contains contact information, credit card, and profile information of a customer
This Event contains the information about credit cart, billing and shipping of an order.
This Event contains information about an order that has been placed.
This Event contains the information for the EJBController of the username that signed on.
under the namespace petstore::controller::web
The classes in this package implement an Web actions following the command design pattern.
Processes a user change in the shopping cart. Changes include: adding items, removing items, updating item quantities, emptying the cart
Processes a user sign on.
Processes a user changes/creation of a customer. Changes include: create customer, update customer
Processes a user change in the order.
Processes a signoff
This class relates to some web tier specific display selection where this helper will choose the banner to be displayed based on the category. The mapping of banners to categories could also be maintained in a properties file or database.
This class will forward a user to the screen they left before they attempted to create an account. It is assumed that the SignOn component is used which provides an attribute of which screen to return to.
Implements waf::controller::web::DefaultComponentManager and provides access to services in the web tier and ejb tier.
This class is essentially just a proxy object that calls methods on the EJB tier using the waf.controller.ejb.ShoppingClientControllerEJB object. All the methods that access the EJB are synchronized so that concurrent requests do not happen to the stateful session bean.
This class will bind with the current session and notify the petstore backend when a SignOn has occurred. This allows for a loose coupling of the SignOn component and the petstoreApplication. Ensure the necessary setup is done in the application when a user signs in.
under the namespace tools::populate
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Anonymously extends an XMLFilter to create and fill tables with the information that it gets from an XML stream (XMLReader).
Extends org.xml.sax.helpers.XMLFilter. Sits between an XMLReader and the client application's event handlers, it modifies the configuration requests as they pass through.
The tools::populate package is useful for testing environments. In production environments this package should be deleted or updated (synchronizing real data, etc.)
The tools::populate package contains 12 Populator classes. All of them have a very similar behavior and have the same class method names, but strangely enough there is not a common interface that all classes implement. The same code is repeated over and over, the use of inheritance would be the natural way to go, but apparently the writers of the code did not consider this possibility before jumping to code. This code is difficult to maintain and error-prone.
Back to the Pet Store SAD main page