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.dto.converter.Converter<PrincipalModel, PrincipalData> principalConverter, de.hybris.platform.servicelayer.user.UserService userService, TmaAddressService addressService, 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, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, AddressData> subAddressConverter) Instantiates a new default tma address facade. -
Method Summary
Modifier and TypeMethodDescriptiongetAddress(String id) Retrieves given address from id.getAddress(String id, String relatedPartyId) Retrieves given address from id for the provided user id.protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getAddressesByOffsetAndLimit(Integer offset, Integer limit) Retrieves a list of addresses filtered by offset and limit.getAddressesValidationsByOffsetAndLimit(Integer offset, Integer limit) Retrieves a list of address validations filtered by offset and limit.protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> protected TmaAddressServiceRetrieves given address validation from id.getAddressValidation(String id, String relatedPartyID) Retrieves given address validation from id and relatedPartyId.protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceprotected de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> getSubAddress(String id, String geographicAddressId) Retrieves given sub address from id for the provided geographic address id.getSubAddress(String id, String geographicAddressId, String relatedPartyId) Retrieves given sub address from id for the provided geographic address id.protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getSubAddresses(String geographicAddressId) Retrieves a list of sub addresses for the provided geographic address id.getSubAddresses(String geographicAddressId, String relatedPartyId) Retrieves a list of sub addresses for the provided geographic address id and user id.protected 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.dto.converter.Converter<PrincipalModel, PrincipalData> principalConverter, de.hybris.platform.servicelayer.user.UserService userService, TmaAddressService addressService, 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, de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel, AddressData> subAddressConverter) Instantiates a new default tma address facade.- Parameters:
principalConverter- the principal converteruserService- the user serviceaddressService- address serviceaddressConverter- the address convertercustomerAccountService- the customer account serviceaddressReverseConverter- the address reverse convertersubAddressConverter- the sub address 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
-
getAddressesByOffsetAndLimit
Description copied from interface:TmaAddressFacadeRetrieves a list of addresses filtered by offset and limit.- Specified by:
getAddressesByOffsetAndLimitin interfaceTmaAddressFacade- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of addresses filtered by offset and limit.
-
getAddress
Description copied from interface:TmaAddressFacadeRetrieves given address from id.- Specified by:
getAddressin interfaceTmaAddressFacade- Parameters:
id- the id of the address.- Returns:
- the specific address for the given id.
-
getAddressValidation
Description copied from interface:TmaAddressFacadeRetrieves given address validation from id.- Specified by:
getAddressValidationin interfaceTmaAddressFacade- Parameters:
id- the id of the address validation- Returns:
- the specific address validation for the given id.
-
getAddressValidation
Description copied from interface:TmaAddressFacadeRetrieves given address validation from id and relatedPartyId.- Specified by:
getAddressValidationin interfaceTmaAddressFacade- Parameters:
id- the id of the address validationrelatedPartyID- the related party ID- Returns:
- the specific address validation for the given id.
-
getAddressesValidationsByOffsetAndLimit
Description copied from interface:TmaAddressFacadeRetrieves a list of address validations filtered by offset and limit.- Specified by:
getAddressesValidationsByOffsetAndLimitin interfaceTmaAddressFacade- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of address validations filtered by offset and limit.
-
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
-
getSubAddress
Description copied from interface:TmaAddressFacadeRetrieves given sub address from id for the provided geographic address id.- Specified by:
getSubAddressin interfaceTmaAddressFacade- Parameters:
id- the id of Sub AddressgeographicAddressId- the Geographic Address ID- Returns:
- the specific sub address for the given geographic address and sub address id.
-
getSubAddress
Description copied from interface:TmaAddressFacadeRetrieves given sub address from id for the provided geographic address id.- Specified by:
getSubAddressin interfaceTmaAddressFacade- Parameters:
id- the id of Sub AddressgeographicAddressId- the Geographic Address IDrelatedPartyId- the related party ID- Returns:
- the specific address for user if it belongs to user otherwise null
-
getSubAddresses
Description copied from interface:TmaAddressFacadeRetrieves a list of sub addresses for the provided geographic address id.- Specified by:
getSubAddressesin interfaceTmaAddressFacade- Parameters:
geographicAddressId- the Geographic Address ID- Returns:
- the list of sub addresses
-
getSubAddresses
Description copied from interface:TmaAddressFacadeRetrieves a list of sub addresses for the provided geographic address id and user id.- Specified by:
getSubAddressesin interfaceTmaAddressFacade- Parameters:
geographicAddressId- the Geographic Address IDrelatedPartyId- the related party ID- Returns:
- the list of specific sub addresses if belongs to user otherwise null
-
getUserService
protected de.hybris.platform.servicelayer.user.UserService getUserService() -
getAddressConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getAddressConverter() -
getSubAddressConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressModel,AddressData> getSubAddressConverter() -
getCustomerAccountService
protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService() -
getAddressReverseConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<AddressData,AddressModel> getAddressReverseConverter() -
getAddressService
-
getPrincipalConverter
protected de.hybris.platform.servicelayer.dto.converter.Converter<PrincipalModel,PrincipalData> getPrincipalConverter()
-