Class SkuLookupByProductCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.SkuLookupByProductCustomPersistenceHandler
- All Implemented Interfaces:
CustomPersistenceHandler,org.springframework.core.Ordered
@Component("blSkuLookupByProductCustomPersistenceHandler")
public class SkuLookupByProductCustomPersistenceHandler
extends CustomPersistenceHandlerAdapter
This persistence handler handles all
Sku inspects and fetches where the `toOneLookup` custom criteria is on the
persistence package and the lookup is product specific. This allows for special product-based filtering and display
functionality for specific sku look-ups.- Author:
- Marie Standeven (marieStandeven)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CatalogServiceprotected static final Stringprotected SkuCustomPersistenceHandlerprotected static final StringFields 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 TypeMethodDescriptioncanHandleFetch(PersistencePackage persistencePackage) fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) intgetOrder()protected booleanisRequestForSkusFilteredByProduct(PersistencePackage persistencePackage) Methods inherited from class org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
add, canHandleAdd, canHandleInspect, canHandleRemove, canHandleUpdate, getClassForName, getMetadata, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, update, willHandleSecurity
-
Field Details
-
TO_ONE_LOOKUP_CRITERIA
- See Also:
-
FILTER_SKUS_BY_PRODUCT
- See Also:
-
catalogService
-
skuPersistenceHandler
-
-
Constructor Details
-
SkuLookupByProductCustomPersistenceHandler
public SkuLookupByProductCustomPersistenceHandler()
-
-
Method Details
-
canHandleFetch
- Specified by:
canHandleFetchin interfaceCustomPersistenceHandler- Overrides:
canHandleFetchin classCustomPersistenceHandlerAdapter
-
fetch
public DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException - Specified by:
fetchin interfaceCustomPersistenceHandler- Overrides:
fetchin classCustomPersistenceHandlerAdapter- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
isRequestForSkusFilteredByProduct
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Overrides:
getOrderin classCustomPersistenceHandlerAdapter
-