com.elasticpath.domain.customer
Interface CustomerProfile

All Known Implementing Classes:
CustomerProfileImpl

public interface CustomerProfile

This interface represents a group of AttributeValue of Customer Profile type attribute. It is aggregated into Customer.


Method Summary
 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 in default locale.
 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 attributeValueMap)
          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.
 

Method Detail

getProfileValue

java.lang.Object getProfileValue(java.lang.String attributeKey)
Get the value of a profile with the specified key in default locale.

Parameters:
attributeKey - the key of the profile to be retrieved
Returns:
the value of the attribute

getProfileValueMap

java.util.Map getProfileValueMap()
Returns the attribute value map.

Returns:
the attribute value map

getStringProfileValue

java.lang.String getStringProfileValue(java.lang.String attributeKey)
Get the value of a string profile with the specified key in default locale.

Parameters:
attributeKey - the key of the profile to be retrieved
Returns:
the String value of the attribute

setProfileValue

void setProfileValue(java.lang.String attributeKey,
                     java.lang.Object value)
                     throws EpBindException
Set the customer profile value based on the given pair of key/object.

Parameters:
attributeKey - the attribute Key to set the value
value - the object to set the value
Throws:
EpBindException - in case the given value is invalid

setProfileValueMap

void setProfileValueMap(java.util.Map attributeValueMap)
Sets the attribute value map.

Parameters:
attributeValueMap - the attribute value map

setStringProfileValue

void setStringProfileValue(java.lang.String attributeKey,
                           java.lang.String stringValue)
                           throws EpBindException
Set the customer profile value based on the given string value.

Parameters:
attributeKey - the attribute Key to set the value
stringValue - the string value
Throws:
EpBindException - in case the given string value is invalid