@Deprecated
public List<Category> getAllParentCategories() {
BroadleafRequestContext context = BroadleafRequestContext.getBroadleafRequestContext();
if (context != null && context.getAdditionalProperties().containsKey("blCategoryEntityExtensionManager")) {
CategoryEntityExtensionManager extensionManager = (CategoryEntityExtensionManager) context.getAdditionalProperties().get("blCategoryEntityExtensionManager");
ExtensionResultHolder holder = new ExtensionResultHolder();
ExtensionResultStatusType result = extensionManager.getProxy().getAllParentCategories(this, holder);
if (ExtensionResultStatusType.HANDLED.equals(result)) {
return (List<Category>) holder.getResult();
}
}
List<Category> parents = new ArrayList<Category>(allParentCategoryXrefs.size());
for (CategoryXref xref : allParentCategoryXrefs) {
parents.add(xref.getCategory());