Class DefaultTmaAddressFacade
java.lang.Object
de.hybris.platform.b2ctelcofacades.address.impl.DefaultTmaAddressFacade
- All Implemented Interfaces:
TmaAddressFacade
Default implementation of Tma Address facade. It implements Tma specific operations around address.
- Since:
- 2007
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaAddressFacade(de.hybris.platform.servicelayer.user.UserService userService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, AddressData> addressConverter, de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressData, AddressModel> addressReverseConverter) Instantiates a new default tma address facade. -
Method Summary
Modifier and TypeMethodDescriptiongetAddress(String id, String relatedPartyID) Retrieves given address from id for the provided user id.protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.user.UserServicebooleanremoveAddress(String userId, String addressId) Delete given address for the provided user id.updateAddress(AddressData addressData, String addressId, String userId) Updates aAddressDatafor the provided user.
-
Constructor Details
-
DefaultTmaAddressFacade
public DefaultTmaAddressFacade(de.hybris.platform.servicelayer.user.UserService userService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, AddressData> addressConverter, de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService, de.hybris.platform.servicelayer.dto.converter.Converter<AddressData, AddressModel> addressReverseConverter) Instantiates a new default tma address facade.- Parameters:
userService- the user serviceaddressConverter- the address convertercustomerAccountService- the customer account serviceaddressReverseConverter- the address reverse converter
-
-
Method Details
-
getAddress
Description copied from interface:TmaAddressFacadeRetrieves given address from id for the provided user id.- Specified by:
getAddressin interfaceTmaAddressFacade- Parameters:
id- the idrelatedPartyID- the related party ID- Returns:
- the specific address for user if it belongs to user otherwise null
-
updateAddress
Description copied from interface:TmaAddressFacadeUpdates aAddressDatafor the provided user.- Specified by:
updateAddressin interfaceTmaAddressFacade- Parameters:
addressData- The address dataaddressId- The identifier of the addressuserId- The identifier of the address- Returns:
AddressDatawhich was updated
-
removeAddress
Description copied from interface:TmaAddressFacadeDelete given address for the provided user id.- Specified by:
removeAddressin interfaceTmaAddressFacade- Parameters:
userId- The identifier of the useraddressId- The addressId- Returns:
- True if record is deleted and False in case. no record deletion
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getAddressConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getAddressConverter() -
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService() -
getAddressReverseConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> getAddressReverseConverter()
-