Class DefaultTmaAddressService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.servicelayer.user.impl.DefaultAddressService
-
- de.hybris.platform.b2ctelcoservices.address.impl.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 ofTmaAddressService- Since:
- 1911
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultTmaAddressService(TmaAddressDao tmaAddressDao)Default constructor for address service.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoesAddressBelongToUser(AddressModel addressModel, UserModel user)Checks if an address belongs to a user.booleandoesAddressExist(java.lang.String addressId)Checks if the address with the given id exists.booleandoesAddressNeedCloning(AddressModel address, AbstractOrderEntryModel orderEntry)Checks if the address should be clonedAddressModelfindAddress(java.lang.String addressId)Gets an Address for a given id.protected TmaAddressDaogetTmaAddressDao()-
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
-
-
-
-
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:TmaAddressServiceGets an Address for a given id.- Specified by:
findAddressin interfaceTmaAddressService- 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:TmaAddressServiceChecks if the address with the given id exists.- Specified by:
doesAddressExistin interfaceTmaAddressService- 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:TmaAddressServiceChecks if an address belongs to a user.- Specified by:
doesAddressBelongToUserin interfaceTmaAddressService- Parameters:
addressModel- the address to be checkeduser- 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:TmaAddressServiceChecks if the address should be cloned- Specified by:
doesAddressNeedCloningin interfaceTmaAddressService- Parameters:
address- the address to be checkedorderEntry- the order entry for which the address should be checked- Returns:
- true if the address should be cloned, otherwise false
-
getTmaAddressDao
protected TmaAddressDao getTmaAddressDao()
-
-