|
|||||||||
| 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.CustomerProfileImpl
public class CustomerProfileImpl
This is a default implementation of CustomerProfile.
| Field Summary | |
|---|---|
static long |
serialVersionUID
Serial version id. |
| Constructor Summary | |
|---|---|
CustomerProfileImpl()
|
|
| Method Summary | |
|---|---|
ElasticPath |
getElasticPath()
Get the ElasticPath singleton. |
java.util.List |
getFullAttributeValues()
Get a list of AttributeValues for all attributes defined as the customer profile usage. |
java.lang.Object |
getProfileValue(java.lang.String attributeKey)
Get the value of a profile with the specified key in default locale. |
java.util.Map |
getProfileValueMap()
Returns the attribute value map. |
java.lang.String |
getStringProfileValue(java.lang.String attributeKey)
Get the value of a string profile with the specified key. |
void |
setDefaultValues()
Set default values for those fields need default values. |
void |
setProfileValue(java.lang.String attributeKey,
java.lang.Object value)
Set the customer profile value based on the given pair of key/object. |
void |
setProfileValueMap(java.util.Map profileValueMap)
Sets the attribute value map. |
void |
setStringProfileValue(java.lang.String attributeKey,
java.lang.String stringValue)
Set the customer profile value based on the given string value. |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEntityImpl |
|---|
convertAttributeGroupAttributes, getGuid, setGuid |
| Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl |
|---|
setElasticPath |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.elasticpath.domain.Persistence |
|---|
executeBeforePersistAction, getUidPk, isPersistent, setUidPk |
| Methods inherited from interface com.elasticpath.domain.EpDomain |
|---|
setElasticPath |
| Field Detail |
|---|
public static final long serialVersionUID
| Constructor Detail |
|---|
public CustomerProfileImpl()
| Method Detail |
|---|
public ElasticPath getElasticPath()
getElasticPath in interface EpDomaingetElasticPath in class AbstractEpDomainImplpublic java.util.List getFullAttributeValues()
AttributeValues for all attributes defined as the customer profile usage. If an attribute in the customer profile
usage has a value, the value will be returned. Otherwise, a null value will be returned.
AttributeValuespublic java.lang.Object getProfileValue(java.lang.String attributeKey)
getProfileValue in interface CustomerProfileattributeKey - the key of the profile to be retrieved
public java.util.Map getProfileValueMap()
getProfileValueMap in interface CustomerProfilepublic java.lang.String getStringProfileValue(java.lang.String attributeKey)
getStringProfileValue in interface CustomerProfileattributeKey - the key of the profile to be retrieved
String value of the attributepublic void setDefaultValues()
setDefaultValues in interface PersistencesetDefaultValues in class AbstractEntityImpl
public void setProfileValue(java.lang.String attributeKey,
java.lang.Object value)
setProfileValue in interface CustomerProfileattributeKey - the attribute Key to set the valuevalue - the object to set the value
EpBindException - in case the given object is invalidpublic void setProfileValueMap(java.util.Map profileValueMap)
setProfileValueMap in interface CustomerProfileprofileValueMap - the attribute value map
public void setStringProfileValue(java.lang.String attributeKey,
java.lang.String stringValue)
throws EpBindException
setStringProfileValue in interface CustomerProfileattributeKey - the attribute Key to set the valuestringValue - the string value
EpBindException - in case the given string value is invalid
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||