@Component(value="blContentTargetingFormBuilderExtensionHandler")
public class ContentTargetingFormBuilderExtensionHandler
extends org.broadleafcommerce.openadmin.web.service.AbstractFormBuilderExtensionHandler
ContentItem
and ContentTargeter
ListGrid
s that show which
ContentItems/ContentTargeters have been associated with a ContentZone
or ContentItem. This is done to have
the ListGrid link directly to the ContentItems and ContentTargeters since their tabs are generated dynamically and
aren't able to display correctly in a modal view.Modifier and Type | Field and Description |
---|---|
protected Map<Class<?>,String> |
classToListGridNames |
protected org.broadleafcommerce.openadmin.web.service.FormBuilderExtensionManager |
extensionManager |
protected static String |
LINKABLE_HEADER_FIELD_NAME |
Constructor and Description |
---|
ContentTargetingFormBuilderExtensionHandler(org.broadleafcommerce.openadmin.web.service.FormBuilderExtensionManager extensionManager) |
Modifier and Type | Method and Description |
---|---|
void |
init() |
protected boolean |
isInstanceOf(String className,
Class<?> clazz) |
protected void |
makeBasicListGrid(org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid) |
org.broadleafcommerce.common.extension.ExtensionResultStatusType |
modifyListGrid(String className,
org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid)
Modifies the list grid to add links to external content items and disables the row actions
|
addAdditionalAdornedFormActions, addAdditionalFormActions, modifyDetailEntityForm, modifyListGridRecord, modifyPopulatedEntityForm, modifyUnpopulatedEntityForm
getPriority, isEnabled, setEnabled, setPriority
protected final org.broadleafcommerce.openadmin.web.service.FormBuilderExtensionManager extensionManager
protected static final String LINKABLE_HEADER_FIELD_NAME
public ContentTargetingFormBuilderExtensionHandler(org.broadleafcommerce.openadmin.web.service.FormBuilderExtensionManager extensionManager)
@PostConstruct public void init()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType modifyListGrid(String className, org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid)
modifyListGrid
in interface org.broadleafcommerce.openadmin.web.service.FormBuilderExtensionHandler
modifyListGrid
in class org.broadleafcommerce.openadmin.web.service.AbstractFormBuilderExtensionHandler
className
- the class name of the entities in the list gridlistGrid
- the list grid to modifyprotected void makeBasicListGrid(org.broadleafcommerce.openadmin.web.form.component.ListGrid listGrid)
Copyright © 2020. All rights reserved.