Class TypedEntityBasicEntityExtensionHandler
java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
org.broadleafcommerce.admin.web.controller.extension.TypedEntityBasicEntityExtensionHandler
- All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler,AdminAbstractControllerExtensionHandler
@Component("blTypedEntityBasicEntityExtensionHandler")
public class TypedEntityBasicEntityExtensionHandler
extends AbstractAdminAbstractControllerExtensionHandler
Adds special behavior specific for Typed Entities during any entity persistence flows.
- Author:
- Jon Fleschler (jfleschler)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AdminAbstractControllerExtensionManagerprotected static final org.apache.commons.logging.LogFields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
enabled, priorityFields inherited from interface org.broadleafcommerce.openadmin.web.controller.AdminAbstractControllerExtensionHandler
NEW_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDefaultType(Class implClass) protected DynamicEntityDaogetDynamicEntityDao(String className) protected StringgetTypeFieldName(Class implClass) voidinit()org.broadleafcommerce.common.extension.ExtensionResultStatusTypemodifyPreAddEntityForm(EntityForm entityForm, ClassMetadata cmd, Map<String, String> pathVars) This allows us to set the Type on the entityForm before the entity is first persisted.Methods inherited from class org.broadleafcommerce.openadmin.web.controller.AbstractAdminAbstractControllerExtensionHandler
addAdditionalMainActions, isAddRequest, modifyDynamicForm, modifyMainActions, modifyModelForAddCollectionType, overrideSaveEntityJsonResponse, setAdditionalModelAttributesMethods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler
getPriority, isEnabled, setEnabled, setPriorityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler
getPriority, isEnabled
-
Field Details
-
LOG
protected static final org.apache.commons.logging.Log LOG -
extensionManager
-
-
Constructor Details
-
TypedEntityBasicEntityExtensionHandler
public TypedEntityBasicEntityExtensionHandler()
-
-
Method Details
-
init
@PostConstruct public void init() -
modifyPreAddEntityForm
public org.broadleafcommerce.common.extension.ExtensionResultStatusType modifyPreAddEntityForm(EntityForm entityForm, ClassMetadata cmd, Map<String, String> pathVars) This allows us to set the Type on the entityForm before the entity is first persisted.- Specified by:
modifyPreAddEntityFormin interfaceAdminAbstractControllerExtensionHandler- Overrides:
modifyPreAddEntityFormin classAbstractAdminAbstractControllerExtensionHandler- Parameters:
entityForm-cmd-pathVars-- Returns:
-
getDynamicEntityDao
-
getDefaultType
-
getTypeFieldName
-