com.sun.j2ee.blueprints.petstore.control.ejb
Interface ShoppingClientController


public interface ShoppingClientController
extends javax.ejb.EJBObject

This is the EJB-tier controller of the MVC. It is implemented as a session EJB. It controls all the activities that happen in a client session. It also provides mechanisms to access other session EJBs.


Method Summary
 Customer getCustomer()
           
 int getOrder(int requestId)
           
 ProfileMgr getProfileMgr()
           
 ShoppingCart getShoppingCart()
           
 java.util.Collection handleEvent(EStoreEvent ese)
          Feeds the specified event to the state machine of the business logic.
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

getShoppingCart

public ShoppingCart getShoppingCart()
                             throws java.rmi.RemoteException
Returns:
the shopping cart session bean for this user.

getCustomer

public Customer getCustomer()
                     throws java.rmi.RemoteException
Returns:
the Customer entity bean for this user.

getProfileMgr

public ProfileMgr getProfileMgr()
                         throws java.rmi.RemoteException
Returns:
the profilemgr entity bean for this user.

getOrder

public int getOrder(int requestId)
             throws java.rmi.RemoteException,
                    javax.ejb.FinderException
Returns:
the order ID corresponding to the request id which is mapped to an order id in the State Machine.

handleEvent

public java.util.Collection handleEvent(EStoreEvent ese)
                                 throws java.rmi.RemoteException,
                                        EStoreEventException
Feeds the specified event to the state machine of the business logic.
Returns:
a list of models that got updated because of the processing of this event.


Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.