com.softslate.commerce.businessobjects.core
Class UserBean

java.lang.Object
  extended bycom.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended bycom.softslate.commerce.businessobjects.core.UserBean
All Implemented Interfaces:
BusinessObject, java.io.Serializable, User

public class UserBean
extends BaseBusinessObject
implements User, java.io.Serializable

Represents an end user accessing the system. UserBean is the default implementation of the User interface for the application.

Author:
David Tobey
See Also:
User, Serialized Form

Field Summary
private  Administrator administrator
           
private  Customer customer
           
private  java.util.Locale locale
           
(package private) static org.apache.commons.logging.Log log
           
private  Order order
           
private static long serialVersionUID
           
 
Constructor Summary
UserBean()
           
 
Method Summary
 Administrator getAdministrator()
           
 Customer getCustomer()
          Retrieves the Customer object associated with this User.
 java.util.Locale getLocale()
          Retrieves the Locale in effect for this User.
 Order getOrder()
          Retrieves the Order this User is currently placing.
 void setAdministrator(Administrator administrator)
           
 void setCustomer(Customer customer)
          Sets the Customer object associated with this User.
 void setLocale(java.util.Locale locale)
          Sets the Locale in effect for this User.
 void setOrder(Order order)
          Sets the Order this User is currently placing.
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
formatDateTime, initialize, parseDateTime, prepareRequestData, sendHTTPPost
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

locale

private java.util.Locale locale
See Also:
getLocale()

order

private Order order
See Also:
getOrder()

customer

private Customer customer
See Also:
getCustomer()

administrator

private Administrator administrator
Constructor Detail

UserBean

public UserBean()
Method Detail

getLocale

public java.util.Locale getLocale()
Description copied from interface: User
Retrieves the Locale in effect for this User. Useful to assist with the formatting of currencies and other localizations.

Specified by:
getLocale in interface User
Returns:
The Locale in effect for this User.

setLocale

public void setLocale(java.util.Locale locale)
Description copied from interface: User
Sets the Locale in effect for this User. This Locale is set in the Struts layer directly after a User object is created in each user's session.

Specified by:
setLocale in interface User
Returns:
The Locale in effect for this User.

getOrder

public Order getOrder()
Description copied from interface: User
Retrieves the Order this User is currently placing. This Order object is created when the user adds the first item to his or her cart. It is destroyed either when the user completes the order, or when his or her session ends.

Specified by:
getOrder in interface User
Returns:
The Order this User is currently placing.

setOrder

public void setOrder(Order order)
Description copied from interface: User
Sets the Order this User is currently placing. This Order object is created when the user adds the first item to his or her cart. It is destroyed either when the user completes the order, or when his or her session ends.

Specified by:
setOrder in interface User
Parameters:
order - The Order this User is currently placing.

getCustomer

public Customer getCustomer()
Description copied from interface: User
Retrieves the Customer object associated with this User. When a user logs in as a customer, this Customer object is created to store his or her account settings and other information.

Specified by:
getCustomer in interface User
Returns:
The Customer object associated with this User, or null, if the user has not logged in.

setCustomer

public void setCustomer(Customer customer)
Description copied from interface: User
Sets the Customer object associated with this User. When a user logs in as a customer, this Customer object is created to store his or her account settings and other information.

Specified by:
setCustomer in interface User
Parameters:
customer - The Customer object associated with this User.

getAdministrator

public Administrator getAdministrator()
Specified by:
getAdministrator in interface User

setAdministrator

public void setAdministrator(Administrator administrator)
Specified by:
setAdministrator in interface User


Copyright © SoftSlate, Inc. 2003–2005