Class CatalogChangeHelper
- java.lang.Object
-
- com.broadleafcommerce.data.tracking.core.tenant.service.CatalogChangeHelper
-
- All Implemented Interfaces:
CatalogChangeService
public class CatalogChangeHelper extends Object implements CatalogChangeService
Helper class used to simplify sync catalog changes against a catalog discriminated domain type,. Usually used in conjunction with an implementation ofTenantPersistenceHandler
.- Author:
- Jeff Fischer
-
-
Constructor Summary
Constructors Constructor Description CatalogChangeHelper(CommonCatalogRepository<Trackable> repo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sync(Trackable catalog, Class<Trackable> type, boolean isNew)
Sync catalog change information to one or more instances of<D>
-
-
-
Constructor Detail
-
CatalogChangeHelper
public CatalogChangeHelper(CommonCatalogRepository<Trackable> repo)
-
-
Method Detail
-
sync
public void sync(Trackable catalog, Class<Trackable> type, boolean isNew)
Description copied from interface:CatalogChangeService
Sync catalog change information to one or more instances of<D>
- Specified by:
sync
in interfaceCatalogChangeService
- Parameters:
catalog
- The catalog instance whose state changedtype
- The class representing the related entity typeisNew
- Whether or not the catalog change is for a new catalog
-
-