@Component(value="blChildCategoriesCustomPersistenceHandler") public class ChildCategoriesCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALL_CHILD_CATEGORY_XREFS |
protected static String |
CATEGORY_ID |
protected static String |
CATEGORY_SEPARATOR |
protected CategoryDao |
categoryDao |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
protected static String |
SUB_CATEGORY_ID |
DEFAULT_ORDER| Constructor and Description |
|---|
ChildCategoriesCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
protected void |
addCategoryLink(StringBuilder productLinks,
String categoryName) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage) |
protected void |
validateChildCategories(Entity entity,
Category category,
Long id,
StringBuilder categoryLinks) |
protected void |
validateChildCategory(Entity entity) |
protected void |
validateDuplicateChild(Entity entity) |
protected void |
validateRecursiveRelationship(Entity entity) |
protected void |
validateSelfLink(Entity entity) |
canHandleFetch, canHandleInspect, canHandleRemove, canHandleUpdate, fetch, getClassForName, getMetadata, getOrder, getPolymorphicClasses, getResultSet, inspect, isAdornedListOperation, isAssignableFrom, isBasicOperation, isMapOperation, meetsCustomCriteria, remove, update, willHandleSecurityprotected static final String ALL_CHILD_CATEGORY_XREFS
protected static final String CATEGORY_ID
protected static final String SUB_CATEGORY_ID
protected static final String CATEGORY_SEPARATOR
protected CategoryDao categoryDao
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
public ChildCategoriesCustomPersistenceHandler()
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd 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.ServiceExceptionprotected void validateChildCategory(Entity entity) throws ValidationException
ValidationExceptionprotected void validateSelfLink(Entity entity) throws ValidationException
ValidationExceptionprotected void validateDuplicateChild(Entity entity) throws ValidationException
ValidationExceptionprotected void validateRecursiveRelationship(Entity entity) throws ValidationException
ValidationExceptionprotected void validateChildCategories(Entity entity, Category category, Long id, StringBuilder categoryLinks) throws ValidationException
ValidationExceptionprotected void addCategoryLink(StringBuilder productLinks, String categoryName)
Copyright © 2025. All rights reserved.