@Component(value="blChildCategoriesCustomPersistenceHandler") public class ChildCategoriesCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADMIN_CANT_ADD_ANCESTOR_AS_CHILD |
protected static String |
ADMIN_CANT_ADD_CATEGORY_AS_OWN_PARENT |
protected static String |
ADMIN_CANT_ADD_DUPLICATE_CHILD |
protected static String |
ALL_CHILD_CATEGORY_XREFS |
DEFAULT_ORDER| Constructor and Description |
|---|
ChildCategoriesCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage) |
protected void |
checkCategoryAncestry(Category category,
Set<Category> knownAncestors) |
protected CategoryXref |
createXref(org.broadleafcommerce.common.util.Tuple<Category,Category> parentAndChild) |
protected org.broadleafcommerce.common.util.Tuple<Category,Category> |
getChildAndParentCategories(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao) |
protected boolean |
isChildAlreadyAnAncestor(Category child,
Category parent) |
canHandleFetch, canHandleInspect, canHandleRemove, canHandleUpdate, fetch, getMetadata, getOrder, getResultSet, inspect, remove, update, willHandleSecurityprotected static final String ALL_CHILD_CATEGORY_XREFS
protected static final String ADMIN_CANT_ADD_DUPLICATE_CHILD
protected static final String ADMIN_CANT_ADD_CATEGORY_AS_OWN_PARENT
protected static final String ADMIN_CANT_ADD_ANCESTOR_AS_CHILD
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 org.broadleafcommerce.common.util.Tuple<Category,Category> getChildAndParentCategories(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao)
protected CategoryXref createXref(org.broadleafcommerce.common.util.Tuple<Category,Category> parentAndChild)
protected boolean isChildAlreadyAnAncestor(Category child, Category parent)
Copyright © 2017. All rights reserved.