Class ProductCharacteristicManagementResult
DefaultProductService#manageProductCharacteristics(ProductCharacteristicManagementRequest, ContextInfo)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanA map from product ID to the latest state of all of its directly assignedProductCharacteristicvalues after the updates were performed.inthashCode()voidsetLatestProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> latestProductCharacteristicsByProductId) A map from product ID to the latest state of all of its directly assignedProductCharacteristicvalues after the updates were performed.toString()
-
Constructor Details
-
ProductCharacteristicManagementResult
public ProductCharacteristicManagementResult()
-
-
Method Details
-
getLatestProductCharacteristicsByProductId
A map from product ID to the latest state of all of its directly assigned
ProductCharacteristicvalues after the updates were performed.For any product on which the CRUD method caller provided a non-empty value for
Product.getCharacteristics(), the management flow will engage. For any such request, we want the immediate response to at least contain the updated state of the directly-assigned characteristics of that product.In other words, if a product previously had pcA, pcB, and pcC, and the CRUD method caller sent a payload only containing an update of pcB, the immediate response should contain pcA, the updated state of pcB, and pcC. That is what this field will contain.
It is important to note that the purpose of this is purely to give the CRUD method caller an indication of their change being honored, and to ensure things like
ProductCharacteristic.getId()andProductCharacteristic.getContextState()are available to them in the response. There is no intent for this to try and cover the responsibilities of the full hydration logic fromProductHydrationService.hydrateCharacteristics(List, ContextInfo). If the caller needs to have full hydration, they should engage that after calling the CRUD method. -
setLatestProductCharacteristicsByProductId
public void setLatestProductCharacteristicsByProductId(Map<String, List<ProductCharacteristic>> latestProductCharacteristicsByProductId) A map from product ID to the latest state of all of its directly assigned
ProductCharacteristicvalues after the updates were performed.For any product on which the CRUD method caller provided a non-empty value for
Product.getCharacteristics(), the management flow will engage. For any such request, we want the immediate response to at least contain the updated state of the directly-assigned characteristics of that product.In other words, if a product previously had pcA, pcB, and pcC, and the CRUD method caller sent a payload only containing an update of pcB, the immediate response should contain pcA, the updated state of pcB, and pcC. That is what this field will contain.
It is important to note that the purpose of this is purely to give the CRUD method caller an indication of their change being honored, and to ensure things like
ProductCharacteristic.getId()andProductCharacteristic.getContextState()are available to them in the response. There is no intent for this to try and cover the responsibilities of the full hydration logic fromProductHydrationService.hydrateCharacteristics(List, ContextInfo). If the caller needs to have full hydration, they should engage that after calling the CRUD method. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-