Interface UrlEncodingAttributeManager
- All Known Implementing Classes:
AbstractUrlEncodingAttributeManager,DefaultCurrencyAttributeManager,DefaultLanguageAttributeManager,DefaultStoreFrontAttributeManager
public interface UrlEncodingAttributeManager
Interface for UrlEncodingAttributeManagers. The concrete implementation is injected into
DefaultUrlEncoderService
as a map. The kep of the map should exactly match the name of the urlEncodingAttribute configured in the CMSSiteModel.-
Method Summary
Modifier and TypeMethodDescriptionGet all the possible/available values for a particular attribute.getAttributeValueForEmail(BusinessProcessModel businessProcessModel) Returns the value for the attributeReturns the current value for the attributeReturns the default value for the attributebooleanChecks if the given value is present in it's list of available values.voidupdateAndSyncForAttrChange(String value) Update the store/site for the given value.
-
Method Details
-
getAllAvailableValues
Collection<String> getAllAvailableValues()Get all the possible/available values for a particular attribute.- Returns:
- List of
-
isValid
Checks if the given value is present in it's list of available values.- Parameters:
value- to be checked- Returns:
- boolean value
-
updateAndSyncForAttrChange
Update the store/site for the given value.- Parameters:
value- to be updated
-
getDefaultValue
String getDefaultValue()Returns the default value for the attribute- Returns:
- - defaultvalue for the attribute
-
getCurrentValue
String getCurrentValue()Returns the current value for the attribute- Returns:
- - current value
-
getAttributeValueForEmail
Returns the value for the attribute- Parameters:
businessProcessModel-- Returns:
- - value for the attribute
-