de.ix.jspTutorial.controller
Class ModelManager
java.lang.Object
|
+--de.ix.jspTutorial.controller.ModelManager
- public class ModelManager
- extends java.lang.Object
- implements SessionConstants
This class provides a convienient set of methods for the
web tier components to access all the model objects.
This class also insures that only one copy of the model objects
are created for web tier access by placing a reference to the
model objects in the session.
- Version:
- $Id:$
- Author:
- Peter Rossbach (pr@webapp.de), Lars Röwekamp ( lars.roewekamp@openKnowledge.de)
Field Summary |
static java.lang.String |
vcid
Version des Source |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
vcid
public static java.lang.String vcid
- Version des Source
ModelManager
public ModelManager()
init
public void init(javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpSession httpSession)
- Initialize method for the
ModelManager
instance
- Parameters:
servletContext
- the applicationcurrent requesthttpSession
- the session
getCustomer
public Customer getCustomer()
- Get the current customer object.
- Returns:
- the current customer object
setCustomer
public void setCustomer(Customer newCustomer)
- Set the current customer object.
- Parameters:
newCustomer
- the new current customer
resetCustomer
public void resetCustomer()
- Reset the current customer object.
isCustomerLoggedIn
public boolean isCustomerLoggedIn()
- Check if there is a valid customer object.
getPizzaAccessor
public PizzaAccessor getPizzaAccessor()
- Get pizza accessor object.
- Returns:
- A pizza accessor object
getPersonalPizza
public PersonalPizza getPersonalPizza()
- Get the current personal pizza object.
- Returns:
- The current personal pizza object
setPersonalPizza
public void setPersonalPizza(PersonalPizza newPersonalPizza)
- Set the current personal pizza object.
- Parameters:
newPersonalPizza
- The new current personal pizza object
~ Das iX JSP Tutorial II - © 2000 by Peter Roßbach ~