com.elasticpath.domain.catalog
Interface ObjectWithLocaleDependantFields

All Known Subinterfaces:
Category, Product
All Known Implementing Classes:
CategoryImpl, ProductImpl

public interface ObjectWithLocaleDependantFields

Represents an object with LocaleDependantFields.


Method Summary
 void addOrUpdateLocaleDependantFields(LocaleDependantFields ldf)
          Adds or updates the given LocaleDependantFields.
 java.lang.String getDisplayName(java.util.Locale locale)
          Returns the display name of the given locale.
 LocaleDependantFields getLocaleDependantFields(java.util.Locale locale)
          Returns the LocaleDependantFields instance of the given locale.
 java.util.Map getLocaleDependantFieldsMap()
          Gets the all LocaleDependantFields as a map.
 LocaleDependantFields getLocaleDependantFieldsWithoutFallBack(java.util.Locale locale)
          Returns the LocaleDependantFields of the given locale without fallback values.
 void setLocaleDependantFieldsMap(java.util.Map localeDependantFieldsMap)
          Sets the all LocaleDependantFields with the given map.
 

Method Detail

addOrUpdateLocaleDependantFields

void addOrUpdateLocaleDependantFields(LocaleDependantFields ldf)
Adds or updates the given LocaleDependantFields.

Parameters:
ldf - the LocaleDependantFields instance to set.

getDisplayName

java.lang.String getDisplayName(java.util.Locale locale)
Returns the display name of the given locale. This method provides a faster way to just get display name. The result is the same with getLocaleDependantFields(Locale).getDisplayName().

Parameters:
locale - the locale
Returns:
the display name

getLocaleDependantFields

LocaleDependantFields getLocaleDependantFields(java.util.Locale locale)
Returns the LocaleDependantFields instance of the given locale. This LocaleDependantFields instance will contain fall back values. E.g. if a url is not specified, the display name will be used for the url.

Parameters:
locale - the locale
Returns:
the LocaleDependantFields instance of the given locale

getLocaleDependantFieldsMap

java.util.Map getLocaleDependantFieldsMap()
Gets the all LocaleDependantFields as a map.

Returns:
the LocaleDependantFields map

getLocaleDependantFieldsWithoutFallBack

LocaleDependantFields getLocaleDependantFieldsWithoutFallBack(java.util.Locale locale)
Returns the LocaleDependantFields of the given locale without fallback values.

Parameters:
locale - the locale
Returns:
the LocaleDependantFields instance of the given locale if it can be found, otherwise a new LocaleDependantFields instance whose localse will be set to the given locale

setLocaleDependantFieldsMap

void setLocaleDependantFieldsMap(java.util.Map localeDependantFieldsMap)
Sets the all LocaleDependantFields with the given map.

Parameters:
localeDependantFieldsMap - the map to set