|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FieldPersistenceProvider
Classes implementing this interface are capable of handling persistence related events for fields whose values
are being requested or set for the admin. This includes any special translations or transformations required to get
from the string representation in the admin back to the field on a Hibernate entity - and the reverse. Providers are
typically added in response to new admin presentation annotation support that requires special persistence behavior.
Note, FieldPersistenceProvider instances are part of BasicPersistenceModule,
and therefore relate to variations on persistence of basic fields. Implementers should generally
extend FieldPersistenceProviderAdapter.
PersistenceModule| Field Summary | |
|---|---|
static int |
BASIC
|
static int |
MAP_FIELD
|
static int |
MEDIA
|
static int |
MONEY
|
static int |
RULE
|
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Method Summary | |
|---|---|
FieldProviderResponse |
addSearchMapping(AddSearchMappingRequest addSearchMappingRequest,
List<FilterMapping> filterMappings)
Add FilterMapping instances. |
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. |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object. |
| Methods inherited from interface org.springframework.core.Ordered |
|---|
getOrder |
| Field Detail |
|---|
static final int BASIC
static final int MAP_FIELD
static final int RULE
static final int MONEY
static final int MEDIA
| Method Detail |
|---|
FieldProviderResponse populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
populateValueRequest - contains the requested value and support classes.instance - the persistence entity instance on which to set the value harvested from the request
FieldProviderResponse extractValue(ExtractValueRequest extractValueRequest,
Property property)
extractValueRequest - contains the requested value and support classes.property - the property for the admin that will contain the information harvested from the persistence value
FieldProviderResponse addSearchMapping(AddSearchMappingRequest addSearchMappingRequest,
List<FilterMapping> filterMappings)
FilterMapping 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.
addSearchMappingRequest - contains the requested cto and support classes.filterMappings - filter criteria should be added here. It is used to generate the final search criteria.
FieldProviderResponse filterProperties(AddFilterPropertiesRequest addFilterPropertiesRequest,
Map<String,FieldMetadata> properties)
addFilterPropertiesRequest - contains the Entity instance.properties - the collection of properties to filter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||