Package de.hybris.platform.ticket.model
Class SessionCartsAttributeHandler
java.lang.Object
de.hybris.platform.ticket.model.SessionCartsAttributeHandler
- All Implemented Interfaces:
DynamicAttributeHandler<List<CartModel>,CustomerModel>
public class SessionCartsAttributeHandler
extends Object
implements DynamicAttributeHandler<List<CartModel>,CustomerModel>
Class to calculate the value of the dynamic attribute sessionCarts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(CustomerModel model) Retrieve current customer's session carts.voidset(CustomerModel model, List<CartModel> cartModels) Directly throw the UnsupportedOperationException once trying to set dynamic attribute of sessionCarts.
-
Constructor Details
-
SessionCartsAttributeHandler
public SessionCartsAttributeHandler()
-
-
Method Details
-
get
Retrieve current customer's session carts.- Specified by:
getin interfaceDynamicAttributeHandler<List<CartModel>,CustomerModel> - Parameters:
model- The customer model to retrieve session carts to calculate session cart List.- Returns:
- A list of sessionCarts.
-
set
Directly throw the UnsupportedOperationException once trying to set dynamic attribute of sessionCarts.- Specified by:
setin interfaceDynamicAttributeHandler<List<CartModel>,CustomerModel> - Parameters:
model- model for which dynamic attribute is declared.cartModels- the value which will be used by setter logic.- Throws:
Throw- an UnsupportedOperationException since dynamic attributes are not allowed to write.
-