Package com.hybris.backoffice.variants
Interface BackofficeVariantsService
- All Superinterfaces:
VariantsService
- All Known Implementing Classes:
DefaultBackofficeVariantsService
Extends
VariantsService with additional useful methods.-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedVariantAttributeValue(VariantProductModel variant, String qualifier) Gets values for all Locales, for given localized variant attribute.voidsetLocalizedVariantAttributeValue(VariantProductModel variantProductModel, String qualifier, Map<Locale, Object> localizedValues) Sets values for all Locales, for given localized variant attribute.Methods inherited from interface de.hybris.platform.product.VariantsService
getAllVariantTypes, getAssignedVariantAttributes, getVariantAttributes, getVariantAttributesForVariantType, getVariantAttributeValue, getVariantProductForAttributeValues, getVariantTypeForCode, setVariantAttributesForVariantType, setVariantAttributeValue
-
Method Details
-
getLocalizedVariantAttributeValue
Gets values for all Locales, for given localized variant attribute.- Parameters:
variant- variant product from which the values will be takenqualifier- qualifier of the attribute to get- Returns:
- map with values for all locales
-
setLocalizedVariantAttributeValue
void setLocalizedVariantAttributeValue(VariantProductModel variantProductModel, String qualifier, Map<Locale, Object> localizedValues) Sets values for all Locales, for given localized variant attribute.- Parameters:
variantProductModel- variant product to set the values onqualifier- qualifier of the attribute to setlocalizedValues- values to set
-