public class ProductCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
DEFAULT_ORDER| Constructor and Description |
|---|
ProductCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage) |
Boolean |
canHandleUpdate(PersistencePackage persistencePackage) |
protected void |
removeBundleFieldRestrictions(ProductBundle adminInstance,
Map<String,FieldMetadata> adminProperties,
Entity entity)
If the pricing model is of type item_sum, that property should not be required
|
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
canHandleFetch, canHandleInspect, canHandleRemove, fetch, getOrder, inspect, remove, willHandleSecurityprotected CatalogService catalogService
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
add in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic 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 void removeBundleFieldRestrictions(ProductBundle adminInstance, Map<String,FieldMetadata> adminProperties, Entity entity)
adminInstance - adminProperties - entity - Copyright © 2019. All rights reserved.