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.ApplicationContext
protected DynamicEntityDao
protected RuleBuilderFieldServiceExtensionManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
protected FieldDTO
abstract String
getOverrideFieldEntityKey
(String fieldName) getSecondaryFieldType
(String fieldName) getSupportedFieldType
(String fieldName) abstract void
init()
void
onApplicationEvent
(org.springframework.context.event.ContextRefreshedEvent event) void
setApplicationContext
(org.springframework.context.ApplicationContext applicationContext) void
void
setRuleBuilderFieldServiceExtensionManager
(RuleBuilderFieldServiceExtensionManager extensionManager) protected void
validateRuleBuilderState
(RuleBuilderFieldService fieldService) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
Methods 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:
setRuleBuilderFieldServiceExtensionManager
in interfaceRuleBuilderFieldService
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
buildFields
- Specified by:
buildFields
in interfaceRuleBuilderFieldService
-
constructFieldDTOFromFieldData
-
getSupportedFieldType
- Specified by:
getSupportedFieldType
in interfaceRuleBuilderFieldService
-
getSecondaryFieldType
- Specified by:
getSecondaryFieldType
in interfaceRuleBuilderFieldService
-
getField
- Specified by:
getField
in interfaceRuleBuilderFieldService
-
getFields
- Specified by:
getFields
in interfaceRuleBuilderFieldService
-
setFields
- Specified by:
setFields
in interfaceRuleBuilderFieldService
-
getOverrideFieldEntityKey
- Specified by:
getOverrideFieldEntityKey
in interfaceRuleBuilderFieldService
-
clone
- Specified by:
clone
in interfaceRuleBuilderFieldService
- Overrides:
clone
in classObject
- Throws:
CloneNotSupportedException
-
getDtoClassName
-
init
public abstract void init() -
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-
validateRuleBuilderState
-