|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CustomerSession
A customer session keeps track of information about customers who may not be logged in (using cookies).
Method Summary | |
---|---|
CustomerSession |
getClone()
Creates a copy of the CustomerSession . |
java.util.Date |
getCreationDate()
Get the date when the customer session was created. |
java.util.Currency |
getCurrency()
Get the currency of the customer corresponding to the shopping cart. |
Customer |
getCustomer()
Get the customer corresponding to this session. |
java.lang.String |
getEmail()
Get the customer email address corresponding to the session. |
java.lang.String |
getIpAddress()
Get the ipAddress of the user from the shopping cart. |
java.util.Date |
getLastAccessedDate()
Get the date when the customer session was last accessed. |
java.util.Locale |
getLocale()
Get the locale of the customer corresponding to the shopping cart. |
boolean |
isSignedIn()
Returns true if the customer is singed in. |
void |
setCreationDate(java.util.Date creationDate)
Set the creation date. |
void |
setCurrency(java.util.Currency currency)
Set the currency of the customer corresponding to the shopping cart. |
void |
setCustomer(Customer customer)
Set the customer corresponding to this session. |
void |
setEmail(java.lang.String email)
Set the customer email address corresponding to the session. |
void |
setIpAddress(java.lang.String ipAddress)
Set the users ip Address into the shopping cart. |
void |
setLastAccessedDate(java.util.Date lastAccessedDate)
Set the last access date. |
void |
setLocale(java.util.Locale locale)
Set the locale of the customer corresponding to the shopping cart. |
void |
setSignedIn(boolean signedIn)
Set to true if the customer is signed in. |
Methods inherited from interface com.elasticpath.domain.Entity |
---|
getGuid, setGuid |
Methods inherited from interface com.elasticpath.domain.Persistence |
---|
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk |
Methods inherited from interface com.elasticpath.domain.EpDomain |
---|
getElasticPath, setElasticPath |
Method Detail |
---|
CustomerSession getClone()
CustomerSession
.
java.util.Date getCreationDate()
java.util.Currency getCurrency()
Currency
Customer getCustomer()
java.lang.String getEmail()
java.lang.String getIpAddress()
java.util.Date getLastAccessedDate()
java.util.Locale getLocale()
Locale
boolean isSignedIn()
void setCreationDate(java.util.Date creationDate)
creationDate
- the creation date.void setCurrency(java.util.Currency currency)
currency
- the Currency
void setCustomer(Customer customer)
customer
- the Uid of the corresponding customer.void setEmail(java.lang.String email)
email
- the email address.void setIpAddress(java.lang.String ipAddress)
ipAddress
- the ipAddress of the user.void setLastAccessedDate(java.util.Date lastAccessedDate)
lastAccessedDate
- the last access date.void setLocale(java.util.Locale locale)
locale
- the Locale
void setSignedIn(boolean signedIn)
signedIn
- set to true if the customer is signed in.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |