public interface ResourcePurgeService
| Modifier and Type | Method and Description |
|---|---|
void |
notifyCarts(Map<String,String> config) |
void |
purgeCarts(Map<String,String> config)
Execute a purge of carts from the persistence layer based on the configuration parameters.
|
void |
purgeCustomers(Map<String,String> config) |
void |
purgeOrderHistory(Class<?> rootType,
String rootTypeIdValue,
Map<String,List<DeleteStatementGeneratorImpl.PathElement>> depends,
Map<String,Integer> config)
Generates delete statement and executes them
Originally was designed to purge orders and its dependencies
|
void purgeCarts(Map<String,String> config)
org.broadleafcommerce.core.order.service.OrderService#findCarts(String[],
org.broadleafcommerce.core.order.service.type.OrderStatus[], java.util.Date, Boolean, int, int)
for more info on the default behavior.config - Map of params used to drive the selection of carts to purgevoid purgeOrderHistory(Class<?> rootType, String rootTypeIdValue, Map<String,List<DeleteStatementGeneratorImpl.PathElement>> depends, Map<String,Integer> config)
rootType - - entity type to start from to find all dependent entitiesrootTypeIdValue - - id value to use, can be any string like '?' that you will want to replace with concrete id, or id itselfdepends - - a map representing dependent tables that can't be navigated from a root type,
where key is a table name to depend on, value is structure representing a depending table name,
join column name(FK column that is in depending table) and id field name in table to depend on.Copyright © 2025. All rights reserved.