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