public final class ProductTypeSyncUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.producttypes.ProductType>> |
buildActions(io.sphere.sdk.producttypes.ProductType oldProductType,
io.sphere.sdk.producttypes.ProductTypeDraft newProductType,
ProductTypeSyncOptions syncOptions)
Compares all the fields (including the attributes see
ProductTypeUpdateActionUtils.buildAttributesUpdateActions(io.sphere.sdk.producttypes.ProductType, io.sphere.sdk.producttypes.ProductTypeDraft, com.commercetools.sync.producttypes.ProductTypeSyncOptions)) of a ProductType and a
ProductTypeDraft. |
@Nonnull
public static java.util.List<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.producttypes.ProductType>> buildActions(@Nonnull
io.sphere.sdk.producttypes.ProductType oldProductType,
@Nonnull
io.sphere.sdk.producttypes.ProductTypeDraft newProductType,
@Nonnull
ProductTypeSyncOptions syncOptions)
ProductTypeUpdateActionUtils.buildAttributesUpdateActions(io.sphere.sdk.producttypes.ProductType, io.sphere.sdk.producttypes.ProductTypeDraft, com.commercetools.sync.producttypes.ProductTypeSyncOptions)) of a ProductType and a
ProductTypeDraft. It returns a List of UpdateAction<ProductType> as a result. If no update action is needed, for example in case where both the
ProductType and the ProductTypeDraft have the same fields, an empty List is returned.oldProductType - the ProductType which should be updated.newProductType - the ProductTypeDraft where we get the new data.syncOptions - the sync options wrapper which contains options related to the sync process
supplied by the user. For example, custom callbacks to call in case of warnings or errors
occurring on the build update action process. And other options (See ProductTypeSyncOptions for more info.