Class AbstractRuleBuilderFieldService
java.lang.Object
org.broadleafcommerce.openadmin.web.rulebuilder.service.AbstractRuleBuilderFieldService
- All Implemented Interfaces:
Cloneable,EventListener,RuleBuilderFieldService,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
- Direct Known Subclasses:
CategoryFieldServiceImpl,CustomerFieldServiceImpl,FulfillmentGroupFieldServiceImpl,LocaleFieldServiceImpl,OrderFieldServiceImpl,OrderItemFieldServiceImpl,ProductFieldServiceImpl,RequestFieldServiceImpl,SkuFieldServiceImpl,TimeFieldServiceImpl
public abstract class AbstractRuleBuilderFieldService
extends Object
implements RuleBuilderFieldService, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
- Author:
- Elbert Bautista (elbertbautista)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected DynamicEntityDaoprotected RuleBuilderFieldServiceExtensionManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()protected FieldDTOabstract StringgetOverrideFieldEntityKey(String fieldName) getSecondaryFieldType(String fieldName) getSupportedFieldType(String fieldName) abstract voidinit()voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidvoidsetRuleBuilderFieldServiceExtensionManager(RuleBuilderFieldServiceExtensionManager extensionManager) protected voidvalidateRuleBuilderState(RuleBuilderFieldService fieldService) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecutionMethods inherited from interface org.broadleafcommerce.openadmin.web.rulebuilder.service.RuleBuilderFieldService
getName
-
Field Details
-
dynamicEntityDao
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
fields
-
extensionManager
-
-
Constructor Details
-
AbstractRuleBuilderFieldService
public AbstractRuleBuilderFieldService()
-
-
Method Details
-
setRuleBuilderFieldServiceExtensionManager
public void setRuleBuilderFieldServiceExtensionManager(RuleBuilderFieldServiceExtensionManager extensionManager) - Specified by:
setRuleBuilderFieldServiceExtensionManagerin interfaceRuleBuilderFieldService
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
buildFields
- Specified by:
buildFieldsin interfaceRuleBuilderFieldService
-
constructFieldDTOFromFieldData
-
getSupportedFieldType
- Specified by:
getSupportedFieldTypein interfaceRuleBuilderFieldService
-
getSecondaryFieldType
- Specified by:
getSecondaryFieldTypein interfaceRuleBuilderFieldService
-
getField
- Specified by:
getFieldin interfaceRuleBuilderFieldService
-
getFields
- Specified by:
getFieldsin interfaceRuleBuilderFieldService
-
setFields
- Specified by:
setFieldsin interfaceRuleBuilderFieldService
-
getOverrideFieldEntityKey
- Specified by:
getOverrideFieldEntityKeyin interfaceRuleBuilderFieldService
-
clone
- Specified by:
clonein interfaceRuleBuilderFieldService- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getDtoClassName
-
init
public abstract void init() -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
validateRuleBuilderState
-