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,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:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
ConstructorsConstructorDescriptionDefaultTmaAddressService(TmaAddressDao tmaAddressDao) Default constructor for address service. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoesAddressBelongToUser(AddressModel addressModel, UserModel user) Checks if an address belongs to a user.booleandoesAddressExist(String addressId) Checks if the address with the given id exists.booleandoesAddressNeedCloning(AddressModel address, AbstractOrderEntryModel orderEntry) Checks if the address should be clonedfindAddress(String addressId) Gets an Address for a given id.findAddressesByOffsetAndLimit(Integer offset, Integer limit) Gets Addresses filtered by offset and limit.findAddressValidationsByOffsetAndLimit(Integer offset, Integer limit) Gets Address Validations filtered by offset and limit.protected TmaAddressDaoMethods inherited from class de.hybris.platform.servicelayer.user.impl.DefaultAddressService
cloneAddress, cloneAddressForOwner, createAddressForOwner, createAddressForUser, getAddressesForOwner, setAddressDaoMethods 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, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.servicelayer.user.AddressService
cloneAddress, cloneAddressForOwner, createAddressForOwner, createAddressForUser, getAddressesForOwner
-
Constructor Details
-
DefaultTmaAddressService
Default constructor for address service.- Parameters:
tmaAddressDao- the address dao used by the address service.
-
-
Method Details
-
findAddress
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.
-
findAddressesByOffsetAndLimit
Description copied from interface:TmaAddressServiceGets Addresses filtered by offset and limit.- Specified by:
findAddressesByOffsetAndLimitin interfaceTmaAddressService- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of Addresses filtered by offset and limit.
-
findAddressValidationsByOffsetAndLimit
Description copied from interface:TmaAddressServiceGets Address Validations filtered by offset and limit.- Specified by:
findAddressValidationsByOffsetAndLimitin interfaceTmaAddressService- Parameters:
offset- the offsetlimit- the limit- Returns:
- the list of Address Validations filtered by offset and limit.
-
doesAddressExist
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
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
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
-