@Component(value="blCategoryCustomPersistenceHandler") public class CategoryCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowCategoryDeleteWithChildren |
protected static String |
CATEGORY_SEPARATOR |
protected CategoryDao |
categoryDao |
protected static String |
DEFAULT_PARENT_CATEGORY |
protected CategoryCustomPersistenceHandlerExtensionManager |
extensionManager |
protected static String |
ID_PROPERTY |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
DEFAULT_ORDER| Constructor and Description |
|---|
CategoryCustomPersistenceHandler() |
canHandleFetch, fetch, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, willHandleSecurityprotected static final String DEFAULT_PARENT_CATEGORY
protected static final String ID_PROPERTY
protected static final String CATEGORY_SEPARATOR
@Value(value="${allow.category.delete.with.children:false}")
protected boolean allowCategoryDeleteWithChildren
protected CategoryCustomPersistenceHandlerExtensionManager extensionManager
protected CategoryDao categoryDao
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleInspect(PersistencePackage persistencePackage)
canHandleInspect in interface CustomPersistenceHandlercanHandleInspect 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 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 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 validateCategory(Entity entity) throws ValidationException
ValidationExceptionprotected void validateSelfLink(Entity entity) throws ValidationException
ValidationExceptionprotected void validateRecursiveRelationship(Entity entity) throws ValidationException
ValidationExceptionprotected void validateCategories(Entity entity, Category category, Long id, StringBuilder categoryLinks) throws ValidationException
ValidationExceptionprotected void addCategoryLink(StringBuilder productLinks, String categoryName)
protected Boolean isDefaultCategoryLegacyMode()
protected void removeOldDefault(Category adminInstance, CategoryXref oldDefault, Entity entity)
protected void setupXref(Category adminInstance)
protected CategoryXref getCurrentDefaultXref(Category category)
Copyright © 2022. All rights reserved.