|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.elasticpath.domain.impl.AbstractEpDomainImpl
com.elasticpath.domain.impl.AbstractPersistenceImpl
com.elasticpath.domain.impl.AbstractEntityImpl
com.elasticpath.domain.customer.impl.CustomerSessionImpl
public class CustomerSessionImpl
The default implementation of CustomerSession
.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial version id. |
Constructor Summary | |
---|---|
CustomerSessionImpl()
|
Method Summary | |
---|---|
CustomerSession |
getClone()
Returns a copy of this customer session. |
java.util.Date |
getCreationDate()
Get the date the session was created. |
java.util.Currency |
getCurrency()
Get the currency of the customer corresponding to the shopping cart. |
Customer |
getCustomer()
Get the customer. |
java.lang.String |
getEmail()
Get the email address of the session user. |
java.lang.String |
getIpAddress()
Get the ipAddress of the user from the shopping cart. |
java.util.Date |
getLastAccessedDate()
Get the date the 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 date the session was created. |
void |
setCurrency(java.util.Currency currency)
Set the currency of the customer corresponding to the shopping cart. |
void |
setCustomer(Customer customer)
Set the customer. |
void |
setEmail(java.lang.String email)
Set the email address of the session user. |
void |
setIpAddress(java.lang.String ipAddress)
Set the users ip Address into the shopping cart. |
void |
setLastAccessedDate(java.util.Date lastAccessedDate)
Set the date the session was last accessed. |
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 class com.elasticpath.domain.impl.AbstractEntityImpl |
---|
convertAttributeGroupAttributes, getGuid, setDefaultValues, setGuid |
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
---|
getElasticPath, setElasticPath |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public CustomerSessionImpl()
Method Detail |
---|
public CustomerSession getClone()
getClone
in interface CustomerSession
CustomerSession
copypublic java.util.Date getCreationDate()
getCreationDate
in interface CustomerSession
public java.util.Currency getCurrency()
getCurrency
in interface CustomerSession
Currency
public Customer getCustomer()
getCustomer
in interface CustomerSession
public java.lang.String getEmail()
getEmail
in interface CustomerSession
public java.lang.String getIpAddress()
getIpAddress
in interface CustomerSession
public java.util.Date getLastAccessedDate()
getLastAccessedDate
in interface CustomerSession
public java.util.Locale getLocale()
getLocale
in interface CustomerSession
Locale
public boolean isSignedIn()
isSignedIn
in interface CustomerSession
public void setCreationDate(java.util.Date creationDate)
setCreationDate
in interface CustomerSession
creationDate
- the datepublic void setCurrency(java.util.Currency currency)
setCurrency
in interface CustomerSession
currency
- the Currency
public void setCustomer(Customer customer)
setCustomer
in interface CustomerSession
customer
- the customerpublic void setEmail(java.lang.String email)
setEmail
in interface CustomerSession
email
- the email addresspublic void setIpAddress(java.lang.String ipAddress)
setIpAddress
in interface CustomerSession
ipAddress
- the ipAddress of the user.public void setLastAccessedDate(java.util.Date lastAccessedDate)
setLastAccessedDate
in interface CustomerSession
lastAccessedDate
- the datepublic void setLocale(java.util.Locale locale)
setLocale
in interface CustomerSession
locale
- the Locale
public void setSignedIn(boolean signedIn)
setSignedIn
in interface CustomerSession
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 |