|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softslate.commerce.businessobjects.core.BaseBusinessObject com.softslate.commerce.businessobjects.core.UserBean
Represents an end user accessing the system. UserBean
is the
default implementation of the User
interface for the
application.
User
,
Serialized FormField 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 |
private static final long serialVersionUID
static org.apache.commons.logging.Log log
private java.util.Locale locale
getLocale()
private Order order
getOrder()
private Customer customer
getCustomer()
private Administrator administrator
Constructor Detail |
public UserBean()
Method Detail |
public java.util.Locale getLocale()
User
Locale
in effect for this User
.
Useful to assist with the formatting of currencies and other
localizations.
getLocale
in interface User
Locale
in effect for this User
.public void setLocale(java.util.Locale locale)
User
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.
setLocale
in interface User
Locale
in effect for this User
.public Order getOrder()
User
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.
getOrder
in interface User
Order
this User
is currently
placing.public void setOrder(Order order)
User
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.
setOrder
in interface User
order
- The Order
this User
is currently
placing.public Customer getCustomer()
User
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.
getCustomer
in interface User
Customer
object associated with this
User
, or null
, if the user has
not logged in.public void setCustomer(Customer customer)
User
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.
setCustomer
in interface User
customer
- The Customer
object associated with this
User
.public Administrator getAdministrator()
getAdministrator
in interface User
public void setAdministrator(Administrator administrator)
setAdministrator
in interface User
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |