org.broadleafcommerce.openadmin.server.service.persistence.module.provider
@Component(value="blMediaFieldPersistenceProvider") @Scope(value="prototype") public class MediaFieldPersistenceProvider extends FieldPersistenceProviderAdapter
| Modifier and Type | Field and Description |
|---|---|
protected EntityConfiguration |
entityConfiguration |
protected SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
MediaFieldPersistenceProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandleExtraction(ExtractValueRequest extractValueRequest,
Property property) |
protected boolean |
canHandlePersistence(PopulateValueRequest populateValueRequest,
Serializable instance) |
protected Media |
convertJsonToMedia(String jsonProp) |
protected String |
convertMediaToJson(Media media) |
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() |
FieldProviderResponse |
populateValue(PopulateValueRequest populateValueRequest,
Serializable instance)
Set the property value on the target object.
|
protected void |
updateMediaFields(Media oldMedia,
Media newMedia) |
addSearchMapping, checkDirtyState, setNonDisplayableValuesbuildFieldInfo, getListFieldType, getMapFieldTypeprotected EntityConfiguration entityConfiguration
protected SandBoxHelper sandBoxHelper
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 filterpublic int getOrder()
getOrder in interface org.springframework.core.OrderedgetOrder in class FieldPersistenceProviderAdapterCopyright © 2015. All Rights Reserved.