public final class ShoppingListUpdateActionUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildChangeNameUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the
LocalizedString names of a ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. |
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildSetAnonymousIdUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the anonymousIds of
ShoppingList and a ShoppingListDraft and returns
an UpdateAction<ShoppingList> as a result in an Optional. |
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildSetCustomerUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the customer references of a
ShoppingList and a ShoppingListDraft and
returns an UpdateAction<ShoppingList> as a result in an Optional. |
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildSetDeleteDaysAfterLastModificationUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the deleteDaysAfterLastModification of
ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. |
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildSetDescriptionUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the
LocalizedString descriptions of ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. |
static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> |
buildSetSlugUpdateAction(io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
Compares the
LocalizedString slugs of a ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. |
@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildSetSlugUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
LocalizedString slugs of a ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. If both the ShoppingList and the ShoppingListDraft have
the same slug, then no update action is needed and hence an empty Optional is returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft where we get the new slug.@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildChangeNameUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
LocalizedString names of a ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. If both the ShoppingList and the ShoppingListDraft have
the same name, then no update action is needed and hence an empty Optional is returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft where we get the new name.@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildSetDescriptionUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
LocalizedString descriptions of ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. If both the ShoppingList and the ShoppingListDraft have
the same description, then no update action is needed and hence an empty Optional is
returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft where we get the new description.@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildSetCustomerUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
ShoppingList and a ShoppingListDraft and
returns an UpdateAction<ShoppingList> as a result in an Optional.
If both the ShoppingList and the ShoppingListDraft have the same customer, then
no update action is needed and hence an empty Optional is returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft which holds the new customer.@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildSetAnonymousIdUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
ShoppingList and a ShoppingListDraft and returns
an UpdateAction<ShoppingList> as a result in an Optional. If both
the ShoppingList and the ShoppingListDraft have the same anonymousId, then no
update action is needed and hence an empty Optional is returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft which holds the new anonymousId.@Nonnull
public static java.util.Optional<io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>> buildSetDeleteDaysAfterLastModificationUpdateAction(@Nonnull
io.sphere.sdk.shoppinglists.ShoppingList oldShoppingList,
@Nonnull
io.sphere.sdk.shoppinglists.ShoppingListDraft newShoppingList)
ShoppingList and a ShoppingListDraft and returns an UpdateAction<ShoppingList> as a result
in an Optional. If both the ShoppingList and the ShoppingListDraft have
the same deleteDaysAfterLastModification, then no update action is needed and hence an empty
Optional is returned.oldShoppingList - the shopping list which should be updated.newShoppingList - the shopping list draft which holds the new
deleteDaysAfterLastModification.