public class AbstractAdminAbstractControllerExtensionHandler extends AbstractExtensionHandler implements AdminAbstractControllerExtensionHandler
AdminAbstractControllerExtensionHandler
.
Individual implementations of this extension handler should subclass this class as it will allow them to
only override the methods that they need for their particular scenarios.enabled, priority
NEW_CLASS_NAME
Constructor and Description |
---|
AbstractAdminAbstractControllerExtensionHandler() |
getPriority, isEnabled, setEnabled, setPriority
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPriority, isEnabled
public AbstractAdminAbstractControllerExtensionHandler()
public ExtensionResultStatusType addAdditionalMainActions(String sectionClassName, List<EntityFormAction> actions)
AdminAbstractControllerExtensionHandler
AdminBasicEntityController#viewEntityList()
is invoked to allow additional
main form actions to be contributed.addAdditionalMainActions
in interface AdminAbstractControllerExtensionHandler
public ExtensionResultStatusType modifyMainActions(ClassMetadata cmd, List<EntityFormAction> mainActions)
AdminAbstractControllerExtensionHandler
DefaultMainActions.ADD
modifyMainActions
in interface AdminAbstractControllerExtensionHandler
cmd
- the metadata for the ceiling entity that is being displayedmainActions
- the actions that are added to the main form by default. Use this list to add more actionspublic ExtensionResultStatusType setAdditionalModelAttributes(org.springframework.ui.Model model, String sectionKey)
AdminAbstractControllerExtensionHandler
AdminAbstractController.setModelAttributes(Model, String)
is invoked.setAdditionalModelAttributes
in interface AdminAbstractControllerExtensionHandler
public ExtensionResultStatusType overrideClassNameForSection(ExtensionResultHolder erh, String sectionKey, AdminSection section)
AdminAbstractControllerExtensionHandler
AdminAbstractController.getClassNameForSection(String)
is invoked. If an extension
handler sets the AdminAbstractControllerExtensionHandler.NEW_CLASS_NAME
variable in the ExtensionResultHolder, the overriden value will be used.overrideClassNameForSection
in interface AdminAbstractControllerExtensionHandler
public ExtensionResultStatusType modifyDynamicForm(EntityForm form, String parentEntityId)
AdminAbstractControllerExtensionHandler
AdminAbstractController.getBlankDynamicFieldTemplateForm(org.broadleafcommerce.openadmin.web.form.entity.DynamicEntityFormInfo)
or
AdminAbstractController.getDynamicFieldTemplateForm(org.broadleafcommerce.openadmin.web.form.entity.DynamicEntityFormInfo, java.lang.String, org.broadleafcommerce.openadmin.web.form.entity.EntityForm)
is invoked. This method provides the ability to modify
the dynamic form that is created as a result of those two methods.modifyDynamicForm
in interface AdminAbstractControllerExtensionHandler
Copyright © 2017. All rights reserved.