@Component(value="blRuleFieldPersistenceProvider") @Scope(value="prototype") public class RuleFieldPersistenceProvider extends FieldPersistenceProviderAdapter
| Modifier and Type | Field and Description |
|---|---|
protected RuleFieldPersistenceProviderExtensionManager |
extensionManager |
protected RuleBuilderFieldServiceFactory |
ruleBuilderFieldServiceFactory |
protected RuleFieldExtractionUtility |
ruleFieldExtractionUtility |
protected SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
RuleFieldPersistenceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandleExtraction(ExtractValueRequest extractValueRequest,
Property property) |
protected boolean |
canHandlePersistence(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected Property |
convertQuantityBasedRuleToJson(MVELToDataWrapperTranslator translator,
com.fasterxml.jackson.databind.ObjectMapper mapper,
Collection<QuantityBasedRule> quantityBasedRules,
String jsonProp,
String fieldService) |
protected Object |
extractParent(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected void |
extractQuantityRule(ExtractValueRequest extractValueRequest,
com.fasterxml.jackson.databind.ObjectMapper mapper,
MVELToDataWrapperTranslator translator) |
protected void |
extractSimpleRule(ExtractValueRequest extractValueRequest,
Property property,
com.fasterxml.jackson.databind.ObjectMapper mapper,
MVELToDataWrapperTranslator translator) |
FieldProviderResponse |
extractValue(ExtractValueRequest extractValueRequest,
Property property)
Retrieve the property value from the requestedValue field from the request.
|
FieldProviderResponse |
filterProperties(AddFilterPropertiesRequest addFilterPropertiesRequest,
Map<String,FieldMetadata> properties)
Filter the list of properties posted by the admin during and add or update.
|
int |
getOrder() |
protected Class<?> |
getStartingValueType(PopulateValueRequest populateValueRequest) |
protected boolean |
populateQuantityRule(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected boolean |
populateSimpleRule(PopulateValueRequest populateValueRequest,
Serializable instance) |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
protected boolean |
updateQuantityRule(javax.persistence.EntityManager em,
DataDTOToMVELTranslator translator,
String entityKey,
String fieldService,
String jsonPropertyValue,
Collection<QuantityBasedRule> criteriaList,
Class<?> memberType,
Object parent,
String mappedBy,
Property property) |
protected void |
updateSimpleRule(PopulateValueRequest populateValueRequest,
String mvel,
boolean persist,
SimpleRule rule) |
addSearchMapping, checkDirtyState, setNonDisplayableValuesalwaysRun, buildFieldInfo, getListFieldType, getMapFieldTypeprotected RuleBuilderFieldServiceFactory ruleBuilderFieldServiceFactory
protected SandBoxHelper sandBoxHelper
protected RuleFieldExtractionUtility ruleFieldExtractionUtility
protected RuleFieldPersistenceProviderExtensionManager extensionManager
protected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance)
protected boolean canHandleExtraction(ExtractValueRequest extractValueRequest, Property property)
public FieldProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance) throws PersistenceException
FieldPersistenceProviderpopulateValue in interface FieldPersistenceProviderpopulateValue in class FieldPersistenceProviderAdapterpopulateValueRequest - contains the requested value and support classes.instance - the persistence entity instance on which to set the value harvested from the requestPersistenceExceptionpublic FieldProviderResponse extractValue(ExtractValueRequest extractValueRequest, Property property) throws PersistenceException
FieldPersistenceProviderextractValue in interface FieldPersistenceProviderextractValue in class FieldPersistenceProviderAdapterextractValueRequest - contains the requested value and support classes.property - the property for the admin that will contain the information harvested from the persistence valuePersistenceExceptionpublic FieldProviderResponse filterProperties(AddFilterPropertiesRequest addFilterPropertiesRequest, Map<String,FieldMetadata> properties)
FieldPersistenceProviderfilterProperties in interface FieldPersistenceProviderfilterProperties in class FieldPersistenceProviderAdapteraddFilterPropertiesRequest - contains the Entity instance.properties - the collection of properties to filterprotected void extractSimpleRule(ExtractValueRequest extractValueRequest, Property property, com.fasterxml.jackson.databind.ObjectMapper mapper, MVELToDataWrapperTranslator translator)
protected void extractQuantityRule(ExtractValueRequest extractValueRequest, com.fasterxml.jackson.databind.ObjectMapper mapper, MVELToDataWrapperTranslator translator)
protected boolean populateSimpleRule(PopulateValueRequest populateValueRequest, Serializable instance) throws Exception
Exceptionprotected Object extractParent(PopulateValueRequest populateValueRequest, Serializable instance) throws IllegalAccessException, FieldNotAvailableException
protected boolean populateQuantityRule(PopulateValueRequest populateValueRequest, Serializable instance) throws FieldNotAvailableException, IllegalAccessException
protected Property convertQuantityBasedRuleToJson(MVELToDataWrapperTranslator translator, com.fasterxml.jackson.databind.ObjectMapper mapper, Collection<QuantityBasedRule> quantityBasedRules, String jsonProp, String fieldService)
protected boolean updateQuantityRule(javax.persistence.EntityManager em,
DataDTOToMVELTranslator translator,
String entityKey,
String fieldService,
String jsonPropertyValue,
Collection<QuantityBasedRule> criteriaList,
Class<?> memberType,
Object parent,
String mappedBy,
Property property)
protected void updateSimpleRule(PopulateValueRequest populateValueRequest, String mvel, boolean persist, SimpleRule rule) throws IllegalAccessException, FieldNotAvailableException
protected Class<?> getStartingValueType(PopulateValueRequest populateValueRequest) throws ClassNotFoundException, IllegalAccessException
public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class FieldPersistenceProviderAdapterCopyright © 2017. All rights reserved.