@Component(value="blTypedEntityBasicEntityExtensionHandler") public class TypedEntityBasicEntityExtensionHandler extends AbstractAdminAbstractControllerExtensionHandler
| Modifier and Type | Field and Description |
|---|---|
protected AdminAbstractControllerExtensionManager |
extensionManager |
protected org.broadleafcommerce.common.dao.GenericEntityDao |
genericEntityDao |
protected static org.apache.commons.logging.Log |
LOG |
enabled, priorityNEW_CLASS_NAME| Constructor and Description |
|---|
TypedEntityBasicEntityExtensionHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDefaultType(Class implClass) |
protected String |
getTypeFieldName(Class implClass) |
void |
init() |
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.
|
addAdditionalMainActions, isAddRequest, modifyDynamicForm, modifyMainActions, modifyModelForAddCollectionType, overrideSaveEntityJsonResponse, setAdditionalModelAttributesgetPriority, isEnabled, setEnabled, setPriorityprotected static final org.apache.commons.logging.Log LOG
protected AdminAbstractControllerExtensionManager extensionManager
protected org.broadleafcommerce.common.dao.GenericEntityDao genericEntityDao
public TypedEntityBasicEntityExtensionHandler()
@PostConstruct public void init()
public org.broadleafcommerce.common.extension.ExtensionResultStatusType modifyPreAddEntityForm(EntityForm entityForm, ClassMetadata cmd, Map<String,String> pathVars)
modifyPreAddEntityForm in interface AdminAbstractControllerExtensionHandlermodifyPreAddEntityForm in class AbstractAdminAbstractControllerExtensionHandlerentityForm - cmd - pathVars - Copyright © 2017. All rights reserved.