public interface AddressService
| Modifier and Type | Method and Description |
|---|---|
AddressModel |
cloneAddress(AddressModel address)
Clones an address and sets a link on the new address to the original address.
|
AddressModel |
cloneAddressForOwner(AddressModel address,
ItemModel owner)
Clones an address but for the given owner and sets a link on the new address to the original address.
|
AddressModel |
createAddressForOwner(ItemModel owner)
Creates a new, not persisted
AddressModel for the given owner. |
AddressModel |
createAddressForUser(UserModel user)
Creates a new, not persisted
AddressModel for the given user. |
java.util.Collection<AddressModel> |
getAddressesForOwner(ItemModel owner)
Gets a
Collection of addresses for the given owner e.g. |
AddressModel createAddressForUser(UserModel user)
AddressModel for the given user.user - creates an address for this UserModelAddressModeljava.lang.IllegalArgumentException - if the given user is nullAddressModel createAddressForOwner(ItemModel owner)
AddressModel for the given owner.owner - the owner (can be any item) for the address, as example: can be a UserModel, CartModel
or OrderModeljava.lang.IllegalArgumentException - if the given owner is nulljava.util.Collection<AddressModel> getAddressesForOwner(ItemModel owner)
Collection of addresses for the given owner e.g. a user or an order.
The owner can be any item.
owner - the given owner, can be an order, a cart or a userjava.lang.IllegalArgumentException - if the given owner is nullAddressModel cloneAddress(AddressModel address)
The new address has the same owner as the given address.
address - the address to clonejava.lang.IllegalArgumentException - if the given address is nullAddressModel cloneAddressForOwner(AddressModel address, ItemModel owner)
address - the address to cloneowner - the owner of the new cloned addressnot persisted clone of the given addressjava.lang.IllegalArgumentException - if the given address is null or the given owner is nullCopyright © 2018 SAP SE. All Rights Reserved.