Class DefaultTmaAddressService

  • All Implemented Interfaces:
    TmaAddressService, de.hybris.platform.servicelayer.user.AddressService, java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean

    public class DefaultTmaAddressService
    extends de.hybris.platform.servicelayer.user.impl.DefaultAddressService
    implements TmaAddressService
    Default implementation of TmaAddressService
    Since:
    1911
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        de.hybris.platform.servicelayer.internal.service.AbstractService.SerializableDTO
    • Field Summary

      • Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

        modelService, sessionService, txManager
      • Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        tenant
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doesAddressBelongToUser​(AddressModel addressModel, UserModel user)
      Checks if an address belongs to a user.
      boolean doesAddressExist​(java.lang.String addressId)
      Checks if the address with the given id exists.
      boolean doesAddressNeedCloning​(AddressModel address, AbstractOrderEntryModel orderEntry)
      Checks if the address should be cloned
      AddressModel findAddress​(java.lang.String addressId)
      Gets an Address for a given id.
      protected TmaAddressDao getTmaAddressDao()  
      • Methods inherited from class de.hybris.platform.servicelayer.user.impl.DefaultAddressService

        cloneAddress, cloneAddressForOwner, createAddressForOwner, createAddressForUser, getAddressesForOwner, setAddressDao
      • Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService

        getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
      • Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService

        afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.hybris.platform.servicelayer.user.AddressService

        cloneAddress, cloneAddressForOwner, createAddressForOwner, createAddressForUser, getAddressesForOwner
    • Constructor Detail

      • DefaultTmaAddressService

        public DefaultTmaAddressService​(TmaAddressDao tmaAddressDao)
        Default constructor for address service.
        Parameters:
        tmaAddressDao - the address dao used by the address service.
    • Method Detail

      • findAddress

        public AddressModel findAddress​(java.lang.String addressId)
        Description copied from interface: TmaAddressService
        Gets an Address for a given id.
        Specified by:
        findAddress in interface TmaAddressService
        Parameters:
        addressId - the id of the requested address.
        Returns:
        the Address if found.
      • doesAddressExist

        public boolean doesAddressExist​(java.lang.String addressId)
        Description copied from interface: TmaAddressService
        Checks if the address with the given id exists.
        Specified by:
        doesAddressExist in interface TmaAddressService
        Parameters:
        addressId - the id of the address.
        Returns:
        true if the address exists; false otherwise.
      • doesAddressBelongToUser

        public boolean doesAddressBelongToUser​(AddressModel addressModel,
                                               UserModel user)
        Description copied from interface: TmaAddressService
        Checks if an address belongs to a user.
        Specified by:
        doesAddressBelongToUser in interface TmaAddressService
        Parameters:
        addressModel - the address to be checked
        user - the user.
        Returns:
        true if the address belongs to the user; otherwise false.
      • doesAddressNeedCloning

        public boolean doesAddressNeedCloning​(AddressModel address,
                                              AbstractOrderEntryModel orderEntry)
        Description copied from interface: TmaAddressService
        Checks if the address should be cloned
        Specified by:
        doesAddressNeedCloning in interface TmaAddressService
        Parameters:
        address - the address to be checked
        orderEntry - the order entry for which the address should be checked
        Returns:
        true if the address should be cloned, otherwise false