Class SearchFacetCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.SearchFacetCustomPersistenceHandler
- All Implemented Interfaces:
CustomPersistenceHandler,org.springframework.core.Ordered
@Component("blSearchFacetCustomPersistenceHandler")
public class SearchFacetCustomPersistenceHandler
extends CustomPersistenceHandlerAdapter
When deleting a
SearchFacet, we want to make sure it is a soft delete.- Author:
- Nathan Moore (nathandmoore)
-
Field Summary
Fields inherited from interface org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandler
DEFAULT_ORDERFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncanHandleRemove(PersistencePackage persistencePackage) Is this persistence handler capable of dealing with a remove request from the adminprotected SearchFacetgetAdminInstance(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper, Entity entity) voidremove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
add, canHandleAdd, canHandleFetch, canHandleInspect, canHandleUpdate, fetch, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, update, willHandleSecurity
-
Constructor Details
-
SearchFacetCustomPersistenceHandler
public SearchFacetCustomPersistenceHandler()
-
-
Method Details
-
canHandleRemove
Description copied from interface:CustomPersistenceHandlerIs this persistence handler capable of dealing with a remove request from the admin- Specified by:
canHandleRemovein interfaceCustomPersistenceHandler- Overrides:
canHandleRemovein classCustomPersistenceHandlerAdapter- Parameters:
persistencePackage- details about the remove operation- Returns:
- whether or not this handler supports remove
-
remove
public void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException - Specified by:
removein interfaceCustomPersistenceHandler- Overrides:
removein classCustomPersistenceHandlerAdapter- Throws:
ServiceException
-
getAdminInstance
protected SearchFacet getAdminInstance(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper, Entity entity) throws ClassNotFoundException - Throws:
ClassNotFoundException
-