org.broadleafcommerce.openadmin.web.rulebuilder.service
Class AbstractRuleBuilderFieldService

java.lang.Object
  extended by org.broadleafcommerce.openadmin.web.rulebuilder.service.AbstractRuleBuilderFieldService
All Implemented Interfaces:
Cloneable, RuleBuilderFieldService, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public abstract class AbstractRuleBuilderFieldService
extends Object
implements RuleBuilderFieldService, org.springframework.context.ApplicationContextAware

Author:
Elbert Bautista (elbertbautista)

Field Summary
protected  org.springframework.context.ApplicationContext applicationContext
           
protected  DynamicEntityDao dynamicEntityDao
           
protected  List<FieldData> fields
           
 
Constructor Summary
AbstractRuleBuilderFieldService()
           
 
Method Summary
 FieldWrapper buildFields()
           
 RuleBuilderFieldService clone()
           
abstract  String getDtoClassName()
           
 FieldDTO getField(String fieldName)
           
 List<FieldData> getFields()
           
 SupportedFieldType getSecondaryFieldType(String fieldName)
           
 SupportedFieldType getSupportedFieldType(String fieldName)
           
abstract  void init()
           
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
           
 void setFields(List<FieldData> fields)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.broadleafcommerce.openadmin.web.rulebuilder.service.RuleBuilderFieldService
getName
 

Field Detail

dynamicEntityDao

protected DynamicEntityDao dynamicEntityDao

applicationContext

protected org.springframework.context.ApplicationContext applicationContext

fields

protected List<FieldData> fields
Constructor Detail

AbstractRuleBuilderFieldService

public AbstractRuleBuilderFieldService()
Method Detail

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

buildFields

public FieldWrapper buildFields()
Specified by:
buildFields in interface RuleBuilderFieldService

getSupportedFieldType

public SupportedFieldType getSupportedFieldType(String fieldName)
Specified by:
getSupportedFieldType in interface RuleBuilderFieldService

getSecondaryFieldType

public SupportedFieldType getSecondaryFieldType(String fieldName)
Specified by:
getSecondaryFieldType in interface RuleBuilderFieldService

getField

public FieldDTO getField(String fieldName)
Specified by:
getField in interface RuleBuilderFieldService

getFields

public List<FieldData> getFields()
Specified by:
getFields in interface RuleBuilderFieldService

setFields

public void setFields(List<FieldData> fields)
Specified by:
setFields in interface RuleBuilderFieldService

clone

public RuleBuilderFieldService clone()
                              throws CloneNotSupportedException
Specified by:
clone in interface RuleBuilderFieldService
Overrides:
clone in class Object
Throws:
CloneNotSupportedException

getDtoClassName

public abstract String getDtoClassName()

init

public abstract void init()


Copyright © 2013. All Rights Reserved.