Class DefaultTicketAttributeChangeEventStrategy
java.lang.Object
de.hybris.platform.ticket.strategies.impl.DefaultTicketAttributeChangeEventStrategy
- All Implemented Interfaces:
TicketAttributeChangeEventStrategy
public class DefaultTicketAttributeChangeEventStrategy
extends Object
implements TicketAttributeChangeEventStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CsTicketChangeEventEntryModelcreateChangeEntryForAttribute(CsTicketModel ticket, String attribute) protected ItemModelContextImplgetContext(AbstractItemModel model) Retrieve a list list of change entries for the specified ticket.protected ModelServiceprotected ObjectgetNewAttributeValue(ItemModel item, String attribute) protected ObjectgetOriginalAttributeValue(ItemModel item, String attribute) voidsetDefaultChangeRecordType(String defaultChangeRecordType) voidsetModelService(ModelService modelService) voidsetTypeService(TypeService typeService) voidsetValueType2ChangeRecordType(Map<String, String> valueType2ChangeRecordType) protected StringstringValueOf(Object object)
-
Constructor Details
-
DefaultTicketAttributeChangeEventStrategy
public DefaultTicketAttributeChangeEventStrategy()
-
-
Method Details
-
getEntriesForChangedAttributes
Description copied from interface:TicketAttributeChangeEventStrategyRetrieve a list list of change entries for the specified ticket. It is down to the implementation to identify which attributes are changed and to create the appropriate corresponding entries for this attributes.- Specified by:
getEntriesForChangedAttributesin interfaceTicketAttributeChangeEventStrategy- Parameters:
ticket- The ticket to get the changes for- Returns:
- A set of change entries for the ticket
-
setTypeService
-
setValueType2ChangeRecordType
-
setDefaultChangeRecordType
-
createChangeEntryForAttribute
protected CsTicketChangeEventEntryModel createChangeEntryForAttribute(CsTicketModel ticket, String attribute) -
getOriginalAttributeValue
-
getNewAttributeValue
-
stringValueOf
-
getContext
-
getModelService
-
setModelService
-