@Component(value="blProductOptionsCustomPersistenceHandler") public class ProductOptionsCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
DEFAULT_ORDER| Constructor and Description |
|---|
ProductOptionsCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
canHandleUpdate(PersistencePackage persistencePackage) |
protected boolean |
needsAllowedValue(ProductOption adminInstance)
This function checks if a Product Option's "Use in sku generation" field is set to true
without any allowed values set.
|
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
add, canHandleAdd, canHandleFetch, canHandleInspect, canHandleRemove, fetch, getMetadata, getOrder, getResultSet, inspect, remove, willHandleSecuritypublic ProductOptionsCustomPersistenceHandler()
public Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected boolean needsAllowedValue(ProductOption adminInstance)
adminInstance: - The Product Option being validatedCopyright © 2016. All rights reserved.