@Component(value="blProductCustomPersistenceHandler") public class ProductCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected ProductCustomPersistenceHandlerExtensionManager |
extensionManager |
protected ParentCategoryLegacyModeService |
parentCategoryLegacyModeService |
protected SandBoxHelper |
sandBoxHelper |
DEFAULT_ORDER| Constructor and Description |
|---|
ProductCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an add request from the admin
|
Boolean |
canHandleFetch(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an fetch request from the admin
|
Boolean |
canHandleInspect(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an inspect request from the admin
|
Boolean |
canHandleRemove(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with a remove request from the admin
|
Boolean |
canHandleUpdate(PersistencePackage persistencePackage)
Is this persistence handler capable of dealing with an update request from the admin
|
DynamicResultSet |
fetch(PersistencePackage persistencePackage,
CriteriaTransferObject cto,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
protected CategoryProductXref |
getCurrentDefaultXref(Product product) |
protected Category |
getExistingDefaultCategory(Product product) |
DynamicResultSet |
inspect(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
InspectHelper helper) |
protected Boolean |
isDefaultCategoryLegacyMode() |
void |
remove(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
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
|
protected void |
removeOldDefault(Product adminInstance,
CategoryProductXref oldDefault,
Entity entity) |
protected void |
setupXref(Product adminInstance) |
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
getMetadata, getOrder, getResultSet, willHandleSecurityprotected CatalogService catalogService
protected ProductCustomPersistenceHandlerExtensionManager extensionManager
protected ParentCategoryLegacyModeService parentCategoryLegacyModeService
protected SandBoxHelper sandBoxHelper
public Boolean canHandleAdd(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpersistencePackage - details about the add operationpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpersistencePackage - details about the update operationpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpersistencePackage - details about the remove operationpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpersistencePackage - details about the fetch operationpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
CustomPersistenceHandlercanHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpersistencePackage - details about the inspect operationpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterServiceExceptionpublic DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
add in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterServiceExceptionpublic void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
remove in interface CustomPersistenceHandlerremove in class CustomPersistenceHandlerAdapterServiceExceptionprotected void removeBundleFieldRestrictions(ProductBundle adminInstance, Map<String,FieldMetadata> adminProperties, Entity entity)
adminInstance - adminProperties - entity - protected Boolean isDefaultCategoryLegacyMode()
protected void removeOldDefault(Product adminInstance, CategoryProductXref oldDefault, Entity entity)
protected void setupXref(Product adminInstance)
protected CategoryProductXref getCurrentDefaultXref(Product product)
Copyright © 2015. All rights reserved.