|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 AttributeValue s 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 EpDomain
getElasticPath
in class AbstractEpDomainImpl
public java.util.List getFullAttributeValues()
AttributeValue
s 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.
AttributeValue
spublic java.lang.Object getProfileValue(java.lang.String attributeKey)
getProfileValue
in interface CustomerProfile
attributeKey
- the key of the profile to be retrieved
public java.util.Map getProfileValueMap()
getProfileValueMap
in interface CustomerProfile
public java.lang.String getStringProfileValue(java.lang.String attributeKey)
getStringProfileValue
in interface CustomerProfile
attributeKey
- the key of the profile to be retrieved
String
value of the attributepublic void setDefaultValues()
setDefaultValues
in interface Persistence
setDefaultValues
in class AbstractEntityImpl
public void setProfileValue(java.lang.String attributeKey, java.lang.Object value)
setProfileValue
in interface CustomerProfile
attributeKey
- 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 CustomerProfile
profileValueMap
- the attribute value mappublic void setStringProfileValue(java.lang.String attributeKey, java.lang.String stringValue) throws EpBindException
setStringProfileValue
in interface CustomerProfile
attributeKey
- 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 |