@Deprecated
public interface AddressProvider
Modifier and Type | Method and Description |
---|---|
Address |
addAddress(ResourceResolver resolver,
java.lang.String userID,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean autoSave)
Deprecated.
Adds an address to the user.
|
Address |
getAddress(ResourceResolver resolver,
java.lang.String userID,
java.lang.String path)
Deprecated.
Returns the address based on a path if represented in the repository or based on an ID uniquely identifying
the address in an external provider.
|
java.util.Collection<Address> |
getAddresses(ResourceResolver resolver,
java.lang.String userID)
Deprecated.
Returns the addresses belonging to a user.
|
Address |
getDefaultAddress(ResourceResolver resolver,
java.lang.String userID)
Deprecated.
Returns the generic default address of the user.
|
Address |
getDefaultAddress(ResourceResolver resolver,
java.lang.String userID,
java.lang.String type)
Deprecated.
Returns the default address that is defined for the given type (e.g.: billing, shipping.).
|
void |
removeAddress(ResourceResolver resolver,
java.lang.String userID,
Address address,
boolean autoSave)
Deprecated.
Removes the address.
|
void |
setDefaultAddress(ResourceResolver resolver,
java.lang.String userID,
Address address,
boolean autoSave)
Deprecated.
Sets the generic default address of the user.
|
void |
setDefaultAddress(ResourceResolver resolver,
java.lang.String userID,
Address address,
java.lang.String type,
boolean autoSave)
Deprecated.
Sets the default address for the given type (e.g.: billing, shipping.).
|
Address |
updateAddress(ResourceResolver resolver,
java.lang.String userID,
Address address,
java.util.Map<java.lang.String,java.lang.Object> properties,
boolean autoSave)
Deprecated.
Updates the address.
|
java.util.Collection<Address> getAddresses(ResourceResolver resolver, java.lang.String userID)
resolver
- The resource resolver used to access the address bookuserID
- The user IDnull
if there are noneAddress getAddress(ResourceResolver resolver, java.lang.String userID, java.lang.String path)
resolver
- The resource resolver used to access the address bookuserID
- The user IDpath
- The path identifying the address or an ID uniquely identifying the address in an external providernull
if it does not exist or if it does not belong to the uservoid removeAddress(ResourceResolver resolver, java.lang.String userID, Address address, boolean autoSave) throws AddressException
resolver
- The resource resolver used to access the address bookuserID
- The user IDaddress
- The addressautoSave
- If true
the operation is persistedAddressException
- when the address does not belong to the user or when the operation fails.Address addAddress(ResourceResolver resolver, java.lang.String userID, java.util.Map<java.lang.String,java.lang.Object> properties, boolean autoSave) throws AddressException
resolver
- The resource resolver used to access the address bookuserID
- The user IDproperties
- The address propertiesautoSave
- If true
the operation is persistedAddressException
- when the operation fails.Address updateAddress(ResourceResolver resolver, java.lang.String userID, Address address, java.util.Map<java.lang.String,java.lang.Object> properties, boolean autoSave) throws AddressException
resolver
- The resource resolver used to access the address bookuserID
- The user IDaddress
- The addressproperties
- The address propertiesautoSave
- If true
the operation is persistedAddressException
- when the address does not belong to the user or when the operation fails.Address getDefaultAddress(ResourceResolver resolver, java.lang.String userID)
resolver
- The resource resolver used to access the address bookuserID
- The user IDAddress getDefaultAddress(ResourceResolver resolver, java.lang.String userID, java.lang.String type)
resolver
- The resource resolver used to access the address bookuserID
- The user IDtype
- The type of the default address. E.g.: billing, shipping.
If the type is null
or empty, the generic default address is returned.void setDefaultAddress(ResourceResolver resolver, java.lang.String userID, Address address, boolean autoSave) throws AddressException
resolver
- The resource resolver used to access the address bookuserID
- The user IDaddress
- The addressautoSave
- If true
the operation is persistedAddressException
- when the address does not belong to the user or when the operation fails.void setDefaultAddress(ResourceResolver resolver, java.lang.String userID, Address address, java.lang.String type, boolean autoSave) throws AddressException
resolver
- The resource resolver used to access the address bookuserID
- The user IDaddress
- The addresstype
- The type of the default address. E.g.: billing, shipping.
If the given type is null
or empty, the generic default address is set.autoSave
- If true
the operation is persistedAddressException
- when the address does not belong to the user or when the operation fails."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"