Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void createOrUpdateAttributeValues(List<ProductAttributeValue> attributeValues,
- Product feature,
- String attributeId,
- String value,
- Language language = null,
- Boolean isUpdate) {
- if (canAttributeValueBeUpdated(isUpdate, attributeId)) {
- ProductAttributeValue productAttributeValue = constructAttributeValue(feature, attributeId, value, language)
- if (productAttributeValue) {
- attributeValues << productAttributeValue
- }
- } else {
- log.debug("Skipping updating value of attribute ${attributeId}. Feature id: ${feature.productId}")
- }
- }
- private static final List<String> ATTRIBUTE_IDS_TO_BE_SKIPPED_DURING_UPDATE = [
- IDS_DESCRIPTION.name,
- COMMERCIAL_SHORT_DESCRIPTION.name,
- IS_BPM_APPLICABLE.name,
- FEATURE_GROUP.name
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement