Class UserEurope1DiscountsAttributeHandler
- java.lang.Object
-
- de.hybris.platform.europe1.dynamic.UserEurope1DiscountsAttributeHandler
-
- All Implemented Interfaces:
DynamicAttributeHandler<java.util.Collection<GlobalDiscountRowModel>,UserModel>
public class UserEurope1DiscountsAttributeHandler extends java.lang.Object implements DynamicAttributeHandler<java.util.Collection<GlobalDiscountRowModel>,UserModel>
The dynamic attribute handler defined for europe1Discounts property fromUserModel.
The relation forUserModel.OWNEUROPE1DISCOUNTSwas created so there would be possibility to set and remove theGlobalDiscountRowModelitems that are not wildcard global discounts and should be part of a given user instance.
-
-
Constructor Summary
Constructors Constructor Description UserEurope1DiscountsAttributeHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<GlobalDiscountRowModel>get(UserModel model)Holds logic behind getter for dynamic attribute.voidset(UserModel model, java.util.Collection<GlobalDiscountRowModel> globalDiscountRowModels)Holds logic behind setter for dynamic attribute.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService)voidsetTypeService(TypeService typeService)
-
-
-
Method Detail
-
get
public java.util.Collection<GlobalDiscountRowModel> get(UserModel model)
Description copied from interface:DynamicAttributeHandlerHolds logic behind getter for dynamic attribute.- Specified by:
getin interfaceDynamicAttributeHandler<java.util.Collection<GlobalDiscountRowModel>,UserModel>- Parameters:
model- model for which dynamic attribute is declared.- Returns:
- computed value.
-
set
public void set(UserModel model, java.util.Collection<GlobalDiscountRowModel> globalDiscountRowModels)
Description copied from interface:DynamicAttributeHandlerHolds logic behind setter for dynamic attribute.- Specified by:
setin interfaceDynamicAttributeHandler<java.util.Collection<GlobalDiscountRowModel>,UserModel>- Parameters:
model- model for which dynamic attribute is declared.globalDiscountRowModels- the value which will be used by setter logic.
-
setTypeService
public void setTypeService(TypeService typeService)
-
setFlexibleSearchService
public void setFlexibleSearchService(FlexibleSearchService flexibleSearchService)
-
-