Class DefaultAddressService
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.servicelayer.user.impl.DefaultAddressService
- All Implemented Interfaces:
AddressService,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
ChineseAddressService
Default implementation of the
AddressService.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO -
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncloneAddress(AddressModel address) Clones an address and sets a link on the new address to the original address.cloneAddressForOwner(AddressModel address, ItemModel owner) Clones an address but for the given owner and sets a link on the new address to the original address.createAddressForOwner(ItemModel owner) Creates a new, not persistedAddressModelfor the given owner.Creates a new, not persistedAddressModelfor the given user.getAddressesForOwner(ItemModel owner) Gets aCollectionofaddressesfor the given owner e.g.voidsetAddressDao(AddressDao addressDao) Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultAddressService
public DefaultAddressService()
-
-
Method Details
-
createAddressForUser
Description copied from interface:AddressServiceCreates a new, not persistedAddressModelfor the given user.- Specified by:
createAddressForUserin interfaceAddressService- Parameters:
user- creates an address for thisUserModel- Returns:
- a new, not persisted
AddressModel
-
createAddressForOwner
Description copied from interface:AddressServiceCreates a new, not persistedAddressModelfor the given owner.- Specified by:
createAddressForOwnerin interfaceAddressService- Parameters:
owner- the owner (can be any item) for the address, as example: can be aUserModel,CartModelorOrderModel- Returns:
- a new, not persisted address
-
getAddressesForOwner
Description copied from interface:AddressServiceGets aCollectionofaddressesfor the given owner e.g. a user or an order.The owner can be any item.
- Specified by:
getAddressesForOwnerin interfaceAddressService- Parameters:
owner- the given owner, can be an order, a cart or a user- Returns:
- an empty collection if nothing was found
-
cloneAddress
Description copied from interface:AddressServiceClones an address and sets a link on the new address to the original address.The new address has the same owner as the given address.
- Specified by:
cloneAddressin interfaceAddressService- Parameters:
address- the address to clone- Returns:
- a new created, not persisted clone of the given address
-
cloneAddressForOwner
Description copied from interface:AddressServiceClones an address but for the given owner and sets a link on the new address to the original address.- Specified by:
cloneAddressForOwnerin interfaceAddressService- Parameters:
address- the address to cloneowner- the owner of the new cloned address- Returns:
- a new created,
not persistedclone of the given address
-
setAddressDao
-