public interface AdornedTargetAutoPopulateExtensionHandler extends ExtensionHandler
AdminBasicEntityController.| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
autoSetAdornedTargetManagedFields(FieldMetadata md,
String mainClassName,
String id,
String collectionField,
String collectionItemId,
Map<String,Object> managedFields)
Provides a hook for automatically setting the values for one or more adorned target collection managed fields.
|
ExtensionResultStatusType |
validateSubmittedAdornedTargetManagedFields(Entity entity,
Serializable instance,
Map<String,FieldMetadata> entityFieldMetadata,
BasicFieldMetadata propertyMetadata,
String propertyName,
String value,
ExtensionResultHolder<Boolean> validationResult)
Provide validation during persistence.
|
getPriority, isEnabledExtensionResultStatusType autoSetAdornedTargetManagedFields(FieldMetadata md, String mainClassName, String id, String collectionField, String collectionItemId, Map<String,Object> managedFields)
md - the metadata describing the adorned target collection fieldmainClassName - the class name of the entity that contains this adorned target fieldid - the id of the containing entitycollectionField - the name of the adorned target fieldcollectionItemId - the id of the adorned target collection membermanagedFields - the map containing the adorned target field values that should be auto populatedExtensionResultStatusType validateSubmittedAdornedTargetManagedFields(Entity entity, Serializable instance, Map<String,FieldMetadata> entityFieldMetadata, BasicFieldMetadata propertyMetadata, String propertyName, String value, ExtensionResultHolder<Boolean> validationResult)
entity - all the values passed from the client for persistenceinstance - the entity instance that is being populatedentityFieldMetadata - the FieldMetadata for all the fieldspropertyMetadata - the FieldMetadata for the propertypropertyName - the name of the fieldvalue - the value being assigned to the propertyvalidationResult - whether or not the property passes validationCopyright © 2019. All rights reserved.