org.broadleafcommerce.admin.server.service.handler
Class ProductCustomPersistenceHandler
java.lang.Object
org.broadleafcommerce.openadmin.server.service.handler.CustomPersistenceHandlerAdapter
org.broadleafcommerce.admin.server.service.handler.ProductCustomPersistenceHandler
- All Implemented Interfaces:
- CustomPersistenceHandler, org.springframework.core.Ordered
@Component(value="blProductCustomPersistenceHandler")
public class ProductCustomPersistenceHandler
- extends CustomPersistenceHandlerAdapter
- Author:
- Jeff Fischer
| Fields inherited from interface org.springframework.core.Ordered |
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catalogService
protected CatalogService catalogService
ProductCustomPersistenceHandler
public ProductCustomPersistenceHandler()
canHandleAdd
public Boolean canHandleAdd(PersistencePackage persistencePackage)
- Specified by:
canHandleAdd in interface CustomPersistenceHandler- Overrides:
canHandleAdd in class CustomPersistenceHandlerAdapter
canHandleUpdate
public Boolean canHandleUpdate(PersistencePackage persistencePackage)
- Specified by:
canHandleUpdate in interface CustomPersistenceHandler- Overrides:
canHandleUpdate in class CustomPersistenceHandlerAdapter
add
public Entity add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
- Specified by:
add in interface CustomPersistenceHandler- Overrides:
add in class CustomPersistenceHandlerAdapter
- Throws:
ServiceException
update
public Entity update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper)
throws ServiceException
- Specified by:
update in interface CustomPersistenceHandler- Overrides:
update in class CustomPersistenceHandlerAdapter
- Throws:
ServiceException
removeBundleFieldRestrictions
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
- Parameters:
adminInstance - adminProperties - entity -
Copyright © 2013. All Rights Reserved.