@Component(value="blProductCustomPersistenceHandler") public class ProductCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
protected ProductCustomPersistenceHandlerExtensionManager |
extensionManager |
protected org.broadleafcommerce.common.service.ParentCategoryLegacyModeService |
parentCategoryLegacyModeService |
protected long |
queryLimit |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
DEFAULT_ORDER| Constructor and Description |
|---|
ProductCustomPersistenceHandler() |
getMetadata, getOrder, getResultSet, willHandleSecurityprotected CatalogService catalogService
protected ProductCustomPersistenceHandlerExtensionManager extensionManager
protected org.broadleafcommerce.common.service.ParentCategoryLegacyModeService parentCategoryLegacyModeService
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
@Value(value="${product.query.limit:500}")
protected long queryLimit
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
canHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpublic Boolean canHandleFetch(PersistencePackage persistencePackage)
canHandleFetch in interface CustomPersistenceHandlercanHandleFetch in class CustomPersistenceHandlerAdapterpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect in interface CustomPersistenceHandlercanHandleInspect in class CustomPersistenceHandlerAdapterpublic DynamicResultSet inspect(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, InspectHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
inspect in interface CustomPersistenceHandlerinspect in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic DynamicResultSet fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
fetch in interface CustomPersistenceHandlerfetch in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionpublic 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.ServiceExceptionpublic void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws org.broadleafcommerce.common.exception.ServiceException
remove in interface CustomPersistenceHandlerremove in class CustomPersistenceHandlerAdapterorg.broadleafcommerce.common.exception.ServiceExceptionprotected 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 © 2016. All rights reserved.