com.elasticpath.domain.customer.impl
Class CustomerSessionImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractEntityImpl
              extended by com.elasticpath.domain.customer.impl.CustomerSessionImpl
All Implemented Interfaces:
CustomerSession, Entity, EpDomain, Persistence, java.io.Serializable

public class CustomerSessionImpl
extends AbstractEntityImpl
implements CustomerSession

The default implementation of CustomerSession.

See Also:
Serialized Form

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

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

CustomerSessionImpl

public CustomerSessionImpl()
Method Detail

getClone

public CustomerSession getClone()
Returns a copy of this customer session.

Specified by:
getClone in interface CustomerSession
Returns:
the CustomerSession copy

getCreationDate

public java.util.Date getCreationDate()
Get the date the session was created.

Specified by:
getCreationDate in interface CustomerSession
Returns:
the date

getCurrency

public java.util.Currency getCurrency()
Get the currency of the customer corresponding to the shopping cart.

Specified by:
getCurrency in interface CustomerSession
Returns:
the Currency

getCustomer

public Customer getCustomer()
Get the customer.

Specified by:
getCustomer in interface CustomerSession
Returns:
the customer

getEmail

public java.lang.String getEmail()
Get the email address of the session user.

Specified by:
getEmail in interface CustomerSession
Returns:
the email address

getIpAddress

public java.lang.String getIpAddress()
Get the ipAddress of the user from the shopping cart.

Specified by:
getIpAddress in interface CustomerSession
Returns:
the ipAddress

getLastAccessedDate

public java.util.Date getLastAccessedDate()
Get the date the session was last accessed.

Specified by:
getLastAccessedDate in interface CustomerSession
Returns:
the date

getLocale

public java.util.Locale getLocale()
Get the locale of the customer corresponding to the shopping cart.

Specified by:
getLocale in interface CustomerSession
Returns:
the Locale

isSignedIn

public boolean isSignedIn()
Returns true if the customer is singed in.

Specified by:
isSignedIn in interface CustomerSession
Returns:
true if the customer is signed in.

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Set the date the session was created.

Specified by:
setCreationDate in interface CustomerSession
Parameters:
creationDate - the date

setCurrency

public void setCurrency(java.util.Currency currency)
Set the currency of the customer corresponding to the shopping cart.

Specified by:
setCurrency in interface CustomerSession
Parameters:
currency - the Currency

setCustomer

public void setCustomer(Customer customer)
Set the customer.

Specified by:
setCustomer in interface CustomerSession
Parameters:
customer - the customer

setEmail

public void setEmail(java.lang.String email)
Set the email address of the session user.

Specified by:
setEmail in interface CustomerSession
Parameters:
email - the email address

setIpAddress

public void setIpAddress(java.lang.String ipAddress)
Set the users ip Address into the shopping cart.

Specified by:
setIpAddress in interface CustomerSession
Parameters:
ipAddress - the ipAddress of the user.

setLastAccessedDate

public void setLastAccessedDate(java.util.Date lastAccessedDate)
Set the date the session was last accessed.

Specified by:
setLastAccessedDate in interface CustomerSession
Parameters:
lastAccessedDate - the date

setLocale

public void setLocale(java.util.Locale locale)
Set the locale of the customer corresponding to the shopping cart.

Specified by:
setLocale in interface CustomerSession
Parameters:
locale - the Locale

setSignedIn

public void setSignedIn(boolean signedIn)
Set to true if the customer is signed in.

Specified by:
setSignedIn in interface CustomerSession
Parameters:
signedIn - set to true if the customer is signed in.