Class DefaultChangeSummaryUtility
java.lang.Object
com.broadleafcommerce.sandbox.service.DefaultChangeSummaryUtility
- All Implemented Interfaces:
ChangeSummaryUtility
- Author:
- Chad Harchar (charchar)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.broadleafcommerce.common.extension.TypeFactory -
Constructor Summary
ConstructorsConstructorDescriptionDefaultChangeSummaryUtility(com.broadleafcommerce.common.extension.TypeFactory sandboxFactory) -
Method Summary
Modifier and TypeMethodDescriptionbuildFromChangeEvent(com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent changeEvent) Populate aChangeSummaryfrom the providedChangeEvent.buildJpaStateFromChangeEvent(com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent changeEvent) Populate aJpaChangeSummaryfrom the providedChangeEvent.
-
Field Details
-
sandboxFactory
protected com.broadleafcommerce.common.extension.TypeFactory sandboxFactory
-
-
Constructor Details
-
DefaultChangeSummaryUtility
public DefaultChangeSummaryUtility(com.broadleafcommerce.common.extension.TypeFactory sandboxFactory)
-
-
Method Details
-
buildFromChangeEvent
public ChangeSummary buildFromChangeEvent(com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent changeEvent) Description copied from interface:ChangeSummaryUtilityPopulate aChangeSummaryfrom the providedChangeEvent.- Specified by:
buildFromChangeEventin interfaceChangeSummaryUtility- Parameters:
changeEvent- TheChangeEventto use to build aChangeSummary- Returns:
- a populated
ChangeSummaryfrom the providedChangeEvent
-
buildJpaStateFromChangeEvent
public JpaChangeSummary buildJpaStateFromChangeEvent(com.broadleafcommerce.data.tracking.core.messaging.domain.ChangeEvent changeEvent) Description copied from interface:ChangeSummaryUtilityPopulate aJpaChangeSummaryfrom the providedChangeEvent.- Specified by:
buildJpaStateFromChangeEventin interfaceChangeSummaryUtility- Parameters:
changeEvent- TheChangeEventto use to build aJpaChangeSummary- Returns:
- a populated
JpaChangeSummaryfrom the providedChangeEvent
-