org.broadleafcommerce.openadmin.server.service.persistence.module.provider
@Component(value="blMapFieldPersistenceProvider") @Scope(value="prototype") public class MapFieldPersistenceProvider extends BasicFieldPersistenceProvider
LOG| Constructor and Description |
|---|
MapFieldPersistenceProvider() |
| Modifier and Type | Method and Description |
|---|---|
FieldProviderResponse |
addSearchMapping(AddSearchMappingRequest addSearchMappingRequest,
List<FilterMapping> filterMappings)
Add
FilterMapping instances. |
protected boolean |
canHandleExtraction(ExtractValueRequest extractValueRequest,
Property property) |
protected boolean |
canHandlePersistence(PopulateValueRequest populateValueRequest,
Serializable instance) |
FieldProviderResponse |
extractValue(ExtractValueRequest extractValueRequest,
Property property)
Retrieve the property value from the requestedValue field from the request.
|
int |
getOrder() |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
canHandleSearchMapping, detectAdditionalSearchTypes, detectBasicTypecheckDirtyState, filterProperties, setNonDisplayableValuesbuildFieldInfo, getListFieldType, getMapFieldTypeprotected boolean canHandlePersistence(PopulateValueRequest populateValueRequest, Serializable instance)
canHandlePersistence in class BasicFieldPersistenceProviderprotected boolean canHandleExtraction(ExtractValueRequest extractValueRequest, Property property)
canHandleExtraction in class BasicFieldPersistenceProviderpublic FieldProviderResponse populateValue(PopulateValueRequest populateValueRequest, Serializable instance)
FieldPersistenceProviderpopulateValue in interface FieldPersistenceProviderpopulateValue in class BasicFieldPersistenceProviderpopulateValueRequest - contains the requested value and support classes.instance - the persistence entity instance on which to set the value harvested from the requestpublic FieldProviderResponse extractValue(ExtractValueRequest extractValueRequest, Property property) throws PersistenceException
FieldPersistenceProviderextractValue in interface FieldPersistenceProviderextractValue in class BasicFieldPersistenceProviderextractValueRequest - contains the requested value and support classes.property - the property for the admin that will contain the information harvested from the persistence valuePersistenceExceptionpublic FieldProviderResponse addSearchMapping(AddSearchMappingRequest addSearchMappingRequest, List<FilterMapping> filterMappings)
FieldPersistenceProviderFilterMapping instances. The FilterMappings are used by the system to refine the fetch criteria
used to retrieve lists of records for the admin. The requestedCto contains filters requested from the admin
and is generally used to drive the added FilterMapping instances.addSearchMapping in interface FieldPersistenceProvideraddSearchMapping in class BasicFieldPersistenceProvideraddSearchMappingRequest - contains the requested cto and support classes.filterMappings - filter criteria should be added here. It is used to generate the final search criteria.public int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class BasicFieldPersistenceProviderCopyright © 2015. All Rights Reserved.