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, priorityNEW_CLASS_NAME| Constructor and Description | 
|---|
| AbstractAdminAbstractControllerExtensionHandler() | 
| Modifier and Type | Method and Description | 
|---|---|
| ExtensionResultStatusType | addAdditionalMainActions(String sectionClassName,
                        List<EntityFormAction> actions)Invoked every time  AdminBasicEntityController#viewEntityList()is invoked to allow additional
 main form actions to be contributed. | 
| ExtensionResultStatusType | isAddRequest(Entity entity,
            ExtensionResultHolder<Boolean> resultHolder)Extension point to determine if the entity requested is a new empty add request. | 
| ExtensionResultStatusType | modifyDynamicForm(EntityForm form,
                 String parentEntityId)Invoked whenever  AdminAbstractController#getBlankDynamicFieldTemplateFormorAdminAbstractController.getDynamicFieldTemplateForm(org.broadleafcommerce.openadmin.web.form.entity.DynamicEntityFormInfo, java.lang.String, org.broadleafcommerce.openadmin.web.form.entity.EntityForm)is invoked. | 
| ExtensionResultStatusType | modifyMainActions(ClassMetadata cmd,
                 List<EntityFormAction> mainActions)Extension point to override the actions that are added by default when viewing a ceiling entity for a particular
 section (for instance, a list of Products in the 'Product' section). | 
| ExtensionResultStatusType | modifyModelForAddCollectionType(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               org.springframework.ui.Model model,
                               String sectionKey,
                               String id,
                               org.springframework.util.MultiValueMap<String,String> requestParams,
                               MapMetadata md)Extension point to modify the model for specific collection types | 
| ExtensionResultStatusType | modifyPreAddEntityForm(EntityForm entityForm,
                      ClassMetadata cmd,
                      Map<String,String> pathVars)Extension point for setting values on an EntityForm before the initial object is persisted. | 
| ExtensionResultStatusType | overrideSaveEntityJsonResponse(javax.servlet.http.HttpServletResponse response,
                              boolean hasValidationErrors,
                              String sectionKey,
                              String id,
                              ExtensionResultHolder<String> resultHolder)Extension point to determine if the current save transaction is the first valid save. | 
| ExtensionResultStatusType | setAdditionalModelAttributes(org.springframework.ui.Model model,
                            String sectionKey)Invoked every time  AdminAbstractController.setModelAttributes(Model, String)is invoked. | 
getPriority, isEnabled, setEnabled, setPriorityclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, isEnabledpublic AbstractAdminAbstractControllerExtensionHandler()
public ExtensionResultStatusType addAdditionalMainActions(String sectionClassName, List<EntityFormAction> actions)
AdminAbstractControllerExtensionHandlerAdminBasicEntityController#viewEntityList() is invoked to allow additional
 main form actions to be contributed.addAdditionalMainActions in interface AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType modifyMainActions(ClassMetadata cmd, List<EntityFormAction> mainActions)
AdminAbstractControllerExtensionHandlerDefaultMainActions.ADDmodifyMainActions in interface AdminAbstractControllerExtensionHandlercmd - 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)
AdminAbstractControllerExtensionHandlerAdminAbstractController.setModelAttributes(Model, String) is invoked.setAdditionalModelAttributes in interface AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType modifyDynamicForm(EntityForm form, String parentEntityId)
AdminAbstractControllerExtensionHandlerAdminAbstractController#getBlankDynamicFieldTemplateForm 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 AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType modifyModelForAddCollectionType(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model, String sectionKey, String id, org.springframework.util.MultiValueMap<String,String> requestParams, MapMetadata md)
AdminAbstractControllerExtensionHandlermodifyModelForAddCollectionType in interface AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType isAddRequest(Entity entity, ExtensionResultHolder<Boolean> resultHolder)
AdminAbstractControllerExtensionHandlerisAddRequest in interface AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType overrideSaveEntityJsonResponse(javax.servlet.http.HttpServletResponse response, boolean hasValidationErrors, String sectionKey, String id, ExtensionResultHolder<String> resultHolder)
AdminAbstractControllerExtensionHandleroverrideSaveEntityJsonResponse in interface AdminAbstractControllerExtensionHandlerpublic ExtensionResultStatusType modifyPreAddEntityForm(EntityForm entityForm, ClassMetadata cmd, Map<String,String> pathVars)
AdminAbstractControllerExtensionHandlermodifyPreAddEntityForm in interface AdminAbstractControllerExtensionHandlerCopyright © 2020. All rights reserved.